Skip to content

feat: Switch from Sentry xcframework to SentrySPM compile-from-source#92

Merged
philprime merged 2 commits intomainfrom
philprime/sentry-spm
Feb 12, 2026
Merged

feat: Switch from Sentry xcframework to SentrySPM compile-from-source#92
philprime merged 2 commits intomainfrom
philprime/sentry-spm

Conversation

@philprime
Copy link
Member

@philprime philprime commented Feb 11, 2026

Summary

  • Migrates all Sentry imports from import Sentry / import SentrySwiftUI to import SentrySPM, using the new compile-from-source SPM product from getsentry/sentry-cocoa#7430
  • Updates Xcode project references and Package.resolved to point to the philprime/spm-sample branch of sentry-cocoa
  • No functional changes — all Sentry SDK types (SentrySDK, Breadcrumb, .sentryTrace(), etc.) are available through the single import SentrySPM

Test plan

Migrate all imports from `import Sentry` and `import SentrySwiftUI` to
`import SentrySPM`, which compiles Sentry directly from source via SPM.
This uses the new SentrySPM product from getsentry/sentry-cocoa that
re-exports both the ObjC and Swift modules through a single import.

Updated Xcode project references and Package.resolved to point to the
philprime/spm-sample branch of sentry-cocoa.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates the iOS app and share extension from the Sentry xcframework/SentrySwiftUI modules to the new compile-from-source SwiftPM product (SentrySPM), consolidating usage under a single import SentrySPM.

Changes:

  • Updated Swift sources to replace import Sentry / import SentrySwiftUI with import SentrySPM.
  • Updated Xcode project SwiftPM package/product wiring to use the sentry-cocoa philprime/spm-sample branch/product.
  • Updated dependency resolution + Settings.bundle license outputs to reflect the new Sentry package source.

Reviewed changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
Targets/ShareExtension/Sources/ShareViewController.swift Switch Sentry import to SentrySPM in the share extension.
Targets/App/Sources/Utils/SentryMetricsHelper.swift Switch Sentry import to SentrySPM.
Targets/App/Sources/UI/MainContainerView.swift Switch SentrySwiftUI import to SentrySPM.
Targets/App/Sources/UI/LinkLists/LinkListsContainerView.swift Consolidate Sentry imports to SentrySPM.
Targets/App/Sources/UI/LinkListInfo/LinkListInfoContainerView.swift Consolidate Sentry imports to SentrySPM.
Targets/App/Sources/UI/LinkListDetail/LinkListDetailContainerView.swift Consolidate Sentry imports to SentrySPM.
Targets/App/Sources/UI/LinkInfo/LinkInfoContainerView.swift Consolidate Sentry imports to SentrySPM.
Targets/App/Sources/UI/LinkDetailNFCSharing/LinkDetailNFCSharingViewModel.swift Switch Sentry import to SentrySPM.
Targets/App/Sources/UI/LinkDetailNFCSharing/LinkDetailNFCSharingContainerView.swift Consolidate Sentry imports to SentrySPM.
Targets/App/Sources/UI/LinkDetail/LinkDetailRenderView.swift Switch Sentry import to SentrySPM.
Targets/App/Sources/UI/LinkDetail/LinkDetailContainerView.swift Consolidate Sentry imports to SentrySPM.
Targets/App/Sources/UI/CreateListEditor/CreateLinkListEditorContainerView.swift Consolidate Sentry imports to SentrySPM.
Targets/App/Sources/UI/CreateLinkWithoutListEditor/LinkListPickerContainerView.swift Consolidate Sentry imports to SentrySPM.
Targets/App/Sources/UI/CreateLinkWithoutListEditor/CreateLinkWithListPickerEditorContainerView.swift Consolidate Sentry imports to SentrySPM.
Targets/App/Sources/UI/CreateLinkEditor/CreateLinkEditorContainerView.swift Consolidate Sentry imports to SentrySPM.
Targets/App/Sources/Services/QRCodeCache.swift Switch Sentry import to SentrySPM.
Targets/App/Sources/Services/DataSeedingService.swift Switch Sentry import to SentrySPM.
Targets/App/Sources/Services/AppHealthObserver.swift Switch Sentry import to SentrySPM.
Targets/App/Sources/Resources/Settings.bundle/Licenses.plist Update displayed Sentry license entry title.
Targets/App/Sources/Resources/Settings.bundle/Licenses.latest_result.txt Regenerated license-plist output; Sentry version now blank due to branch-based dependency.
Targets/App/Sources/Main/FlinkyApp.swift Switch Sentry import to SentrySPM.
Flinky.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved Pin sentry-cocoa to a branch + revision; updated another package revision.
Flinky.xcodeproj/project.pbxproj Replace Sentry products with SentrySPM and update SwiftPM package reference/requirements.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@philprime philprime enabled auto-merge (squash) February 12, 2026 10:14
@philprime philprime merged commit 90267b1 into main Feb 12, 2026
5 checks passed
@philprime philprime deleted the philprime/sentry-spm branch February 12, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant