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.
Related
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.
I'm trying to build a flutter app in Xcode on my Mac (m1 chip). But it fails due to below error.
Command PhaseScriptExecution failed with a nonzero exit code
As the warning says, my guess is that the issue occur while it trying to build it for arm64. But I have already add aram64 in excluded arch list.
I'm running Xcode on rosetta & also its build successfully on iOS 12 & iOS 14 simulators but the issue comes when I try to build it on real device with iOS 14.3 and also in archive build. What I'm doing wrong here?
Command PhaseScriptExecution failed with a nonzero exit code
The error you've encountered could be due to many reasons. It would be better if you can isolate the issue by performing the workaround that was discussed in this GitHub post.
Sent here from:
#76302
So I was having this issue after trying every flutter clean / podfile
delete sequence under the sun. Turns out my flutter got stuck at an
old version that is evidently not compatible with the latest version
of xcode or something (who really knows).
So I had to run
flutter upgrade --force
flutter clean
delete Podfile and Podfile.lock
run pub get
re-run my build_runner stuff (you may not have this)
flutter run (to run the app on device with all this new stuff / regenerate podfile stuff)
Then I was finally able to get my ios archive to build with flutter build ipa.
FYI: The flutter upgrade command pushed me from 2.0.5 -> 2.2.1 on
the stable channel. Prior to this, I was just getting generic warnings
of Command PhaseScriptExecution failed with a nonzero exit code.
It was confirmed that it was working normally when building and running the simulation.
However, when I connect it to my iPhone 6S+ and proceed with the build, an error like the one in the picture occurs:
Command CodeSign failed with a nonzero exit code
I tried setting my certificate to "always trust" in keychain but it didn't solve the error
xCode version is 11.1 and
Mac OS is BIg Sur 11.5.2.
Please, if anyone has encountered the same problem, please help me in resolving this problem.
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.
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.