Skip to content

Commit dbe7531

Browse files
feat(apple): Recommend installing via SPM (#9613)
We already recommend installing the Cocoa SDK via SPM in the wizard. Let's also change it in the docs to align.
1 parent 7207f11 commit dbe7531

File tree

5 files changed

+13
-41
lines changed

5 files changed

+13
-41
lines changed

docs/platforms/apple/common/install/cocoapods.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Cocoapods
33
description: "Learn about installing the Sentry SDK with CocoaPods."
44
---
55

6-
We recommend installing the SDK with CocoaPods. To integrate Sentry into your Xcode project, specify it in your _Podfile_:
6+
To integrate Sentry into your Xcode project using CocoaPods, specify it in your _Podfile_:
77

88
```ruby
99
platform :ios, '11.0'
Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
The minimum version for macOS is 10.10.
22

3-
We recommend installing the SDK with CocoaPods, but we also support alternate [installation methods](install/). To integrate Sentry into your Xcode project, specify it in your `Podfile`:
3+
We recommend installing the SDK with Swift Package Manager (SPM), but we also support alternate [installation methods](install/). To integrate Sentry into your Xcode project, open your App in Xcode and open **File > Add Packages**. Then add the SDK by entering the git repo url in the top right search field:
44

5-
```ruby {filename:Podfile}
6-
platform :macos, '10.10'
7-
use_frameworks! # This is important
8-
9-
target 'YourApp' do
10-
pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '{{@inject packages.version('sentry.cocoa') }}'
11-
end
125
```
13-
14-
Then run `pod install`.
6+
https://github.com/getsentry/sentry-cocoa.git
7+
```
Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
We recommend installing the SDK with CocoaPods, but we also support alternate [installation methods](install/). To integrate Sentry into your Xcode project, specify it in your `Podfile`:
1+
We recommend installing the SDK with Swift Package Manager (SPM), but we also support alternate [installation methods](install/). To integrate Sentry into your Xcode project, open your App in Xcode and open **File > Add Packages**. Then add the SDK by entering the git repo url in the top right search field:
22

3-
```ruby {filename:Podfile}
4-
platform :ios, '11.0'
5-
use_frameworks! # This is important
6-
7-
target 'YourApp' do
8-
pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '{{@inject packages.version('sentry.cocoa') }}'
9-
end
103
```
11-
12-
Then run `pod install`.
4+
https://github.com/getsentry/sentry-cocoa.git
5+
```
Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
The minimum version for tvOS is 9.0.
22

3-
We recommend installing the SDK with CocoaPods, but we also support alternate [installation methods](install/). To integrate Sentry into your Xcode project, specify it in your `Podfile`:
3+
We recommend installing the SDK with Swift Package Manager (SPM), but we also support alternate [installation methods](install/). To integrate Sentry into your Xcode project, open your App in Xcode and open **File > Add Packages**. Then add the SDK by entering the git repo url in the top right search field:
44

5-
```ruby {filename:Podfile}
6-
platform :tvos, '9.0'
7-
use_frameworks! # This is important
8-
9-
target 'YourApp' do
10-
pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '{{@inject packages.version('sentry.cocoa') }}'
11-
end
125
```
13-
14-
Then run `pod install`.
6+
https://github.com/getsentry/sentry-cocoa.git
7+
```
Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
The minimum version for watchOS is 2.0. Our SDK has limited symbolication support and no crash or app hang detection for watchOS.
22

3-
We recommend installing the SDK with CocoaPods, but we also support alternate [installation methods](install/). To integrate Sentry into your Xcode project, specify it in your `Podfile`:
3+
We recommend installing the SDK with Swift Package Manager (SPM), but we also support alternate [installation methods](install/). To integrate Sentry into your Xcode project, open your App in Xcode and open **File > Add Packages**. Then add the SDK by entering the git repo url in the top right search field:
44

5-
```ruby
6-
platform :watchos, '2.0'
7-
use_frameworks! # This is important
8-
9-
target 'YourApp' do
10-
pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '{{@inject packages.version('sentry.cocoa') }}'
11-
end
125
```
13-
14-
Then run `pod install`.
6+
https://github.com/getsentry/sentry-cocoa.git
7+
```

0 commit comments

Comments
 (0)