Browse Questions

Active Compilation Conditions — not "Other Swift Flags".

Go to Target → Build Settings, search for Active Compilation Conditions, and set the value per configuration:

ConfigurationActive Compilation Conditions
DevDev
SITSIT
UATUAT
Prod(leave empty)

⚠️ If you add flags to Other Swift Flags instead, #if checks will silently fall through to #else. Values are case-sensitive and must exactly match what you write in Swift.

Leaving Prod empty means the #else branch handles production — the safest fallback pattern.