---
title: "CocoaPods (Deprecated)"
description: "Learn about installing the Sentry SDK with CocoaPods."
url: https://docs.sentry.io/platforms/apple/install/cocoapods/
---

# CocoaPods (Deprecated) | Sentry for Apple

##### Deprecated

We will stop publishing to CocoaPods at the end of June 2026. We recommend migrating to [Swift Package Manager (SPM)](https://docs.sentry.io/platforms/apple/install/swift-package-manager.md) or manually installing the [pre-built XCFramework from GitHub releases](https://github.com/getsentry/sentry-cocoa/releases).

To integrate Sentry into your Xcode project using CocoaPods, specify it in your *Podfile*:

```ruby
platform :ios, '11.0'
use_frameworks! # This is required

target 'YourApp' do
  pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '9.9.0'
end
```

Afterwards run `pod install`.

If you're using Xcode 14 or later, your project might fail to build due to `error: Sandbox: rsync.samba(42924)`. To resolve this you have to disable the "Enable User Script Sandbox" option in the target settings by setting it to `NO`. See [Troubleshooting](https://docs.sentry.io/platforms/apple/troubleshooting.md#sandbox-error-using-cocoapods) for more information.
