Espelho de getsentry/sentry-cocoa (SPM do iOS). O xcframework vem do pacote generic TMF/sentry-cocoa, com sha256 fixado. INFRA-70669
  • Swift 67.6%
  • Objective-C 20.8%
  • C 6.2%
  • Shell 2.3%
  • Objective-C++ 1%
  • Other 2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
sentry-junior[bot] 13f4d4247b
ci(release): Bump craft to 3.9.0 and update config (#9533)
* ci(release): Bump getsentry/craft to 3.9.0

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>

* ci(release): Update .craft.yml for craft 3.9.0

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <126780+BYK@users.noreply.github.com>
2026-11-04 13:05:16 +00:00
.claude chore(agents): Remove XcodeBuildMCP config (#9173) 2026-09-28 14:02:23 +00:00
.codex chore(agents): Remove XcodeBuildMCP config (#9173) 2026-09-28 14:02:23 +00:00
.cursor chore(agents): Remove XcodeBuildMCP config (#9173) 2026-09-28 14:02:23 +00:00
.github ci(release): Bump craft to 3.9.0 and update config (#9533) 2026-11-04 13:05:16 +00:00
.swiftpm/xcode/xcshareddata/xcschemes test: Run main suite with SwiftPM (#9337) 2026-10-21 14:03:09 +02:00
.vscode style: Add suggested dprint extension (#5295) 2025-05-26 10:41:34 -03:00
.xcodebuildmcp chore: Add MCP server config for team (#7490) 2026-02-23 07:45:01 +01:00
3rd-party-integrations release: 9.32.0 2026-10-29 00:13:26 +00:00
develop-docs ci: Use background workflow tasks (#9516) 2026-11-03 19:16:12 +00:00
distribution/apple-binaries release: 9.32.0 2026-10-29 00:13:26 +00:00
docs fix(session-replay): Include layer background color when checking if a view is opaque (#6629) 2025-11-05 12:14:33 +00:00
fastlane ci: Remove app metrics collection (#9350) 2026-10-15 07:36:35 +00:00
linters/SwiftLintCustomRules fix: Keep standalone ObjC categories (#9160) 2026-09-29 15:31:30 +00:00
Plans feat: Connect WebView traces with app traces (#9474) 2026-11-04 10:00:28 +01:00
schema chore(samples): add package traits to macOS-CLI-Xcode sample config (#8408) 2026-07-20 11:06:59 +02:00
scripts ci: Resolve Apple TV simulator per tvOS runtime (#9506) 2026-10-30 17:57:27 +00:00
Sentry.xcodeproj feat: Add SentryObjC WebView trace propagation (#9488) 2026-11-04 11:58:11 +01:00
Sentry.xcworkspace chore(testapps): Rename "samples" to "test apps" (#9115) 2026-09-24 09:19:31 +00:00
SentryTestUtils fix: Preserve samples across profile chunks (#9485) 2026-10-31 01:36:34 +00:00
SentryTestUtilsDynamic test: Run main suite with SwiftPM (#9337) 2026-10-21 14:03:09 +02:00
SentryTestUtilsTests ref: Convert SentryTransaction to Swift (#9369) 2026-10-28 09:20:29 +01:00
skills/relay-conformance-audit chore: update relay-audit surface map (#8585) 2026-08-04 10:12:05 +02:00
Sources feat: Add SentryObjC WebView trace propagation (#9488) 2026-11-04 11:58:11 +01:00
test-server chore(deps): bump github.com/vapor/vapor in /test-server (#9510) 2026-10-30 19:44:57 +00:00
TestApps feat: Connect WebView traces with app traces (#9474) 2026-11-04 10:00:28 +01:00
Tests feat: Add SentryObjC WebView trace propagation (#9488) 2026-11-04 11:58:11 +01:00
Utils chore: Move Swift conversion tools to Utils (#9120) 2026-09-24 09:52:22 +02:00
.clang-format use 100 column width (#532) 2020-05-20 13:36:42 -03:00
.craft.yml ci(release): Bump craft to 3.9.0 and update config (#9533) 2026-11-04 13:05:16 +00:00
.editorconfig chore: Adopt .editorconfig for style (#7933) 2026-05-22 09:09:08 +02:00
.git-blame-ignore-revs meta: ignore code-formatting commits for git blame (#5319) 2025-06-04 13:45:22 -07:00
.gitattributes chore: Union-merge CHANGELOG_V10.md (#9416) 2026-10-21 10:05:34 +00:00
.gitignore test: Migrate profiler tests to SwiftPM (#9086) 2026-09-29 12:59:13 +00:00
.markdownlint-cli2.jsonc ci: add changelog duplicate section check (#8930) 2026-09-04 13:33:18 +02:00
.mcp.json chore(agents): Remove XcodeBuildMCP config (#9173) 2026-09-28 14:02:23 +00:00
.pre-commit-config.yaml ci: Use background workflow tasks (#9516) 2026-11-03 19:16:12 +00:00
.ruby-version ci: Bump Ruby to 3.4.11 for ubuntu-26.04 (#9449) 2026-10-26 09:21:09 -07:00
.spi.yml chore: Prepare sentry-cocoa and integrations for SPI (#9208) 2026-10-01 13:18:33 +00:00
.swiftlint.yml ci: Remove app metrics collection (#9350) 2026-10-15 07:36:35 +00:00
AGENTS.md ci: Use background workflow tasks (#9516) 2026-11-03 19:16:12 +00:00
agents.toml chore(agents): Remove XcodeBuildMCP config (#9173) 2026-09-28 14:02:23 +00:00
Brewfile fix: Keep standalone ObjC categories (#9160) 2026-09-29 15:31:30 +00:00
Brewfile-ci-build ci: camera sample with xcodegen (#5106) 2025-05-06 10:50:58 -08:00
Brewfile-ci-format fix: Keep standalone ObjC categories (#9160) 2026-09-29 15:31:30 +00:00
BUGBOT.md docs: backfill shared Bugbot review rules (#8904) 2026-09-03 17:11:00 +02:00
CHANGELOG.md feat: Add SentryObjC WebView trace propagation (#9488) 2026-11-04 11:58:11 +01:00
CHANGELOG_V10.md feat(metrics): Align metrics API with other SDKs (#9453) 2026-10-27 18:15:37 +00:00
CLAUDE.md docs: Migrate AGENTS.md to nested per-directory files (#7563) 2026-03-03 12:43:21 +00:00
CONTRIBUTING.md docs: Use dark-mode-aware Sentry logo in READMEs (#9460) 2026-10-27 10:25:58 -07:00
dprint.json chore: Prepare sentry-cocoa and integrations for SPI (#9208) 2026-10-01 13:18:33 +00:00
Gemfile build: remove cocoapods gem from Ruby dependencies (#8296) 2026-07-02 16:47:34 +00:00
Gemfile.lock chore(deps): bump fastlane from 2.241.1 to 2.241.2 (#9508) 2026-10-30 19:38:04 +00:00
LICENSE.md chore: Remove date range for LICENSE (#4747) 2025-01-23 11:21:18 +01:00
Makefile fix: Detect CLI in-app frames in v10 (#9393) 2026-10-20 19:39:39 +00:00
MIGRATION.md docs: Move Migration Guide to docs (#767) 2020-10-07 09:48:33 +02:00
Package.swift chore: bump KSCrash to 2.6.1 (#9528) 2026-11-03 16:10:20 -03:00
Package@swift-6.1.swift chore: bump KSCrash to 2.6.1 (#9528) 2026-11-03 16:10:20 -03:00
Package@swift-6.2.swift chore: bump KSCrash to 2.6.1 (#9528) 2026-11-03 16:10:20 -03:00
README.md chore: Prepare sentry-cocoa and integrations for SPI (#9208) 2026-10-01 13:18:33 +00:00
REVIEWS.md docs: backfill shared Bugbot review rules (#8904) 2026-09-03 17:11:00 +02:00
sdk_api.json feat: Connect WebView traces with app traces (#9474) 2026-11-04 10:00:28 +01:00
sdk_api_objc.diff.json feat: Add SentryObjC WebView trace propagation (#9488) 2026-11-04 11:58:11 +01:00
sdk_api_objc.json feat: Add SentryObjC WebView trace propagation (#9488) 2026-11-04 11:58:11 +01:00
sdk_api_objc_v10.diff.json feat: Add SentryObjC WebView trace propagation (#9488) 2026-11-04 11:58:11 +01:00
sdk_api_objc_v10.json feat: Add SentryObjC WebView trace propagation (#9488) 2026-11-04 11:58:11 +01:00
sdk_api_sentryswiftui.json refactor: Add SentrySwiftUI source files to Sentry (#7422) 2026-02-11 09:23:10 +01:00
sdk_api_v10.json feat: Connect WebView traces with app traces (#9474) 2026-11-04 10:00:28 +01:00
sentry-spec-compliance.json feat(metrics): Align metrics API with other SDKs (#9453) 2026-10-27 18:15:37 +00:00
SentryTests-Info.plist ref: Rename SentryTests copy-Info to SentryTests-Info (#5276) 2025-05-21 18:30:32 -03:00
THIRD_PARTY_NOTICES.md chore: Added 3rd party notices (#7399) 2026-02-09 10:03:22 -03:00

Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us Check out our open positions

Note

You are currently viewing the main branch which latest development version of v9 release.

For the latest v8 release, please switch to the v8.x branch and refer to the v8 CHANGELOG.

Official Sentry SDK for iOS / iPadOS / tvOS / macOS / watchOS (1) / visionOS

Build SwiftPM compatible Swift Package Index X Follow Discord Chat

Installation

The quickest way to get started:

brew install getsentry/tools/sentry-wizard && sentry-wizard -i ios

This patches your project and configures the SDK automatically.

Swift Package Manager (Compile from Source)

Use this repository to build the SDK from source:

In Xcode: File > Add Packages, then paste:

https://github.com/getsentry/sentry-cocoa.git

In Package.swift:

dependencies: [
    .package(url: "https://github.com/getsentry/sentry-cocoa", from: "9.24.0"),
],
targets: [
    .target(name: "YourApp", dependencies: [
        .product(name: "SentrySPM", package: "sentry-cocoa"),
    ]),
]

Pre-built XCFrameworks

For pre-built static binaries via SPM, use the sentry-apple-binaries repository.

You can also download XCFrameworks directly from GitHub Releases.

For all installation options (Objective-C, dynamic linking, manual install), see the full installation docs.

Note

CocoaPods support has been dropped. The last version available via CocoaPods is 9.19.1. Please migrate to SPM or XCFrameworks.

Initialization

Remember to call this as early in your application life cycle as possible Ideally in applicationDidFinishLaunching in AppDelegate

import Sentry

// ....

SentrySDK.start { options in
    options.dsn = "___PUBLIC_DSN___"
    options.debug = true // Helpful to see what's going on
}
@import Sentry;

// ....

[SentrySDK startWithConfigureOptions:^(SentryOptions *options) {
    options.dsn = @"___PUBLIC_DSN___";
    options.debug = @YES; // Helpful to see what's going on
}];

For more information checkout the docs.

(1)limited symbolication support and no crash handling.

Logging Integrations

Forward logs from popular logging libraries to Sentry Logs. Each integration is a separate Swift package, so you only pull in the dependencies you use:

Resources