IOS使用cocoapods出现Pods-resources.sh: Permission denied编译失败的决方案


从其他mac上创建的项目使用cocoapods编译运行正常,当拷贝到另外一台mac时出现build error:

/Users/swae/Library/Developer/Xcode/DerivedData/AlpVideoCamera-czykgutyomlfavgvmhxzumalwvnz/Build/Intermediates.noindex/AlpVideoCamera.build/Debug-iphoneos/AlpVideoCamera.build/Script-11999C1F56E557BEFAA1A12B.sh: line 2: /Users/swae/Desktop/AlpVideoCamera/Pods/Target Support Files/Pods-AlpVideoCamera/Pods-AlpVideoCamera-resources.sh: Permission denied
Command PhaseScriptExecution failed with a nonzero exit code

通过error信息可以看出是 Pods-AlpVideoCamera-resources.sh权限问题,

解决方案: 进入目录 cd /Users/swae/Desktop/AlpVideoCamera/Pods/Target Support Files/Pods-AlpVideoCamera 修改权限 chmod a+x Pods-AlpVideoCamera-resources.sh

附件: