"Command PhaseScriptExecution failed with a nonzero exit code." - ios

Just got a problem while building xcode workspace file.
I got this file from a friend. He has macOS Mojave and the latest Xcode version while I have macOS 10.13.6 and Xcode 10.1.
Whenever I tried to build, I encountered this message:
Command PhaseScriptExecution failed with a nonzero exit code.
I tried everything on google but I couldn't solve the issue
It's supposed to show iPhone simulator.

Related

error build: Command PhaseScriptExecution failed with a nonzero exit code Xcode 14.0.1

I am trying in run flutter ios after making pods app showed in device also, but its when xcode opens it, the build get failed
I am using Xcode Version 14.0.1
flutter version Flutter 3.7.0
error build: Command PhaseScriptExecution failed with a nonzero exit code

please help me. Command PhaseScriptExecution failed with a nonzero exit code

please help me
i found that error while move to another developer device ,
previously i used windows laptop and it was fine, but when i move to mac mini m1 this problem appears
Command PhaseScriptExecution failed with a nonzero exit code
flutter doctor
Got same issue, I solved that by changing "Any iOS SDK" to "Any iOS Simulator SDK" from Xcode in Excluded Architectures section.
Xcode screenshot
Try switching to Flutter master channel and then check to see if it work or not, then switch back to Flutter stable channel.

Xcode 11.2.1 error: Command CompileSwiftSources failed with a nonzero exit code

I've downloaded the latest Xcode 11.2.1. When I build I'm getting this error.
<unknown>:0: error: using bridging headers with module interfaces is unsupported
Command CompileSwiftSources failed with a nonzero exit code
How can I resolve this?
I solved this build error by setting Build Options -> Build Libraries for Distribution in the targets Build Settings to No.
I stumbled upon this config change that worked for me so I don't have any evidence/research to back up why it works. And I have only tried this for debug builds, will update my answer if anything changes. Your milage may vary.
My project specs below:
Xcode 11.1 (11A1027)
Brownfield React Native iOS app

Xcode 10 Alamofire Command PhaseScriptExecution failed with a nonzero exit code

Failing to build an Xcode project for the first time with Alamofire and SwiftyJSON. Getting the error:
Code Signing /Users/tc/Library/Developer/Xcode/DerivedData/Theo's_App-dettsmkxqclxnkgyvtofbjnhseyp/Build/Products/Debug-iphonesimulator/Theo's App.app/Frameworks/Alamofire.framework with Identity -
/usr/bin/codesign --force --sign - --preserve-metadata=identifier,entitlements '/Users/tc/Library/Developer/Xcode/DerivedData/Theo's_App-dettsmkxqclxnkgyvtofbjnhseyp/Build/Products/Debug-iphonesimulator/Theo's App.app/Frameworks/Alamofire.framework'
/Users/tc/Library/Developer/Xcode/DerivedData/Theos_App-dettsmkxqclxnkgyvtofbjnhseyp/Build/Products/Debug-iphonesimulator/Theos App.app/Frameworks/Alamofire.framework: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
Tried finding similar issues online and doing their solutions but build keeps failing.
#Cœur, I was facing the same issue with Xcode 10 recently. Not sure if it will work for you.
Try to close Xcode, and open your project xxx.xcworkspace from the finder instead of the xcode recent project panel.
Seems like there's a bug in Xcode 10.

Not able to build ionic3 ipa in mac os 10.13.2 using xcode 9.0

I am trying to build ipa for ionic 3 app in mac using xcode version 9.0.
As per the document I think I got the steps correctly, however I am not able to go through this step.
The error message reads like this:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can I fix this issue.

Resources