Skip to content

Commit db89fa0

Browse files
SPM: package(name:url:from:) is deprecated (#5964)
Co-authored-by: Philipp Hofmann <[email protected]>
1 parent c12ac24 commit db89fa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platforms/apple/common/install/swift-package-manager.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ https://github.com/getsentry/sentry-cocoa.git
1111

1212
You can define your dependency rule by selecting the SDK version (or branch), and then click the "Add Package" button.
1313

14-
Alternatively, when using SPM version 5.2 or later and your project uses `Package.swift` file to manage dependencies, you can specify the target with name:
14+
Alternatively, when your project uses a `Package.swift` file to manage dependencies, you can specify the target with:
1515

1616
```swift {tabTitle:Swift}
17-
.package(name: "Sentry", url: "https://github.com/getsentry/sentry-cocoa", from: "{{ packages.version('sentry.cocoa') }}"),
17+
.package(url: "https://github.com/getsentry/sentry-cocoa", from: "{{ packages.version('sentry.cocoa') }}"),
1818
```
1919

2020
<Note>

0 commit comments

Comments
 (0)