Replies: 1 comment
-
|
Sounds like another simulator issue like this one: #91 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Environment:
@iternio/react-native-auto-play0.5.2 · RN 0.85.3 · Expo SDK 56 · Xcode 26.5 · iOS 26.5 Simulator (iPhone 17, 23F77)Description
When the app sets a
CPMapTemplateas the root template, the iOS 26.5 CarPlay host process (CarPlayTemplateUIHost) crashes immediately with:The crash repeats in an infinite loop (731× observed in live log). The phone app continues normally — only the CarPlay surface is affected.
Crash stack (CarPlaySupport, host process)
Two entry points, same root cause:
_viewDidLoaddirectly when setting the MapTemplate (app tap on CarPlay home screen).hostStartNavigationSessionForTrip:reply:→_tripDidBegin:withEstimates:forIdentifier:→loadViewIfRequired→_viewDidLoad→ crash.Root cause
iOS 26.4 introduced Destination/Route Sharing (
CPMapTemplate.h,#pragma mark - Destination Sharing,API_AVAILABLE(ios(26.4))). In the iOS 26.5 simulator binary:CPSMapTemplateViewControlleris initialized with adestinationSharingDelegate(<CPSDestinationSharingDelegate>)._updateShareButtonVisibilityunconditionally callsvehicleSupportsDestinationSharingon this delegate.CPSTemplateInstance(Apple host class) that does not implementvehicleSupportsDestinationSharing→ crash.The crash is entirely within Apple's
CarPlaySupportframework in the host process — app code and the library do not appear in the crash stack.What I tried (does not help)
Implementing
mapTemplateShouldProvideRouteSharing(_:) -> falseonCPMapTemplateDelegate— the host still callsvehicleSupportsDestinationSharingregardless, and the crash persists.Assessment: likely simulator-specific
No public reports of this crash on real hardware. A device-wide crash of all CarPlay navigation apps under iOS 26 would be widely documented. The simulated CarPlay "vehicle" connection appears degenerate —
CPSTemplateInstanceacts as a placeholder without a real capability provider.Workaround for development: use iOS 26.3 Simulator (Destination Sharing introduced in 26.4). A separate Apple Feedback has been filed.
Questions / asks
destinationSharingDelegate?Beta Was this translation helpful? Give feedback.
All reactions