构建应用程序时出现Xcode错误:第7行:/resources-to-copy-Project.txt:权限被拒绝 [英] Xcode error when building app: line 7: /resources-to-copy-Project.txt: Permission denied
问题描述
当我尝试在Xcode中构建cordova应用程序时,出现以下错误:
When I try to build cordova application in Xcode I get the following error:
/Users/User/PhpstormProjects/project/project-app/platforms/ios/Pods/Target支持文件/Pods-Project/Pods-Project-resources.sh:第7行:/resources-to-copy-Project. txt:权限被拒绝
/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
我还注意到在笔记本电脑的任何位置都找不到以下文件resources-to-copy-Project.txt,因此我尝试使用不同版本的cocoapods运行pod install.
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.
我已经尝试使用chmod a + x向文件夹添加权限.
I already tried adding permissions to folders with chmod a+x.
推荐答案
手动解决方案是访问项目的构建阶段"面板,然后进行更改
Manual solution is to access a project's Build Phases panel, and changing
"${SRCROOT}/Pods/Pods-resources.sh"
进入
PODS_ROOT=Pods "${SRCROOT}/Pods/Pods-resources.sh"
否则,Pods-resources.sh无法复制文件.
Otherwise, Pods-resources.sh fails to copy files.
https://github.com/CocoaPods/CocoaPods/issues/594
这篇关于构建应用程序时出现Xcode错误:第7行:/resources-to-copy-Project.txt:权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!