I have a project that uses a dozen of local Swift packages and I am trying to find a way of passing some compilation flags when building those packages from Xcode. Unfortunately, setting
SWIFT_ACTIVE_COMPILATION_CONDITIONS has no effect when compiling packages.
It is possible, of course, to do that in the swiftSettings target argument in a manifest file or directly using
swift build -Xswiftc, but I need to set the flags based on different build configurations.
Is there a way of configuring the
xcodebuild tool the way that the flags are passed to package compiler invocations?