linkedLibrary(_:_:)

    Declares linkage to a system library.

    BuildSettings.swift:447
    SwiftPM
    5.0+
    static func linkedLibrary(_ library: String, _ condition: BuildSettingCondition? = nil) -> LinkerSetting

    Parameters

    library

    The library name.

    condition

    A condition that restricts the application of the build setting.

    This setting is most useful when the library can’t be linked automatically, such as C++ based libraries and non-modular libraries.

    See also