Repository navigation
Unable to publish app to Apple app store - #76958
Copy link
Copy link
Closed
Labels
a: releaseChallenges faced when attempting to productionize an appChallenges faced when attempting to productionize an appc: regressionIt was better in the past than it is nowIt was better in the past than it is nowfound in release: 1.27Found to occur in 1.27Found to occur in 1.27has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Hi there,
There seems to be an issue with the newest master 1.27.0-9.0.pre.128 when trying to publish the app to the Apple app store. It fails to verify the app with following error:
Error: code 1091 (App Store operation failed. Invalid Swift Support. The file Runner.app/Frameworks/.last_build_id doesn’t have the correct file type for this location. Ensure you’re using the correct file, rebuild your app using the current public (GM) version of Xcode, and resubmit it.)
It works no problem on 1.27.0-8.0.pre.128. I've tested it on my local machine as well as using CodeMagic.
flutter doctor -v:
[✓] Flutter (Channel master, 1.27.0-9.0.pre.128, on macOS 11.1 20C69 darwin-x64, locale en-GB)
• Flutter version 1.27.0-9.0.pre.128 at /Users/amarok/SDK/flutter
• Framework revision 199d5dc086 (2 hours ago), 2021-02-28 14:36:02 -0800
• Engine revision 34236c9837
• Dart version 2.13.0 (build 2.13.0-81.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/amarok/Library/Android/sdk
• Platform android-29, build-tools 28.0.3
• 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-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.0
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.53.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.19.0
[✓] Connected device (3 available)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
• iPad Pro (12.9-inch) (4th generation) (mobile) • A4DE7FF2-003B-4E5E-AAF5-7D5104E78FDC • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.192
• No issues found!Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
a: releaseChallenges faced when attempting to productionize an appChallenges faced when attempting to productionize an appc: regressionIt was better in the past than it is nowIt was better in the past than it is nowfound in release: 1.27Found to occur in 1.27Found to occur in 1.27has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Activity
espresso3389 commentedon Mar 1, 2021
At least, 1.27.0-9.0.pre.64 (1c179c4) works well.
TahaTesser commentedon Mar 1, 2021
Hi @MichalTorma
Thanks for filing the issue, I can verify the issue
both
1.27.0-9.0.pre.128and1.27.0-8.0.pre-126-ge81e0b850cfailsflutter doctor -v
[✓] Flutter (Channel master, 1.27.0-9.0.pre.128, on macOS 11.2.2 20D80 darwin-x64, locale en-GB) • Flutter version 1.27.0-9.0.pre.128 at /Users/tahatesser/Code/flutter_master • Framework revision 199d5dc086 (11 hours ago), 2021-02-28 14:36:02 -0800 • Engine revision 34236c9837 • Dart version 2.13.0 (build 2.13.0-81.0.dev) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Volumes/Extreme/SDK • Platform android-30, build-tools 30.0.3 • ANDROID_HOME = /Volumes/Extreme/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-6915495) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer • Xcode 12.4, Build version 12D4e • CocoaPods version 1.10.1 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) [✓] VS Code (version 1.53.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.19.0 [✓] Connected device (3 available) • Taha’s iPad (mobile) • 00008020-000255113EE8402E • ios • iOS 14.4 • macOS (desktop) • macos • darwin-x64 • macOS 11.2.2 20D80 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.192 • No issues found!1.27.0-8.0.preworks fineflutter doctor -v
[✓] Flutter (Channel unknown, 1.27.0-8.0.pre, on macOS 11.2.2 20D80 darwin-x64, locale en-GB) • Flutter version 1.27.0-8.0.pre at /Users/tahatesser/Code/flutter • Framework revision b7d4806243 (10 days ago), 2021-02-19 09:22:45 -0800 • Engine revision 6993cb229b • Dart version 2.13.0 (build 2.13.0-30.0.dev) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Volumes/Extreme/SDK • Platform android-30, build-tools 30.0.3 • ANDROID_HOME = /Volumes/Extreme/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-6915495) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer • Xcode 12.4, Build version 12D4e • CocoaPods version 1.10.1 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) [✓] VS Code (version 1.53.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.19.0 [✓] Connected device (3 available) • Taha’s iPad (mobile) • 00008020-000255113EE8402E • ios • iOS 14.4 • macOS (desktop) • macos • darwin-x64 • macOS 11.2.2 20D80 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.192 • No issues found!Preview
zanderso commentedon Mar 1, 2021
/cc @jmagman
jmagman commentedon Mar 1, 2021
Bisecting...
jmagman commentedon Mar 1, 2021
It's #76665.
1 remaining item
jmagman commentedon Mar 1, 2021
No, it's leaving a marker in the outputDir that references the buildDir build ID.
jmagman commentedon Mar 1, 2021
@MichalTorma thank you so much for catching this! Can you confirm it is now fixed in master as of #77007? You should
flutter cleanin your project first.TheJulianJES commentedon Mar 3, 2021
I'm getting this issue with the stable release of Flutter 2.0.0.
Can anyone else confirm this is the case?
Edit: Sorry, my build machine was still running on the Flutter dev channel (and thus a newer version with the commit that introduced the issue, but not with the one that fixed it).
zanderso commentedon Mar 3, 2021
Hi @TheJulianJES, the commit that introduced this (#76665) is not in 2.0. Therefore, you're likely seeing a different problem. Could you please file a new github issue with full details? Thanks!
josh2112 commentedon Mar 9, 2021
Is there any way for those poor saps who have just done a "flutter upgrade" (like me) to work around this? If no, how do we downgrade to the latest version without this problem?
TheJulianJES commentedon Mar 9, 2021
flutter channel stableflutter upgradeshould bring you back to the stable channel where the issue is not present (there might be some dependency conflicts though).
jmagman commentedon Mar 9, 2021
@josh2112 If you don't want to jump channels you can run
git checkout 9df362a73ffrom your Flutter SDK. That will put you one commit before the regression at #76665.jmagman commentedon Mar 9, 2021
josh2112 commentedon Mar 9, 2021
Thanks Jenn! I was on dev only for Windows support anyway, so I gave stable a shot and it seems to be working fine.
jlubeck commentedon Mar 12, 2021
Is there any way to use this fix on the dev branch? My project depends on other fixes that are currently in dev but not on stable, but I need to send a build to the app store now and this is preventing me to do so.. Thank you!
jmagman commentedon Mar 12, 2021
@jlubeck The dev branch is never hotfixed, but there should be a new dev release out pretty soon.
jmagman commentedon Mar 13, 2021
@jlubeck
2.1.0-12.1.prewas just published todev. You should be able toflutter upgradeon that channel past the fix.github-actions commentedon Aug 4, 2021
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 -vand a minimal reproduction of the issue.