Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode

xcode10

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?

like image 718
Noah Schmidt Avatar asked Jan 30 '19 20:01

Noah Schmidt


Video Answer


2 Answers

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

like image 54
Robert Dresler Avatar answered Oct 17 '22 08:10

Robert Dresler


In my case, I had wrong project folder name. Project folder name shouldn't include the space

like image 5
Idrees Ashraf Avatar answered Oct 17 '22 10:10

Idrees Ashraf