本文介绍了命令 PhaseScriptExecution 失败,退出代码非零 - 没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我尝试在 Xcode 10 上运行我的 iOS 应用程序时,它都会失败并给我错误消息Command PhaseScriptExecution failed with a nonzero exit code"

Every time I try to run my iOS app on Xcode 10, it fails and gives me the error "Command PhaseScriptExecution failed with a nonzero exit code"

完整的错误描述是:

bash:/Users/Noah 1/Library/Developer/Xcode/DerivedData/WeatherSando-dszhaqymmhxfptfiymvnuvshlbtb/Build/Products/Debug-iphoneos/WeatherSando.app/Frameworks/AerisCore.framework/strip-frameworks.sh:没有那个文件或目录命令 PhaseScriptExecution 失败,退出代码非零

bash: /Users/Noah 1/Library/Developer/Xcode/DerivedData/WeatherSando-dszhaqymmhxfptfiymvnuvshlbtb/Build/Products/Debug-iphoneos/WeatherSando.app/Frameworks/AerisCore.framework/strip-frameworks.sh: No such file or directoryCommand PhaseScriptExecution failed with a nonzero exit code

我从我的项目中删除了所有 AerisWeather CocoaPods,有什么问题?

I removed all AerisWeather CocoaPods from my project, what is wrong?

推荐答案

对我来说,按照 @Phillip Mills 的建议工作.构建阶段引用已删除的框架.

For me worked what @Phillip Mills suggested. Build phase references the framework which has been removed.

就我而言,我删除了手动嵌入的框架,我将其替换为 CocoaPod 依赖项.我需要以前不再存在的脚本,但我没有删除它.

In my case I removed manually embedded framework which I replaced with CocoaPod dependency. I needed script which there was previouly no longer but I didn't remove it.

因此,为您的目标寻找构建阶段并删除运行脚本

So, look to Build Phases for your target and remove Run script

这篇关于命令 PhaseScriptExecution 失败,退出代码非零 - 没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-10 21:34