Cocoapods

Learn about installing the Sentry SDK with CocoaPods.

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

Copied
platform :ios, '11.0'
use_frameworks! # This is important

target 'YourApp' do
  pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '8.45.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 for more information.

Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").