Flutter - iOS: Command /bin/sh failed with exit code 255

前端 未结 6 2030
萌比男神i
萌比男神i 2021-02-20 03:54

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         


        
6条回答
  •  北海茫月
    2021-02-20 04:43

    After lots of try i follow these steps to release ipa file :

    1. Go to your trminal:
    2. cd your-flutter-project
    3. flutter run (That will launch the app to your connected or opened device )

    Now, come to again to your MAC terminal and type

    • flutter build apk (that will make the release apk)

    For IOS,

    • flutter build 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

提交回复
热议问题