Closed winston-riley-zocdoc closed 5 months ago
Hi there, we have the exact same problem and removing OTHER_SWIFT_FLAGS
is non possible for us. Any update from the team ?
This is because the OTHER_SWIFT_FLAGS passed to xcodebuild replace the one internally defined in the package. You must add inherited
to your command line to keep the internal flags:
xcodebuild build OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings'
Thank you for the info!
Problem
Swift atomics fails to compile running
xcodebuild
withOTHER_SWIFT_FLAGS
.For example:
However removing
OTHER_SWIFT_FLAGS
succeeds, the target depending on swift-atomics compiles successfully.The following command works:
FWIW, any value for
OTHER_SWIFT_FLAGS
fails in the above way. For examplexcodebuild build OTHER_SWIFT_FLAGS="baz"
also fails.Information
Checklist
main
branch of this package.Steps to Reproduce
xcodebuild build OTHER_SWIFT_FLAGS="-suppress-warnings"
💥 , get the above error.Expected behavior
Project compiles
Actual behavior
Project fails to compile with the following error:
Thanks in advance for any help.