---
title: "linkedFramework(_:_:)"
framework: packagedescription
role: symbol
role_heading: Type Method
path: "packagedescription/linkersetting/linkedframework(_:_:)"
---

# linkedFramework(_:_:)

Declares linkage to a system framework.

## Declaration

```swift
static func linkedFramework(_ framework: String, _ condition: BuildSettingCondition? = nil) -> LinkerSetting
```

## Parameters

- `framework`: The framework name.
- `condition`: A condition that restricts the application of the build setting.

## Discussion

Discussion This setting is most useful when the framework can’t be linked automatically, such as C++ based frameworks and non-modular frameworks. note: First available in PackageDescription 5.0.

## See Also

### Configuring Linker Settings

- [linkedLibrary(_:_:)](packagedescription/linkersetting/linkedlibrary(_:_:).md)
- [unsafeFlags(_:_:)](packagedescription/linkersetting/unsafeflags(_:_:).md)
