1
votes

I'm trying to get SPM to work with different build configurations other than Debug and Release. Our iOS project has different schemes (e.g. Debug-Staging, Debug-Production, Alpha-Staging, Alpha-Production, etc.) where I set the bundle identifier, some flags, etc.

Is there a way to achieve that diversification even if SPM only "understands" Debug and Release?

1

1 Answers

1
votes

Specify path to your custom config file when invoking generate-xcodeproj command.

Sample

swift-package generate-xcodeproj --xcconfig-overrides Config.xcconfig