Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unable to rename debug/release configurations in Xcode #11412
Some times you don't want a debug/release build, you want more specifically named builds. For example, you have a Staging server and a Production server. In these cases you want to have four configurations: debug-staging, debug-production, release-staging, release-production.
If you rename the default debug/release configurations. Flutter run will fail, and it is not possible to build from Xcode. The errors I see are listed below
Currently I can work around this by keeping the default configurations there, and adding the specific configurations as well. But I'm not sure if there are any unknown implications and it is not ideal.
Steps to Reproduce
Make a flutter project, rename the debug/release configurations
@alardizabal, we talked about this this week.
Do you think this solution works for you? It's a bit different from your current setup but could accomplish the same options you want currently.
Right now you guys have 1 scheme:
and 8 build configurations:
and they're all disconnected from your flutter build modes.
The way @mravn-google built it means you can have your intended effects (I think) by having 3 schemes:
Keep your build configurations as is:
Though I'm not sure what 'Debug' and 'Release' without the FB toggle means.
Then also use the flutter build modes to cross multiply.
So to get Debug-B, you'd build
The build config names are bound to the flutter build modes (fixed to
Would that work for you?
@mravn-google is the project flavor customization documented?