ios Cordova Xcode 构建失败“权限被拒绝”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20200720/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cordova Xcode build failed "Permission denied"
提问by Daniel
I am trying to build an iOS app using Xcode and Cordova, however I keep getting this error message:
我正在尝试使用 Xcode 和 Cordova 构建一个 iOS 应用程序,但是我不断收到此错误消息:
cordova/lib/copy-www-build-step.sh: Permission denied
cordova/lib/copy-www-build-step.sh:权限被拒绝
Has anyone overcome this problem before?
有没有人解决过这个问题?
回答by answerSeeker
You can fix it like this also
你也可以像这样修复它
cd platforms/ios/cordova/lib
sudo chmod +x copy-www-build-step.sh
This basically gives the file execute permission only instead of chmod 777 which gives it full permission (read, write, execute.) For anyone wanting clarification on what the difference is.
这基本上只授予文件执行权限,而不是 chmod 777 授予它完全权限(读、写、执行)。对于任何想要澄清区别的人。
回答by Madhur
Faced exact same issue.
面临完全相同的问题。
I guess git messed up the permissions between windows / mac.
我猜 git 搞砸了 windows / mac 之间的权限。
cd platforms/ios/cordova/lib
cd platforms/ios/cordova/lib
sudo chmod 777 copy-www-build-step.sh
sudo chmod 777 copy-www-build-step.sh
Then try to build the project. Worked for me.
然后尝试构建项目。为我工作。