You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(apple): Migrate internal Apple build from CocoaPods to spm4Kmp
Replace the Kotlin CocoaPods plugin with spm4Kmp (io.github.frankois944.spmForKmp
1.9.2) for the SDK's internal Apple build, with no public API/ABI change.
- Swap cocoapods{} for swiftPackageConfig{} on all Apple targets; consume the
remote Sentry Cocoa Swift package (product "Sentry", exportToKotlin) and restore
the cocoapods.Sentry.* import prefix via packageDependencyPrefix = "cocoapods"
- Port the KT-41709 -D...Unavailable macro workaround via swiftPackageConfig
extraOpts (forwarded to cinterop; compilerOpts does not reach the modular cinterop)
- Keep the private Sentry.Internal cinterop unchanged (self-contained headers)
- Declare Apple targets once (appleTargets) and reuse for swiftPackageConfig
- Keep the cocoapods plugin in root for the CocoaPods sample; gitignore spm4Kmp
generated dirs (exportedSentryCocoa/, src/swift/)
Verified: 11/12 Apple targets compile, appleTest runs (macos/iosSimulator),
CocoaPods sample xcodebuild SUCCEEDS (klib/ABI parity), apiCheck/detekt/spotless green.
watchosArm32 (armv7k) temporarily disabled: spm4Kmp 1.9.2 has no armv7k entry in
its AppleCompileTarget enum, so it cannot generate the exported Sentry cinterop for
that target (reported upstream). Must be re-enabled before release.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments