Permission denied Command PhaseScriptExecution failed with a nonzero exit code

2,413 阅读1分钟

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