Framework
Kotlin Multiplatform
Platform
Apple
Installed
Swift Package Manager
Version
0.25.0
Steps to Reproduce
- Create a KMP project with sentry-kotlin-multiplatform 0.25.0
- Open the iOS app in Xcode 26 (Swift 6.1)
- Add sentry-cocoa 8.57.3 via SPM (as required by the compatibility table)
- Attempt to resolve packages / build
Expected Result
SPM resolves sentry-cocoa 8.57.3 and the project builds successfully
Actual Result
SPM resolution fails with:
"Disabled default traits on package 'sentry-cocoa' (Sentry) that declares no traits.
This is prohibited to allow packages to adopt traits initially without causing an API break."
Xcode 26 uses Swift 6.1 which introduced SPM Package Traits (SE-0450).
sentry-cocoa 8.57.3 does not declare traits, so Xcode 26 refuses to resolve it.
sentry-cocoa added traits support in 9.7.0, but no version of
sentry-kotlin-multiplatform supports sentry-cocoa 9.x per the compatibility table.
Using sentry-cocoa 9.8.0 instead results in linker errors:
- Undefined symbol: OBJC_CLASS$_SentryDependencyContainer
- Undefined symbol: OBJC_CLASS$_SentryStructuredLogAttribute
- Undefined symbol: OBJC_CLASS$__TtC6Sentry8SentryId
This makes sentry-kotlin-multiplatform incompatible with Xcode 26.
Framework
Kotlin Multiplatform
Platform
Apple
Installed
Swift Package Manager
Version
0.25.0
Steps to Reproduce
Expected Result
SPM resolves sentry-cocoa 8.57.3 and the project builds successfully
Actual Result
SPM resolution fails with:
"Disabled default traits on package 'sentry-cocoa' (Sentry) that declares no traits.
This is prohibited to allow packages to adopt traits initially without causing an API break."
Xcode 26 uses Swift 6.1 which introduced SPM Package Traits (SE-0450).
sentry-cocoa 8.57.3 does not declare traits, so Xcode 26 refuses to resolve it.
sentry-cocoa added traits support in 9.7.0, but no version of
sentry-kotlin-multiplatform supports sentry-cocoa 9.x per the compatibility table.
Using sentry-cocoa 9.8.0 instead results in linker errors:
This makes sentry-kotlin-multiplatform incompatible with Xcode 26.