Xcode error when building app: line 7: /resources-to-copy-Project.txt: Permission denied

百般思念 提交于 2019-12-04 12:17:38

问题


When I try to build cordova application in Xcode I get the following error:

/Users/User/PhpstormProjects/project/project-app/platforms/ios/Pods/Target Support Files/Pods-Project/Pods-Project-resources.sh: line 7: /resources-to-copy-Project.txt: Permission denied

Also I noticed that following file resources-to-copy-Project.txt cannot be found anywhere on my laptop and because of that I tried running pod install with different versions of cocoapods.

I already tried adding permissions to folders with chmod a+x.


回答1:


Manual solution is to access a project's Build Phases panel, and changing

"${SRCROOT}/Pods/Pods-resources.sh"

into

PODS_ROOT=Pods "${SRCROOT}/Pods/Pods-resources.sh"

Otherwise, Pods-resources.sh fails to copy files.

https://github.com/CocoaPods/CocoaPods/issues/594



来源:https://stackoverflow.com/questions/45310851/xcode-error-when-building-app-line-7-resources-to-copy-project-txt-permissio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!