I'm invoking xcodebuild
(Xcode 12.5) specifying an xcconfig file using the -xcconfig
parameter.
If the xcconfig file contains a conditional variable assignment based on build configuration (for example SWIFT_OPTIMIZATION_LEVEL[config=Debug] = -Onone
), I get the following error:
FIXME: Implement XCBuild support for macros in overriding parameters with condition sets:
SWIFT_OPTIMIZATION_LEVEL[config=Debug] = -Onone
and xcodebuild
fails whatever action was performing.
Note that this also happens when building using fastlane gym
and passing the xcconfig file using gym's xcconfig
parameter (it makes sense since gym
is simply invoking xcodebuild
under the hood and using the same xcconfig
parameter...)