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.
Related
When I build a cordova project on Mac Catalyst on Xcode it gives me this error:
Myapp.app: unsealed contents present in the bundle root Command CodeSign failed with a nonzero exit code
What can I do?
I'm trying to Archive my build in Xcode 11.6 running on macOS 10.15.5 and every time I get the same error "Command PhaseScriptExecution failed with a nonzero exit code".
In Signing & Capabilities option I've chosen Distribution provisioning profile on both tabs Debug and Release and I've disabled automatic signing.
I have 2 certificates: one for development and one for distribution.
Here is the error:
I've already tried Keychain lock and unlock. On Xcode 10 and macOS 10.14 this worked without any problems.
Can you help me please,
Robert
According to the error message, it seems there is a build script that tries to run another script called copy-www-build-step.sh, and gets a "Permission Denied" error. The most likely cause is simply that the script file does not have execute permissions (no files have this permission by default, and permissions are often lost when e.g. unzipping an archive).
This can be easily solved by running the following command in Terminal to enable execute permissions:
chmod +x /path/to/copy-www-build-step.sh
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
I can't archive my build it gives the next errorCommand:
PhaseScriptExecution failed with a nonzero exit code
I am not able to run the build in device while run using the provision profile. Is the issue related to a provision profile?
I've tried to reinstall all pods, but still I can't archive a build successfully.
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.