Permission denied Command PhaseScriptExecution failed with a nonzero exit code

Posted ljj-andrew-519

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Permission denied Command PhaseScriptExecution failed with a nonzero exit code相关的知识,希望对你有一定的参考价值。

xcode 编译遇到这样的情况  :

Permission denied Command PhaseScriptExecution failed with a nonzero exit code 

一些老项目的 pods 时,会出现编译失败的会出现,尝试手动清理总是不彻底,一个有效的解决方式是安装 pods 清理工具,然后cd到项目,清理项目中 pods 的关联后,再重新 

pod install

安装清理工具

sudo gem install cocoapods-deintegrate cocoapods-clean复制代码

清理

 

$ pod deintegrate
$ pod clean



掘金地址:https://juejin.im/post/5c8f6760e51d4555f4517658

以上是关于Permission denied Command PhaseScriptExecution failed with a nonzero exit code的主要内容,如果未能解决你的问题,请参考以下文章

ecs-demo systemd[1873387]: eye.service: Failed to execute command: Permission denied解决方法

ecs-demo systemd[1873387]: eye.service: Failed to execute command: Permission denied解决方法

ecs-demo systemd[1873387]: eye.service: Failed to execute command: Permission denied解决方法

error: could not lock config file .git/config: Permission denied/Command failed with exit 255

gcc: error trying to exec ‘cc1plus‘: execvp: Permission denied

gcc: error trying to exec ‘cc1plus‘: execvp: Permission denied