Skip to content

[Bug] MapboxMaps 11.19.0 fails to build with Xcode 26 beta / Swift 6.2 #2405

@BerkeSeker0104

Description

@BerkeSeker0104

MapboxMaps 11.19.0 fails to compile when using Xcode 26.2 beta (Swift 6.2) on macOS Tahoe.

The pre-built MapboxCoreMaps.xcframework .swiftinterface files are incompatible with Swift 6.2, causing types defined in MapboxCoreMaps to be unresolvable.

Environment

  • Xcode: 26.2 (Build 17C52)
  • macOS: Tahoe (26.x)
  • Swift: 6.2
  • MapboxMaps: 11.19.0
  • MapboxCoreMaps: 11.19.0
  • MapboxCommon: 24.19.0
  • Integration: CocoaPods (via @rnmapbox/maps 10.3.0-rc.0)

Errors

error: cannot find type 'CameraState' in scope
error: cannot find type 'CameraOptions' in scope
error: cannot find type 'Heading' in scope
error: cannot find type 'IndoorFloor' in scope
error: cannot find type 'IndoorManager' in scope
error: cannot find type 'IndoorState' in scope
error: no type named 'UIEdgeInsetsCodable' in module 'MapboxCoreMaps'
error: type 'FollowPuckViewportStateOptions' does not conform to protocol 'Decodable'
error: type 'FollowPuckViewportStateOptions' does not conform to protocol 'Hashable'
error: type 'PuckRenderingData' does not conform to protocol 'Equatable'
error: @escaping attribute only applies to function types
Why
Since Xcode 16.4 does not run on macOS Tahoe, developers on macOS Tahoe are completely blocked from building any project that depends on MapboxMaps.

The main branch already references MapboxCoreMaps v11.21.0-rc.1 — would it be possible to publish a release with xcframeworks compiled using Swift 6.2?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🪲Something is broken!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions