---
title: "Carthage (Deprecated)"
description: "Learn about integrating Sentry into your Xcode project using Carthage."
url: https://docs.sentry.io/platforms/apple/install/carthage/
---

# Carthage (Deprecated) | Sentry for Apple

##### Deprecated

We dropped official support for Carthage in v9. If you're using Carthage, please migrate to [Swift Package Manager (SPM)](https://docs.sentry.io/platforms/apple/install/swift-package-manager.md) or manually install the [pre-built XCFramework from GitHub releases](https://github.com/getsentry/sentry-cocoa/releases).

To integrate Sentry into your Xcode project using Carthage, specify it in your *Cartfile*:

```ruby
github "getsentry/sentry-cocoa" "8.57.3"
```

Run `carthage update` to download the framework and drag the built *Sentry.xcframework* into your Xcode project. We also provide a pre-built version for every release, which can be downloaded at [releases on GitHub](https://github.com/getsentry/sentry-cocoa/releases).

Sentry's Carthage setup generates 3 different frameworks:

* Sentry
* SentryPrivate
* SentrySwiftUI

*Sentry* is required for all projects. *SentrySwiftUI* is required to measure the performance of your SwiftUI views. *SentryPrivate* is only needed if you changed the carthage build process to generate static frameworks.

The SDK supports integrating Sentry with VisionOS via Carthage on `sentry-cocoa 8.20.0` and above.

## [Macs with Apple Silicon and XCFrameworks](https://docs.sentry.io/platforms/apple/install/carthage.md#macs-with-apple-silicon-and-xcframeworks)

If you're using Sentry via Carthage on Macs with Apple Silicon or want to use XCFrameworks, please use Carthage >= 0.37.0, which introduced [support for XCFramework](https://github.com/Carthage/Carthage/releases/tag/0.37.0). Make sure to use `carthage build --use-xcframeworks --no-use-binaries` after running `carthage update --use-xcframeworks`. Carthage 0.37.0 needs to rebuild the XCFramework from source because it can't handle GitHub dependencies that download binaries. Learn more in their [release notes](https://github.com/Carthage/Carthage/releases/tag/0.37.0).
