-
Notifications
You must be signed in to change notification settings - Fork 191
Open
Labels
bug πͺ²Something is broken!Something is broken!
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bug πͺ²Something is broken!Something is broken!