Repository navigation
Description
Mapbox Navigation SDK version
mapbox-navigation-ios v3.22.2
Steps to reproduce
Simulator — template session drops (Connection invalidated) after successful Mapbox connect; intermittent unresponsive CarPlay taps. Prior iOS 26.4 Simulator showed CarPlayTemplateUIHost crash in CarPlaySupport (vehicleSupportsDestinationSharing).
This is for the Navigation SDK CarPlay integration (CarPlayManager / CPMapTemplate), not map contents, a single-route directions problem, or OSRM/Valhalla instruction text.
SUMMARY
On iOS 26.5 Simulator with the CarPlay window, our app’s phone UI stays healthy and Mapbox logs show a full CarPlay connect path (scene didConnect, CarPlayManager handle didConnect, deferred reconciliation, CarPlay map SizeTrackingLayer settling around 400x240, free-drive trip session active). Despite that, the simulated CarPlay UI is often unresponsive to taps, occasionally shows wrong/placeholder “liquid glass” home icons, and can start an open/close loop when launching the app from CarPlay. Console shows “Connection interrupted” / “Connection invalidated” and CPTemplateApplicationScene didDisconnect, then a new scene connects (new ObjectIdentifier), repeating. On an earlier iOS 26.4 Simulator we instead saw CarPlayTemplateUIHost abort with NSInvalidArgumentException: -[CPSTemplateInstance vehicleSupportsDestinationSharing]: unrecognized selector inside CarPlaySupport (CPSMapTemplateViewController share button path).
NAVIGATION SDK / MAPBOX VERSIONS (SwiftPM Package.resolved)
mapbox-navigation-ios v3.22.2
mapbox-maps-ios v11.22.1
mapbox-core-maps-ios v11.22.1
mapbox-common-ios v24.22.1
mapbox-navigation-native-ios v324.22.1
mapbox-search-ios v2.22.1
mapbox-core-search-ios v2.22.1
PACKAGE MANAGER
Swift Package Manager (Xcode)
XCODE / SDK
Xcode 26.x building against the iOS 26 SDK; Simulator runtime iOS 26.5 (simruntime volume path includes iOS 26.5.simruntime, e.g. .../Volumes/iOS_23F77/...).
DEVICE / OS WHERE SEEN
iOS 26.5 Simulator, CarPlay via Simulator’s CarPlay window. Physical CarPlay hardware not yet confirmed for the same symptoms.
INTEGRATION
Mapbox Navigation v3 UIKit (MapboxNavigationUIKit), CarPlayManager, CPTemplateApplicationScene. Entitlements and Info.plist include CarPlay scene configuration.
NavigationRouteOptions / NavigationMatchOptions
Not specific to a single route request in the repro; failure is at CarPlay template/session lifetime and input. Default options / free-drive path; can supply exact payloads if needed for a minimal sample.
LANGUAGE / LOCALE
en-Latn-US reported by NavNative; system locale on Simulator.
REPRO STEPS (SIMULATOR)
- Run app on iOS 26.5 Simulator with CarPlay window open.
- Launch app from CarPlay home (template application scene).
- Observe: taps on CarPlay home often do not register; after using phone UI (e.g. changing detents in a SwiftUI search sheet), CarPlay may start responding briefly.
- In failure mode, tapping the app icon on CarPlay can flash open and dismiss; Console shows connection invalidated and scene disconnect/reconnect cycles.
OBSERVED IN APP PROCESS LOGS
- Successful connect: establishMapbox / didConnect, sdkConnectedAfter=true, deferredWork with mapboxSDKConnected=true, CarPlay map layer resized toward ~400x240, freeDrive active.
- Then: “Connection interrupted”, “Connection invalidated”, CPTemplateApplicationScene didDisconnect; coordinator calls Mapbox templateApplicationScene didDisconnect; cycle may repeat with a new scene identity.
- Simulator noise that may correlate with bad input: IOHIDLib dlopen from host macOS plugin (fat binary missing arm64 slice Sim needs), IOCreatePlugInInterfaceForService 0xe00002be; IOSurfaceClientSetSurfaceNotify failed e00002c7 earlier in session.
- Secondary (our UI): SwiftUI “onChange(of: ProgressSnapshot) action tried to update multiple times per frame” when manipulating Browse/Search chrome; phone remains responsive.
- Mapbox log: unimplemented CarPlayMapViewController delegate navigationMapView didChangeCameraState (informational).
Expected behavior
CarPlay template session stays connected; CarPlay window accepts taps reliably; launching from CarPlay does not immediately invalidate the template connection after Map.connect succeeds.
Actual behavior
Intermittent non-responsive CarPlay UI; repeated template XPC invalidation / scene disconnect after successful Mapbox CarPlay hookup; Simulator-only input/surface warnings.
Is this a one-time issue or a repeatable issue?
repeatable
Activity
josh-welltop commentedon May 14, 2026
Additional Questions:
Narsail commentedon May 15, 2026
+1 — hitting this exact crash on iOS 26.5 Simulator as well, confirmed reproducible on Mapbox Navigation SDK v3.23.1 (latest stable, released 2026-05-13). Bumping from v3.18.1 → v3.23.1 changed nothing.
Crash signature (CarPlayTemplateUIHost aborts, app process survives):
Triggered the moment our scene delegate's
templateApplicationScene(_:didConnect:to:)forwards toCarPlayManager.templateApplicationScene(_:didConnect:to:). Confirmed reproducible on:vehicleSupportsDestinationSharingNSInvalidArgumentExceptionWorkaround attempted (didn't help): added a global
NSObjectObj-C category answeringvehicleSupportsDestinationSharing → falseon the assumption the framework was just probing for sharing capability. The framework appears to query more than a single selector or the wrong receiver type — the crash still fires at the same stack frame.Build context: SwiftUI App lifecycle (
@main struct App: SwiftUI.App) with@UIApplicationDelegateAdaptor.Info.plistdeclares bothUIWindowSceneSessionRoleApplication+CPTemplateApplicationSceneSessionRoleApplicationwith explicitUISceneClassName/UISceneConfigurationName/UISceneDelegateClassName. Entitlements includecom.apple.developer.carplay-maps. The scene delegate registers correctly with the Obj-C runtime andtemplateApplicationScene(_:didConnect:to:)does fire — the crash happens entirely inside Apple's framework during the subsequentCPMapTemplateview-controller-load.Happy to test any candidate fix if you have a branch / PR.
josh-welltop commentedon May 19, 2026
Update (summarized by LLM): hardware OK, Simulator failure boundary clarified (May 2026)
Same CarPlay integration works on physical CarPlay hardware but reproduces on iOS 26.5 Simulator (Build 23F77, Xcode 26.x) — so this looks Simulator/host-side, not app wiring.
Failure boundary on Simulator: Mapbox connect completes and the session is healthy for several seconds before the host drops it on activation.
CarPlayManager.templateApplicationScene(_:didConnect:to:)succeeds quickly (~140ms):sdkConnectedAfter=true,rootTemplate=CPMapTemplate,topTemplate=CPMapTemplate.CarPlayMapViewControlleris loaded with bounds 400×240;CPWindowis visible; free-drive trip session is active.UISceneDidActivateNotification,topTemplatebecomesnilwhilerootTemplateremainsCPMapTemplate.CPTemplateApplicationScenedidDisconnectfollows ~14ms later. The app does not initiate disconnect; it only handlessceneDelegate.didDisconnect.First connect often fails on first
didActivate; a subsequent reconnect can remain stable longer on Simulator (intermittent / first-activation failure).Integration (works on device): SwiftUI App lifecycle, separate
CPTemplateApplicationSceneDelegateforwarding toCarPlayManager,carplay-mapsentitlement, single sharedMapboxNavigationProvider.This aligns with the existing report: connect succeeds, then the template XPC session is invalidated. Confirms that iOS 26.x CarPlay Simulator may be unusable for QA until host-side fix; validating on real CarPlay hardware is required.
erenkulaksiz commentedon Jun 30, 2026
Same issue here! But mine just closes the carplay app, I cant even see any UI.
Tested today: I think simulator is broken somehow. a real carplay with real devices works.
denhams commentedon Jul 3, 2026
Same for me. It does seem to be a simulator issue. I can't find a work-around.