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

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.

Related

Flutter build to real device get PhaseScriptExecution failed with a nonzero exit code

When I built to simulator it work fine without any problem
but when I switching to build to real device or try to build ipa I get this error
PhaseScriptExecution failed with a nonzero exit code
Trying many answers from many sites when google it but not working
any one can help me please .

flutter Xcode error Command PhaseScriptExecution failed with a nonzero exit code

After I integrated the flutter project into the iOS project, I have to 'clean' it with Xcode every time I run the iOS project, otherwise it will report an error. Error content:
Command PhaseScriptExecution failed with a nonzero exit code
you have to apply or set a minimum deployment target in Xcode or in your project. Xcode will show you a recommended update while building the project just click on it and apply to perform changes and it will automatically change in necessary files

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 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.

React-native fails to build for ios because command codesign failed with a nonzero exit code

I recently updated my mac and all of a sudden I can't compile the application I've been working on in react-native. The error it gives is Command CodeSign failed with a nonzero exit code.
When it begins running this command, it says the Signing Identity is "-", even though that I have my signing correctly set in XCode.
It also says, ios/build/Build/Products?Debug-iphonesimulator/project.app: resource fork, Finder information, or similar detritus not allowed.
This also results in a `No bundle URL present." in the iOS simulator.
If it helps, I am using yarn ios to compile.
I have tried solutions previously written for other code signing issues, none of which are related to react-native. None of these solutions have worked.
Have you tried cleaning and rebuilding your project? I had a similar problem recently, and what worked for me is deleting everything from YOUR_PROJECT/ios/build/ and running react-native run-ios command again.

Resources