MIT License

项目介绍

getsentry/sentry-cocoa 是一个托管在 GitHub 上的开源项目,主要使用 Swift 编写,采用 MIT License 许可证,目前获得 1.1k 个 Star、434 次 Fork。

仓库全名
getsentry/sentry-cocoa
开源许可证
MIT License
Star 数
1.1k
Fork 数
434
未关闭 Issue
345

README 摘要

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…

完整内容见 GitHub 原始 README 或本页 。

常见问题

sentry-cocoa 用什么语言开发?

主要使用 Swift 编写,采用 MIT License 许可证,目前有 1.1k 个 Star。

sentry-cocoa 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 sentry-cocoa 的源码?

可以直接克隆仓库:git clone https://github.com/getsentry/sentry-cocoa.git,默认分支为 main;安装与运行步骤见仓库 README。

sentry-cocoa 最近还在维护吗?

仓库最近一次更新为 1 天前,当前有 345 个未关闭 Issue;Star 数为 1.1k,可作为社区活跃度的参考。

语言占比

C
C++
CMake
HTML
JavaScript
Makefile
Objective-C
Objective-C++
Python
Ruby
Shell
Starlark
Swift

Release

README

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

评论

暂无评论