Skip to content

[feat] Allow --config argument when running tauri ios init #13284

@voxelbee

Description

@voxelbee

Describe the problem

It would make sense to allow the --config parameter when using tauri <ios|android> init as this would allow us to setup different flavors correctly. Currently I created 2 extra config files tauri.conf.dev.json and tauri.conf.stg.json. These have a custom identifier set inside and currently I need to regenerate the XCode project to build these custom identifiers but the init command doesn't allow specifiying a different config. It only uses the default one.

Describe the solution you'd like

We should be able to use the --config tauri.conf.stg.json the same as when we run the dev or build commands.

Alternatives considered

Maybe a better setup for different flavors could be discussed where we don't have to regenerate the project files to change which flavor we are building. There could be different targets in the XCode project for each flavor? But for now just allowing --config in the init command will allow this to work.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions