Using Xcode 8, running on macOS Sierra I am trying to declare a conditional variable in an xcconfig
file.
My project is using fastlane match, so primarily I want to use fastlane gym to archive me app, but I want to be able to perform archiving manually as well (testing purposes).
What I want to achieve is something like this:
_ARCHIVING_WITH_CLI = YES // Actually want to check for some fastlane ENV variabel here, not sure how...
#ifdef _ARCHIVING_WITH_CLI
_PROVISIONING_PROFILE_APP_STORE = sigh_com.mycomp.app_appstore
#else
_PROVISIONING_PROFILE_APP_STORE = match AppStore com.mycomp.app
#endif
PROVISIONING_PROFILE_SPECIFIER[config=Release] = $(_PROVISIONING_PROFILE_APP_STORE)
But apparently that is the wrong syntax. I have tried looking for documentation but not really found any.
- Can you help me with the
xcconfig
syntax? - Can you help me with
checking if archive was initiated manually or via fastlane
gym
(
xcodebuild
CLI)