Swift Package Manager (SPM)
To integrate Sentry into your Xcode
You can define your dependency rule by selecting the SDK version (or branch), and then click the "Add Package" button.
You will then be prompted to choose one of the options
Sentryis the static framework, which is the recommended option if you prefer a fast app start time.
Sentry-Dynamicis the dynamic framework.
SentrySwiftUIis used to track performance of SwiftUI views, see more information in the docs.
Alternatively, when your project uses a
Package.swift file to manage dependencies, you can specify the target with:
.package(url: "https://github.com/getsentry/sentry-cocoa", from: "8.13.0"),
Version tags or branches need to have the Package.swift file in it or Xcode won't be able to install the package. This means versions previous to
4.4.3 cannot be installed using SPM.