Skip to content

[Bug]: @rnmapbox/maps fails to build on Xcode 26 (Swift 6.2) — MapboxCoreMaps Swift version mismatch #4178

Closed

Description

@kbtomic

Mapbox Version

11.20.1

React Native Version

0.77.3

Platform

iOS

@rnmapbox/maps version

10.2.10

Standalone component to reproduce

import Mapbox from '@rnmapbox/maps';
import {StyleSheet, View} from 'react-native';

const BugReport = () => {
return (

<Mapbox.MapView style={styles.map}>
<Mapbox.Camera centerCoordinate={[15.97, 45.81]} zoomLevel={14} />
</Mapbox.MapView>

);
};

const styles = StyleSheet.create({
container: {flex: 1},
map: {flex: 1},
});

export default BugReport;

Note: The issue is a compile-time Swift version mismatch — this component will never run. Any import of @rnmapbox/maps reproduces the failure when building with Xcode 26.

Observed behavior and steps to reproduce

No response

Expected behavior

No response

Notes / preliminary analysis

error: 'DataRef' is unavailable: cannot find Swift declaration for this class

error: failed to build module 'MapboxCoreMaps'; this SDK is not supported by
the compiler (the SDK is built with 'Apple Swift version 6.0.3 effective-5.10
(swiftlang-6.0.3.1.10 clang-1600.0.30.1)', while this compiler is 'Apple Swift
version 6.2.4 effective-5.10 (swiftlang-6.2.4.1.4 clang-1700.6.4.2)').
Please select a toolchain which matches the SDK.

Xcode: 26.3.0 (Swift 6.2.4 / clang-1700.6.4.2)
iOS deployment target: 15.5
New Architecture: disabled
Platform: iOS Simulator (arm64)

Additional links and references

No response

Activity

  1. added
    bug 🪲
    on Mar 19, 2026
  2. github-actions commented on Mar 19, 2026

    @github-actions

    No code example found in issue body - More info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🪲reopen-on-code-fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions