Xcode 10 Alamofire Command PhaseScriptExecution failed with a nonzero exit code - ios

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.

Related

Failed to package: Command PhaseScriptExecution failed with a nonzero exit code

I am constantly getting the following error when trying to build my Flutter app in Xcode:
Failed to package /Users/Me/yourapp/
Command PhaseScriptExecution failed with a nonzero exit code
Font subsetting is not supported in debug mode. The --tree-shake-icons flag will be ignored.
I am out of options. I tried everything, literally every single of the answer provided in previous answers.
Note:
1 - I first build the app on Windows
2 - Cloned my app on my MacBook via Github
3 - Downloaded Cocoapods
4 - Ran Flutter run
Failed to package /Users/Me/yourapp/
Command PhaseScriptExecution failed with a nonzero exit code
And there is the error.
Edit:
Font subsetting is not supported in debug mode. The --tree-shake-icons flag will be ignored.
Is what I get now...
How can we solve this?
Note: working on an older MacBook (2014) and my device (iPhone) is plugged in. Both the device as well as simulator are not working.
Try to do:
flutter create .
You have to do this in your main project folder. Remove any ios folder if there is one and make sure you do the command with the dot.
Should work.
It will solve it for sure. Both of your questions are related to the same topic.

Command PrecompileSwiftBridgingHeader failed with a nonzero exit code

I am developing swift project using some objective-c files via "bridge-header-file".Its working fine for first time. I just close the xcode and reopen my project and i run it. But not working...showing "Command PrecompileSwiftBridgingHeader failed with a nonzero exit code"
Please help me
Check the Path in
Target -> Built Settings -> Objective-C Bridging Header
Correcting the path works for me in Xcode 12.

Command PhaseScriptExecution failed with a nonzero exit code Xcode 11.4

I am trying to build an archive for my flutter app on Xcode, bt I do not know why I kept getting this error.
Command PhaseScriptExecution failed with a nonzero exit code
I have my project migrated using the manual migration guildlines for the Xcode 11.4 version. My project runs well on the simulator though but I cannot build the .ipa archive file.
Logs
/Users/apple/Library/Developer/Xcode/DerivedData/Runner-acigcqmznpynacbcdnfflfigyoxx/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/Kashbase .app/Frameworks/Flutter.framework/Flutter: errSecInternalComponent
Non-fat binary /Users/apple/Library/Developer/Xcode/DerivedData/Runner-acigcqmznpynacbcdnfflfigyoxx/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications//Kashbase .app/Frameworks/App.framework/App is not armv7. Running lipo -info:
Non-fat file: /Users/apple/Library/Developer/Xcode/DerivedData/Runner-acigcqmznpynacbcdnfflfigyoxx/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications//Kashbase .app/Frameworks/App.framework/App is architecture: x86_64
Command /bin/sh failed with exit code 1
Try this workaround:
Go to
Keychain Access -> Right-click on login -> Lock & unlock again
Xcode -> Clean Xcode project -> Make build again
Keychain Access
is a program in your Mac in Utilities. Cmd Tab keychain Access to find
it.
You can also try other solutions here if the workaround mentioned above is not working.

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

"Command PhaseScriptExecution failed with a nonzero exit code."

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.

Resources