Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Store iOS submission fails: The bundle Runner.app/Frameworks/App.framework does not support the minimum OS Version specified in the Info.plist #58200

Closed
carlfost opened this issue May 28, 2020 · 59 comments
Assignees
Labels
P1 High-priority issues at the top of the work list t: xcode "xcodebuild" on iOS and general Xcode project management tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@carlfost
Copy link

carlfost commented May 28, 2020

I just upgraded Flutter and Xcode and now my successful built are failing when I am uploading it to the App Store connect. The error is:
ERROR ITMS-90208: "Invalid Bundle. The bundle Runner.app/Frameworks/App.framework does not support the minimum OS Version specified in the Info.plist."

Before the upgrade, it was working fine. I checked the Minimum OS versions in Xcode and both are set to iOS 13.0 (i.e info.plist, iOS Deployment Target).

Is there a bug in one of the upgraded tool (Flutter or Xcode)?

[✓] Flutter (Channel master, 1.19.0-2.0.pre.173, on Mac OS X 10.15.5 19F96, locale en-US)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Android Studio (version 3.6)
[✓] VS Code (version 1.45.1)
[✓] Connected device (2 available)

• No issues found!

@TahaTesser
Copy link
Member

hI @carlfost
Just tested on latest master, no issue with minimum OS version

flutter doctor -v
[✓] Flutter (Channel master, 1.19.0-2.0.pre.192, on Mac OS X 10.15.5 19F96, locale en-GB)
    • Flutter version 1.19.0-2.0.pre.192 at /Users/tahatesser/Code/flutter_master
    • Framework revision 9b3634f422 (6 hours ago), 2020-05-29 00:58:01 -0400
    • Engine revision c5d012900f
    • Dart version 2.9.0 (build 2.9.0-11.0.dev 6489a0c68d)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.45.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.10.2

[✓] Connected device (5 available)
    • SM M305F   • 32003c30dc19668f                     • android-arm64  • Android 10 (API 29)
    • iPhone 11  • 0EC80516-8F99-4A0C-89ED-2273579862F9 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-13-5 (simulator)
    • macOS      • macOS                                • darwin-x64     • Mac OS X 10.15.5 19F96
    • Web Server • web-server                           • web-javascript • Flutter Tools
    • Chrome     • chrome                               • web-javascript • Google Chrome 83.0.4103.61

• No issues found!

@TahaTesser TahaTesser added in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels May 29, 2020
@carlfost
Copy link
Author

It eventually worked after changing the App.framework/info.plist value to 13.0, but unbeknown to me, something had changed it back to 8.0. So I checked it again for the 6th time and changed it to 13.0, then the error went away.

/ios/Flutter/App.framework/info.plist
MinimumOSVersion
13.0

/iOS/Runner/
MinimumOSVersion
13.0

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 29, 2020
@carlfost
Copy link
Author

I was able to export the built to the Apple Store Connect.

@Freundschaft
Copy link

Im a little confused here, I have the same problem, but in my Flutter/Runner info.plist there is no minimumOsVersion entry. Also according to https://developer.apple.com/documentation/bundleresources/information_property_list/minimumosversion there shouldnt be.
Apparently it should use the value specified in the "deployment target" build settings. With my setup, both values are set to 8.0 but uploading fails nonetheless. Any ideas?

@srihamat
Copy link

srihamat commented Aug 9, 2020

Changed info.plist MinimumOSVersion from 8.0 to 13.0 according to @carlfost by VS Code.
Then only open xcode to also change deployment target to 13.0 and then execute archive. Still failed building.

Try also change target device from 8.0 to 13.0 in the document at Build and release an ios app. Still failed building.

I try changed /ios/Flutter/AppframeworkInfo.plist MinimumOSVersion from 8.0 to 13.0 then it's build successfully.

Should we change document "Build and release an ios app" ?

@Freundschaft
Copy link

when I set both minimumOsVersion and deployment target to 9.0, everything worked. I wonder if this has something to do with this commit:

0aafdf9#diff-df186efe50dea539a279affe84fde7ef

@pedia
Copy link

pedia commented Aug 11, 2020

After upgrade flutter, this error occurred:

ERROR ITMS-90208: "Invalid Bundle. The bundle Runnder.app/Frameworks/App.framework does not support the minimum OS Version specified in the Info.plist."

Flutter version:

[✓] Flutter (Channel master, 1.21.0-8.0.pre.98, on Mac OS X 10.15.4 19E287, locale en-CN)

Change MinimumOSVersion is not worked, I changed it to 8, 9, 10.

After

rm -rf ios macos android web
flutter create .

This error resolved, currently MinimumOSVersion is 9.0

@trezm
Copy link

trezm commented Aug 14, 2020

Might be good to reopen this, as using flutter upgrade caused this to happen today as well.

@aWildRiceHasAppeared
Copy link

have the same issue too. No matter how many saves and or build I've made App.framework/Info.plist always changes MinimumOSVersionback to 8.0

@pablo-johnson
Copy link

pablo-johnson commented Aug 17, 2020

Same problem here after executing flutter upgrade yesterday.

flutter doctor:

[✓] Flutter (Channel master, 1.21.0-10.0.pre.114, on Mac OS X 10.15.6 19G73, locale es-419)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.47.3)
[✓] Connected device (1 available)

• No issues found!

@pablo-johnson
Copy link

After doing a flutter clean, changing MinimumOSVersion (inside /ios/Flutter/AppframeworkInfo.plist) to 9.0, iOS Deployment Target (inside project runner) to 9.0 and iOS Deployment Target (inside target runner) to 9.0 the error disappeared.

@ryanhz
Copy link

ryanhz commented Aug 17, 2020

After doing a flutter clean, changing MinimumOSVersion (inside /ios/Flutter/AppframeworkInfo.plist) to 9.0, iOS Deployment Target (inside project runner) to 9.0 and iOS Deployment Target (inside target runner) to 9.0 the error disappeared.

Time saver!

@TahaTesser
Copy link
Member

Could everyone who still has this problem please file a new issue with the exact description of what happens, logs and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

@kshivam1177
Copy link

After doing a flutter clean, changing MinimumOSVersion (inside /ios/Flutter/AppframeworkInfo.plist) to 9.0, iOS Deployment Target (inside project runner) to 9.0 and iOS Deployment Target (inside target runner) to 9.0 the error disappeared.

In my case, I had an additional issue. I have selected deployment target 'macOS'.
Unchecked that option and applied the above solution.

Saved my day

@tneotia
Copy link
Contributor

tneotia commented Aug 20, 2020

After doing a flutter clean, changing MinimumOSVersion (inside /ios/Flutter/AppframeworkInfo.plist) to 9.0, iOS Deployment Target (inside project runner) to 9.0 and iOS Deployment Target (inside target runner) to 9.0 the error disappeared.

Tried these exact steps on 1.21.0-9.1.pre and didn't work - when I built iOS --release the AppframeworkInfo.plist got reset to 8.0 at some point and uploading to ASC gives the error still.

Edit: I made a mistake actually in the steps - I tried to change /ios/Flutter/App.framework/Info.plist, not ios/Flutter/AppframeworkInfo.plist.

The plist I changed gets reset to 8.0 during build because it apparently gets its MinimumOSVersion from the other plist you are supposed to change. After following the instructions properly I was able to get a release build to TF.

amake added a commit to amake/orgro that referenced this issue Aug 22, 2020
@gavinerasmus
Copy link

After doing a flutter clean, changing MinimumOSVersion (inside /ios/Flutter/AppframeworkInfo.plist) to 9.0, iOS Deployment Target (inside project runner) to 9.0 and iOS Deployment Target (inside target runner) to 9.0 the error disappeared.

Works perfectly - thanks

@acoutts
Copy link

acoutts commented Sep 1, 2020

@TahaTesser

I've got the same issue after upgrading to 1.22. The app in development but as soon as you upload to TestFlight or AppStore the processing will fail:

[17:47:34]: ERROR ITMS-90208: "Invalid Bundle. The bundle Runner.app/Frameworks/App.framework does not support the minimum OS Version specified in the Info.plist."
Return status of iTunes Transporter was 1: ERROR ITMS-90208: "Invalid Bundle. The bundle Runner.app/Frameworks/App.framework does not support the minimum OS Version specified in the Info.plist."
The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.

It looks like the project from flutter create now does indeed set the minimum version in ios/Flutter/AppFrameworkInfo.plist to 9.0 when it was 8.0 before. It must mean in Flutter 1.22 the minimum iOS version has been bumped to 9.0, and this is a change everyone will need to make in their project.

Flutter doctor:

[✓] Flutter (Channel dev, 1.22.0-1.0.pre, on Mac OS X 10.15.6 19G73, locale en-US)
    • Flutter version 1.22.0-1.0.pre at /Users/andrewcoutts/Projects/flutter
    • Framework revision ce40de69b7 (12 days ago), 2020-08-20 07:31:50 -0700
    • Engine revision 81027ab0cc
    • Dart version 2.10.0 (build 2.10.0-45.0.dev)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/andrewcoutts/Library/Android/sdk
    • Platform android-30, build-tools 29.0.3
    • ANDROID_HOME = /Users/andrewcoutts/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 48.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.48.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.12.1

 
[✓] Connected device (5 available)            
    • Android SDK built for x86 64 (mobile) • emulator-5554                        • android-x64    • Android 10 (API 29) (emulator)
    • iPhone 11 Pro Max (mobile)            • 29CD7BB2-300D-4F6B-BDC2-3130066F7F95 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)
    • iPhone SE (2nd generation) (mobile)   • 476F4C67-CC2F-49FF-9145-13ABBECEECA5 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)
    • Web Server (web)                      • web-server                           • web-javascript • Flutter Tools
    • Chrome (web)                          • chrome                               • web-javascript • Google Chrome 85.0.4183.83
    ! Error: xff0c-se is not connected. Xcode will continue when xff0c-se is connected. (code -13)

• No issues found!

@TahaTesser
Copy link
Member

@acoutts
Please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

@radvansky-tomas
Copy link

I have changed MinimumOSVersion to 11.0 everywhere and its still doing to same thing :(

@AdnanKazi
Copy link

After doing a flutter clean, changing MinimumOSVersion (inside /ios/Flutter/AppframeworkInfo.plist) to 9.0, iOS Deployment Target (inside project runner) to 9.0 and iOS Deployment Target (inside target runner) to 9.0 the error disappeared.

This saved my day Thanks

@muzi131313
Copy link

image
image
image
After change this, it worked

@jmagman
Copy link
Member

jmagman commented Oct 27, 2020

@muzi131313 Are you sure you had to change it in Flutter.framework/Info.plist?

@jmagman
Copy link
Member

jmagman commented Oct 27, 2020

#68729 is available on the master channel. Can someone confirm it fixes the submission issue, without manually changing anything in your Xcode project?

@aseef17
Copy link

aseef17 commented Oct 27, 2020

#68729 is available on the master channel. Can someone confirm it fixes the submission issue, without manually changing anything in your Xcode project?

Will we get a hotfix stable version for this fix?

@jmagman
Copy link
Member

jmagman commented Oct 27, 2020

We need a confirmation it does anything first. I can't submit an app so we're relying on users to help us out. It doesn't do anything with Flutter.framework/Info.plist so if that needs to updated as well we need a larger fix.

@phamnhuvu-dev

This comment has been minimized.

@jmagman
Copy link
Member

jmagman commented Oct 28, 2020

If you are hitting this issue, before applying any workarounds, please check out the Flutter master channel to pick up the potential fix #68729 and let us know if you are then able to submit to the App Store.

We want to solve this issues for all Flutter users automatically, not require a workaround. Your verification is appreciated!

@devon2018
Copy link

Hi @jmagman I've managed to get an app submitted by switching to the master channel. So as far as i can tell it seems to have resolved the issue.

@jmagman
Copy link
Member

jmagman commented Oct 30, 2020

Thanks for letting me know @devon2018! Did you have to edit any Info.plists manually? Can you attach the output of flutter doctor -v and your project's .metadata file?

@jmagman
Copy link
Member

jmagman commented Oct 30, 2020

Also @devon2018 what's your project's iOS deployment target?

@devon2018
Copy link

Screenshot 2020-10-30 at 02 50 51

Screenshot 2020-10-30 at 02 52 28

Both attached.

I didn't have to edit my info.plist, and my deployment target is set to 9

@jmagman jmagman changed the title App.framework does not support the minimum OS Version specified in the Info.plist App Store iOS submission fails: The bundle Runner.app/Frameworks/App.framework does not support the minimum OS Version specified in the Info.plist Oct 30, 2020
@jmagman
Copy link
Member

jmagman commented Oct 30, 2020

Closing. If anyone else can confirm they can submit their app on the master channel that would be helpful!

Hotfix request initiated for #68729.

@brianschardt
Copy link

I can not submit my app on master as master causes a lot of build errors. I am getting this error on the stable channel, which is shocking because this is not stable and we want to push a change to our app in prod.

@jmagman
Copy link
Member

jmagman commented Nov 5, 2020

This fix has been requested for a stable hotfix.

The workaround is to make the MinimumOSVersion Info.plist values embedded in your app match your iOS target version (for example, make them all 9.0).

@ngothanhtai
Copy link

Changed info.plist MinimumOSVersion from 8.0 to 13.0 according to @carlfost by VS Code.
Then only open xcode to also change deployment target to 13.0 and then execute archive. Still failed building.

Try also change target device from 8.0 to 13.0 in the document at Build and release an ios app. Still failed building.

I try changed /ios/Flutter/AppframeworkInfo.plist MinimumOSVersion from 8.0 to 13.0 then it's build successfully.

Should we change document "Build and release an ios app" ?

For me, changed from 8.0 to 10.0 works

@jmagman
Copy link
Member

jmagman commented Nov 9, 2020

If anyone else can confirm they can submit their app on the master channel that would be helpful!

#68729 is in 1.24.0-6.0.pre currently available on the dev channel.

@joecobb
Copy link

joecobb commented Nov 16, 2020

What worked for me was to change it at three places

  1. AppFrameworkInfo.plist - add row 'MinimumOsVersion' '10.0'
  2. Info.plist - add ' Minimum system version' '10.0'
  3. Runner - iOS Deployment Target '10.0'

Hope it helps

@jmagman
Copy link
Member

jmagman commented Jun 24, 2021

I tried migrating this again #85174 please file a new issue and @ me if you see any submission issues!

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P1 High-priority issues at the top of the work list t: xcode "xcodebuild" on iOS and general Xcode project management tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

No branches or pull requests