Good afternoon,
I try to run a Flutter project on iOS, previously successfully run on Android. However, I got an error:
\"x86_64\" is not an allowed valu
For me helped:
In terminal command
flutter clean
Start Xcode by running Runner.xcworkspace, that you have inside your project folder /yourProjectFolder/ios/Runner
I solve the problem with the following commands.
flutter clean
flutter build ios
After that I can create signed builds and also upload to App Stores.
This exit code (255) occurs from incorrectly Generated.xcconfig configuration like TRACK_WIDGET_CREATION, FLUTTER_FRAMEWORK_DIR, FLUTTER_BUILD_MODE
In archive ios release mode. So before archiving make sure to run flutter clean
then flutter build ios
for some reason flutter build ios --release
doesn't work for me. Then lastly go to Xcode and archive the ios app
Commands
flutter clean
then
flutter build ios
Hope it helps.
After lots of try i follow these steps to release ipa file :
Now, come to again to your MAC terminal and type
For IOS,
after complete the task you will see the path of your file package something like
/Users/Sanjeev/Documents/WorkSpaceForFlutter/myapp/build/ios/iph oneos/Runner.app.
Now go to Xcode >Product >Archive you will get the screen below
This is how i resolve my issue Command /bin/sh failed with exit code 255
This issue happened to me after building a release version. It seems that iOS emulators does not support release versions.
If you want to run your app on an emulator you will need to build a debug version
flutter clean
flutter build ios --debug
For me, it happenned that I was opening .xcodeproj (WRONG)
file instead of .xcworkspace (RIGHT)