Skip to content

[v11beta10:iOS] OfflineManager crash on iOS (simu and device) #1358

@softlion

Description

@softlion

Describe and reproduce the Bug

Hello, I finished upgrading from v10 to v11 beta 10 successfully and it is much much better than v10.

Except when downloading tiles with the offline pack manager.
I traced the crash: it occurs in the call to createPack:

const createdPack = await OfflineManager.createPack(
    {
        mapStyle: "https://preview.hudada.fr/fonts/plan-ign.json",
        bounds: [swLng, swLat, neLng, neLat],
        minZoom: 8,
        maxZoom: 15,
        metadata: { name: packName },
    }, ...

No handler are ever called. The iOS app crashes immediately.
Note: that style has tiles only for France.

The same code is working on Android, and used to work with v10.
Well it is a bit slow because many .pbf files do not exist (they are not used), but it does not crash and complete successfuly.

Any clue ?

@maplibre/maplibre-react-native Version

11.0.0-beta.10

Which platforms does this occur on?

iOS Simulator and iOS Device. ~Ok on Android.

Which frameworks does this occur on?

Expo

Which architectures does this occur on?

New Architecture

Environment

expo-env-info 2.0.11 environment info:
    System:
      OS: macOS 26.3.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 25.8.0 - /opt/homebrew/bin/node
      npm: 11.11.0 - /opt/homebrew/bin/npm
    Managers:
      CocoaPods: 1.16.2 - /opt/homebrew/opt/ruby/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 25.2, iOS 26.2, macOS 26.2, tvOS 26.2, visionOS 26.2, watchOS 26.2
    IDEs:
      Xcode: 26.3/17C529 - /usr/bin/xcodebuild
    npmGlobalPackages:
      eas-cli: 18.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions