Skip to content

How to pass build settings #5518

Answered by kwridan
shurale85 asked this question in Q&A
Oct 23, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @shurale85

SWIFT_ACTIVE_COMPILATION_CONDITIONS is one of the build settings Tuist has a default for in debug at the target level. This ends up taking precedence over any defined in the xcconfig sadly and that is why only the release configuration is working in your first attempt.

In terms of how to set the setting in Tuist, you have a few options

  • (1) The first is the one you already discovered, which is explicitly specifying them in Settings within the Project.swift manifest at the target level which takes precedence over the tuist defaults (but does mean the setting in the xcconfig would be redundant)

  • (2) Another would be to exclude SWIFT_ACTIVE_COMPILATION_CONDITIONS from the lis…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shurale85
Comment options

Answer selected by shurale85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants