Skip to content

Build issue with Xcode 26.3Β #2408

@lume-code

Description

@lume-code

Environment

  • Xcode version: 26.3
  • iOS version: 26.3
  • Devices affected:
  • Maps SDK Version: 11.19.1

Observed behavior and steps to reproduce

Build fails with below error:

Swift Compiler Error (Xcode): 'nil' is not compatible with expected argument type 'String'
ios/Pods/MapboxMaps/Sources/MapboxMaps/Ornaments/IndoorSelectorModel.swift:43:51

Notes / preliminary analysis

I am encountering this from a flutter application but It seems safe to assume that the issue is from the underlying iOS native library.

I am using this Pod workaround for now:

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  # Fix MapboxMaps 11.19.0 Swift compile error: 'nil' passed to non-optional String parameter
  # Track: https://github.com/mapbox/mapbox-maps-flutter/issues β€” remove this patch once mapbox_maps_flutter ships a fix
  indoor_selector = File.join(installer.sandbox.root, 'MapboxMaps', 'Sources', 'MapboxMaps', 'Ornaments', 'IndoorSelectorModel.swift')
  if File.exist?(indoor_selector)
    content = File.read(indoor_selector)
    patched = content.gsub('indoorManager.selectFloor(selectedFloorId: nil)', '// indoorManager.selectFloor(selectedFloorId: nil) // disabled: binary/source type mismatch in MapboxMaps 11.19.0')
    if content != patched
      File.chmod(0644, indoor_selector)
      File.write(indoor_selector, patched)
    end
  end
end

Additional links and references

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