简体   繁体   中英

Can't upload ipa to Testflight: Invalid Bundle

I have a Flutter app and I need to publish a new release. The upload used to work with no issues with the previous version of Flutter sdk.

To upload the ipa I run:

xcrun altool --upload-app --type ios -f ./path_to_my.ipa --apiKey *** --apiIssuer ***

This is the response

*** Error: Error uploading 'path_to_my.ipa'.
*** Error: Invalid Bundle. The bundle Runner.app/Frameworks/App.framework does not support the minimum OS Version specified in the Info.plist. With error code STATE_ERROR.VALIDATION_ERROR.90208 for id ... Asset validation failed (-19208)
 {
    NSLocalizedDescription = "Invalid Bundle. The bundle Runner.app/Frameworks/App.framework does not support the minimum OS Version specified in the Info.plist. With error code STATE_ERROR.VALIDATION_ERROR.90208 for id ...";
    NSLocalizedFailureReason = "Asset validation failed";
}

This is my env

- Flutter (Channel stable, 3.3.0, on macOS 12.2.1 21D62 darwin-x64, locale it-IT)
- Android toolchain - develop for Android devices (Android SDK version 30.0.3)
- Xcode - develop for iOS and macOS (Xcode 13.2.1)
- Android Studio (version 2021.2)

I already tried setting the minimum deployment target to 10.0 everywhere:

  • Runner -> Runner -> General -> Deployment info: Target
  • Runner -> Runner -> info.plist
  • Runner -> Flutter -> AppFrameworkInfo.plist

Any suggestion?

I don't if this will work but it worked for me.

But what basically is wrong is App Framework is mismatching the min OS version originally given to it.

Check this Github issue link: Here

After doing that, run

flutter clean flutter pub get cd ios pod install or pod update

Hope it works fine for you.

As per flutter doc, Flutter has enforced the minimum plugin version of 11 in flutter version 3.3

For more, read Flutter 3.3. Release notes

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM