Skip to content

Incompatible with Xcode 26: sentry-cocoa 8.57.3 fails SPM resolution due to missing traits support #535

@EinBexiii

Description

@EinBexiii

Framework

Kotlin Multiplatform

Platform

Apple

Installed

Swift Package Manager

Version

0.25.0

Steps to Reproduce

  1. Create a KMP project with sentry-kotlin-multiplatform 0.25.0
  2. Open the iOS app in Xcode 26 (Swift 6.1)
  3. Add sentry-cocoa 8.57.3 via SPM (as required by the compatibility table)
  4. 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.

Metadata

Metadata

Assignees

Labels

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions