2

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 Answer 1

1

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

Sample

swift-package generate-xcodeproj --xcconfig-overrides Config.xcconfig
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.