Command PhaseScriptExecution failed with a nonzero exit code - No such file or directory

Noah Schmidt picture Noah Schmidt · Jan 30, 2019 · Viewed 10.2k times · Source

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"

The full error description is:

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 directory Command PhaseScriptExecution failed with a nonzero exit code

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

Answer

Robert Dresler picture Robert Dresler · May 23, 2019

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

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

enter image description here