{"id":16699866,"url":"https://github.com/malcommac/sentry-cocoa-sdk-xcframeworks","last_synced_at":"2025-11-10T16:29:33.483Z","repository":{"id":65794026,"uuid":"599990689","full_name":"malcommac/sentry-cocoa-sdk-xcframeworks","owner":"malcommac","description":"A mirror for https://github.com/getsentry/sentry-cocoa to add support for binary (xcframework) distribution with swift package manager.","archived":false,"fork":false,"pushed_at":"2025-03-24T04:02:54.000Z","size":698476,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T05:05:13.367Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/malcommac.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":"CONTRIBUTING.MD","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-10T10:35:08.000Z","updated_at":"2024-09-22T13:34:01.000Z","dependencies_parsed_at":"2023-03-10T19:07:09.243Z","dependency_job_id":"3e35d2ca-79c5-4f9f-87f6-bb6313cf9037","html_url":"https://github.com/malcommac/sentry-cocoa-sdk-xcframeworks","commit_stats":null,"previous_names":[],"tags_count":80,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcommac%2Fsentry-cocoa-sdk-xcframeworks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcommac%2Fsentry-cocoa-sdk-xcframeworks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcommac%2Fsentry-cocoa-sdk-xcframeworks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcommac%2Fsentry-cocoa-sdk-xcframeworks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malcommac","download_url":"https://codeload.github.com/malcommac/sentry-cocoa-sdk-xcframeworks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154999,"owners_count":21056542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T18:08:23.944Z","updated_at":"2025-11-10T16:29:33.403Z","avatar_url":"https://github.com/malcommac.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sentry-cocoa xcframework integration with SPM\n\nThis is a small mirror for the official [Sentry-cocoa](https://github.com/getsentry/sentry-cocoa) SDK for Apple platforms, to add support for using their binary dependencies (`.xcframework`) with SPM, aka Swift Package Manager.\n\nThis repo contains a [`Package.swift`](https://github.com/malcommac/sentry-cocoa-sdk-xcframeworks/blob/main/Package.swift) file, which uses a `binaryTarget` for `Sentry.xcframework` library (files are hosted in GitHub [Release](https://github.com/malcommac/sentry-cocoa-sdk-xcframeworks/releases) page).\n\n## Official SPM Support\n\nSentry-cocoa currently supports SPM integration, see the official SDK integration instructions.  \n**This repo is an alternative for integrating with their pre-built xcframeworks for faster build times.**\n\nPre-built framework is provided directly from Sentry-cocoa page (available for Chartage integration), so no re-build is made from this side.\n\n## Automatic Update\n\nThis repository periodically check updates from the official Sentry-SDK (using GitHub Actions) in order to provide new releases of the framework as fast as possible ([script is here](https://github.com/malcommac/sentry-cocoa-sdk-xcframeworks/blob/main/.scripts/package.sh)).  \n\nEach version is tagged automatically with the semver and a release is created automatically.  \nYou can use these versions in your import of the package.\n\n## Installation\n\nIn order to install the pre-built xcframework from this repository in your target just add the dependency in your `Package.swift` file:\n\n```swift\n// swift-tools-version:5.7\n// The swift-tools-version declares the minimum version of Swift required to build this package.\n\nimport PackageDescription\n\nlet package = Package(\n    name: \"MyLibrary\",\n    platforms: [.iOS(.v11)],\n    products: [\n        .library(name: \"MyLibrary\", targets: [\"MyLibraryTarget\"])\n    ],\n    dependencies: [\n        .package(\n            url: \"https://github.com/malcommac/sentry-cocoa-sdk-xcframeworks\",\n            .exact(\"8.1.0\")\n        ),\n    ],\n    targets: [\n        .target(\n            name: \"MyLibraryTarget\",\n            dependencies: [\n                .product(name: \"Sentry\", package: \"sentry-cocoa-sdk-xcframeworks\")\n            ]\n        )\n    ]\n)\n```\n\n## How the package is generated\n\nThe `.script/package.sh` is used to update the repository with the latest version of Sentry SDK. The script perfors the following actions:\n\n- Check the latest releases of the official SDK and our mirror by using the `gh` official tool\n- When a new version is found it gets the `Sentry.xcframework.zip` package from the official release's sections'\n- Create a new `release/\u003cversion\u003e` branch and copy the framework into the root directory\n- Commits changes on new branch\n- Create a new tag with `\u003cversion\u003e` you can use from SPM\n- Create a new release in Releases section; the asset is the repository itself.\n\n### Running the script locally\n\n- Install github cli: `$ brew install gh`\n- Generate the swift package: `$ cd .scripts \u0026\u0026 sh package.sh debug skip-release`\n\n## Author\n\nThis small automation script and the repository was created by [Daniele Margutti](https://github.com/malcommac).\n\nSentry SDK is property of the Sentry and licensed under [MIT License](https://github.com/getsentry/sentry-cocoa/blob/main/LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalcommac%2Fsentry-cocoa-sdk-xcframeworks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalcommac%2Fsentry-cocoa-sdk-xcframeworks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalcommac%2Fsentry-cocoa-sdk-xcframeworks/lists"}