'Command PhaseScriptExecution failed with a nonzero exit code - No such file or directory
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?
Solution 1:[1]
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
Solution 2:[2]
In my case, I had wrong project folder name. Project folder name shouldn't include the space
Solution 3:[3]
For me it was upgrading Plaid from 1.0.0 to 3.0.0. They have a Build Phase to strip the iOS Simulator part from the framework. I had to remove that for it work. Details found here:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | Idrees Ashraf |
| Solution 3 | B-Tron of the Autobots |

