To integrate Sentry into your Xcode project using Carthage, specify it in your Cartfile:
github "getsentry/sentry-cocoa" "7.31.3"
carthage update to download the framework and drag the built Sentry.framework into your Xcode project. We also provide a pre-built version for every release, which can be downloaded at releases on GitHub.
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. 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.