You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flutter build ipa fails: Command line name "app-store" is deprecated. Use "app-store-connect" #149369
On Xcode 15.4 xcodebuild --help says the options are app-store-connect, not app-store. ad-hoc has changed to release-testing, and development has changed to debugging.
Available options: app-store-connect, release-testing, enterprise, debugging, developer-id, mac-application, validation, and package. The list of options varies based on the type of archive. Defaults to debugging. Additional options include app-store (deprecated: use app-store-connect), ad-hoc (deprecated: use release-testing), and development (deprecated: use debugging).
This change appears to have happened in Xcode 14.3. Xcode 14.2 says the old methods:
Available options: app-store, validation, ad-hoc, package, enterprise, development, developer-id, and mac-application. The list of options varies based on the type of archive. Defaults to development.
There are so many options when you export an archive that would have to be exposed in that command just to pipe 1:1 into xcodebuild/exportOptionsPlist. You pretty much need an entire UI wizard flow in the CLA to make it manageable, which Xcode already has (and keeps updated with new App Store requirements). So either we build an identical wizard flow, or we expose all the below flags, and if you can successfully use them, then congrats! you are an Xcode guru and are probably already using xcodebuild directly.
Add the new options to the addOption "allowed" list.
Check the current version of Xcode via Xcode.currentVersion
If on < Xcode 14.3, if the export method is app-store or app-store-connect, use deprecated app-store in the plist. If it's ad-hoc or release-testing, use deprecated ad-hoc, etc.
If on >= Xcode 14.3, the same, but use the new, un-deprecated variants.
#150407 is about to land, @szechyjs@saumon or anyone else subscribed to this issue: once it does land (or if you want to patch it in now) can you give it a try and let us know if it unblocks submission?
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.
Activity
jmagman commentedon May 31, 2024
On Xcode 15.4
xcodebuild --helpsays the options areapp-store-connect, notapp-store.ad-hochas changed torelease-testing, anddevelopmenthas changed todebugging.flutter/packages/flutter_tools/lib/src/commands/build_ios.dart
Lines 106 to 107 in a142372
This change appears to have happened in Xcode 14.3. Xcode 14.2 says the old methods:
jmagman commentedon May 31, 2024
Absolutely inevitable:
#13065 (comment)
jmagman commentedon May 31, 2024
addOption"allowed" list.Xcode.currentVersionapp-storeorapp-store-connect, use deprecatedapp-storein the plist. If it'sad-hocorrelease-testing, use deprecatedad-hoc, etc.jmagman commentedon Jun 26, 2024
#150407 is about to land, @szechyjs @saumon or anyone else subscribed to this issue: once it does land (or if you want to patch it in now) can you give it a try and let us know if it unblocks submission?
Fixes `flutter build ipa` failure: Command line name "app-store" is d…
LouiseHsu commentedon Jun 27, 2024
@szechyjs @saumon #150407 Has landed - let me know if this fixes the issue for you.
szechyjs commentedon Jun 27, 2024
Seems to be working now
Fixes `flutter build ipa` failure: Command line name "app-store" is d…
github-actions commentedon Jul 11, 2024
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.