interoperabilityMode(_:_:)

    Enable Swift interoperability with a given language.

    BuildSettings.swift:383
    SwiftPM
    5.9+
    static func interoperabilityMode(_ mode: InteroperabilityMode, _ condition: BuildSettingCondition? = nil) -> SwiftSetting

    Parameters

    mode

    The language mode, either C or CXX.

    condition

    A condition that restricts the application of the build setting.

    This is useful for enabling interoperability with Swift and C++ for a given target.

    Enabling C++ interoperability mode might alter the way some existing C and Objective-C APIs are imported.

    Other members in extension

    Types

    Type members

    Show obsolete interfaces (1)

    Hide obsolete interfaces