Set unsafe flags to pass arbitrary command-line flags to the corresponding build tool.
- Xcode 10.2+
- Swift Package Manager
The unsafe flags to set.
A condition that restricts the application of the build setting.
As the usage of the word “unsafe” implies, the Swift Package Manager can’t safely determine if the build flags have any negative side effect on the build since certain flags can change the behavior of how a build is performed.
As some build flags can be exploited for unsupported or malicious behavior, a product can’t be used as a dependency in another package if one of its targets uses unsafe flags.