Skip to content

feat(apple): Recommend installing via SPM #9613

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/platforms/apple/common/install/cocoapods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Cocoapods
description: "Learn about installing the Sentry SDK with CocoaPods."
---

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

```ruby
platform :ios, '11.0'
Expand Down
13 changes: 3 additions & 10 deletions platform-includes/getting-started-install/apple.macos.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
The minimum version for macOS is 10.10.

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`:
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:

```ruby {filename:Podfile}
platform :macos, '10.10'
use_frameworks! # This is important

target 'YourApp' do
pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '{{@inject packages.version('sentry.cocoa') }}'
end
```

Then run `pod install`.
https://github.com/getsentry/sentry-cocoa.git
```
13 changes: 3 additions & 10 deletions platform-includes/getting-started-install/apple.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
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`:
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:

```ruby {filename:Podfile}
platform :ios, '11.0'
use_frameworks! # This is important

target 'YourApp' do
pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '{{@inject packages.version('sentry.cocoa') }}'
end
```

Then run `pod install`.
https://github.com/getsentry/sentry-cocoa.git
```
13 changes: 3 additions & 10 deletions platform-includes/getting-started-install/apple.tvos.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
The minimum version for tvOS is 9.0.

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`:
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:

```ruby {filename:Podfile}
platform :tvos, '9.0'
use_frameworks! # This is important

target 'YourApp' do
pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '{{@inject packages.version('sentry.cocoa') }}'
end
```

Then run `pod install`.
https://github.com/getsentry/sentry-cocoa.git
```
13 changes: 3 additions & 10 deletions platform-includes/getting-started-install/apple.watchos.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
The minimum version for watchOS is 2.0. Our SDK has limited symbolication support and no crash or app hang detection for watchOS.

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`:
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:

```ruby
platform :watchos, '2.0'
use_frameworks! # This is important

target 'YourApp' do
pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '{{@inject packages.version('sentry.cocoa') }}'
end
```

Then run `pod install`.
https://github.com/getsentry/sentry-cocoa.git
```