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

前端 未结 6 2044
萌比男神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:42

    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.

提交回复
热议问题