Closed sems closed 2 years ago
Flutter doesn't hardcode this, Xcode derives this from PRODUCT_NAME
just like any Xcode project, so set that differently per flavor/configuration. The flavors example app:
$ flutter build ipa --flavor paid
Archiving com.yourcompany.flavors.paid...
Running pod install... 1,414ms
Running Xcode build...
└─Compiling, linking and signing... 1,922ms
Xcode archive done. 27.7s
Built /Users/m/Projects/flutter/dev/integration_tests/flavors/build/ios/archive/Paid App.xcarchive.
Where TARGET_NAME
is Paid App
https://github.com/flutter/flutter/blob/361d416e6abb66bf601c5a6600fbc37706bb6c14/dev/integration_tests/flavors/ios/Runner.xcodeproj/project.pbxproj#L709
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.
Use case
It could already be an option, but I can not find any resources about it. Currently there isn't an option to build multiple 'flavors' at the same time or one after the other in bulk. This is because, to my current knowledge, each time you run the
flutter build ipa --flavor <flavor-name>
for different flavors; thebuild/ios/archive/Runner.xcarchive
-file will be overwritten. The time to validate and distribute is much longer than building a single app flavor (at least in my case).Proposal
The possibility to change the name of the
Runner.xcarchive
file when building a specific flavor. The same that$(APP_DISPLAY_NAME)
option does in theinfo.plist
for the app-name. It is unclear to me if this is related to issue #9767