interoperabilityMode(_:_:)
Enables Swift interoperability with a given language.
Declaration
static func interoperabilityMode(_ mode: SwiftSetting.InteroperabilityMode, _ condition: BuildSettingCondition? = nil) -> SwiftSettingParameters
- mode:
The interoperability mode, either C-compatible or C++-compatible.
- condition:
A condition that restricts the application of the build setting.
Discussion
This is useful for enabling interoperability between Swift and C++ for a given target.
Enabling C++ interoperability mode might alter the way some existing C and Objective-C APIs are imported.