Fix Swift Package Manager install instruction

This commit is contained in:
Sindre Sorhus 2020-05-18 13:01:16 +08:00 committed by GitHub
parent 33ad1a246b
commit f67098fd5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -29,11 +29,9 @@ It's used in production by apps like [Gifski](https://github.com/sindresorhus/Gi
#### Swift Package Manager
```swift
.package(url: "https://github.com/sindresorhus/Defaults", from: "4.0.0")
```
Add `https://github.com/sindresorhus/Defaults` in the [“Swift Package Manager” tab in Xcode](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app).
You need to set the build setting “Other Linker Flags” to `-weak_framework Combine` to work around [this Xcode bug](https://github.com/feedback-assistant/reports/issues/44).
You also need to set the build setting “Other Linker Flags” to `-weak_framework Combine` to work around [this Xcode bug](https://github.com/feedback-assistant/reports/issues/44).
#### Carthage