Repository navigation
flutter build ipa fails: Command line name "app-store" is deprecated. Use "app-store-connect" #149369
Description
Activity
On Xcode 15.4
xcodebuild --helpsays the options areapp-store-connect, notapp-store.ad-hochas changed torelease-testing, anddevelopmenthas changed todebugging.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).
flutter/packages/flutter_tools/lib/src/commands/build_ios.dart
Lines 106 to 107 in a142372
defaultsTo: 'app-store', allowed: <String>['app-store', 'ad-hoc', 'development', 'enterprise'], 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.
Absolutely inevitable:
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 usingxcodebuilddirectly.- 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-storeorapp-store-connect, use deprecatedapp-storein the plist. If it'sad-hocorrelease-testing, use deprecatedad-hoc, etc. - If on >= Xcode 14.3, the same, but use the new, un-deprecated variants.
- Add tests and update existing ones.
- Add the new options to the
- addedplatform-iosiOS applications specificallyiOS applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
on May 31, 2024 - added a commit that references this issue
on Jun 27, 2024 Seems to be working now
Reacted by Jenn Magder- added a commit that references this issue
on Jul 8, 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.- locked as resolved and limited conversation to collaborators
on Jul 11, 2024
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Originally posted by @MarcusWlc92 in #106612 (comment)