Understand cargo-swift configuration precedence
mainWhen providing configuration values, cargo-swift resolves conflicts using the following order of precedence (highest to lowest):
- Command-line arguments (e.g.,
--platforms macos ios) - Crate-level metadata in
[package.metadata.swiftpackage]withinCargo.toml - Workspace-level metadata in
[workspace.metadata.swiftpackage]within the workspaceCargo.toml - Interactive prompts (values provided during runtime if not found in the methods above)