Add CarPlay support to your navigation app using CarPlay.

CarPlay Documentation

Posts under CarPlay tag

67 Posts
Sort by:
Post not yet marked as solved
0 Replies
194 Views
Where do I find and how do I install Accessory Developer Profile for CarPlay/Enhanced Siri? I do not see it anywhere in developer.apple.com/download. I am running the (MFI) CarPlay Tests 2.7 app on my 2 iPhone 7's, each with iOS 15.4.0 installed. Main and Accessory are paired and Main shows it's connected to my Head Unit. When I start the Enhanced Siri Detector Quality test on Main, it shows a popup: Feature not supported Make sure you have the Accessory Developer Profile installed with Enhanced Siri enabled, and you're running on the latest iOS version. Please, also check if your HeadUnit supports this feature. I know my HeadUnit supports this feature because I am able to run it when an iPhone 8 with iOS 15.4.0 is set up as Main. I now need to run it on my iPhone 7. I didn't have to set up this profile on the iPhone 8. I have Siri enabled on this iPhone 7 Main.
Posted
by marsrm.
Last updated
.
Post marked as solved
2 Replies
681 Views
After the release of iOS 15.4, I am receiving so many crash reports for CarPlay, and the percentage increased to +140%! Here is one of the crash logs: Crash Log And here is a screenshot from Xcode Organizer, which shows too many wired crashes:
Posted
by FarouKz.
Last updated
.
Post not yet marked as solved
1 Replies
256 Views
Currently, there exists devices like the Magic Box that essentially are extremely overpriced Android devices that enable you to mirror the device to your car without restrictions (for example, web browsing and video streaming). I'm thinking this can be accomplished with a Raspberry Pi at a significantly cheaper price. At first, I was thinking that it could be a custom Android Auto protocol. I have seen some articles and open source code with successful results. The only issue is that this wouldn't make sense since these products are advertised for CarPlay as well. This leads me to my current "solution" (an extremely abstract one, albeit), which is that the device is spoofing the car into thinking it's CarPlay capable, then allowing it to display vanilla Android from the device. Does anyone know of any projects similar to this, or perhaps somewhere to get started with this if my spoofing theory is even correct?
Posted Last updated
.
Post not yet marked as solved
2 Replies
206 Views
Hi, I have a media app that works fine when it is launched from the phone and the menu buttons work perfectly. However the reverse scenario does not work i.e. if the app is not launched on phone but the App icon shows up on the screen - clicking on the icon does not launch the app. Any ideas what could be going on? Thanks
Posted
by Stationdv.
Last updated
.
Post not yet marked as solved
0 Replies
235 Views
Would it be possible to include multiple CarPlay App entitlement in one application? Would it be possible to create CarPlay App by separating 2 or 3 apps in one application when Car play is connected? If it is not possible for No.1 and No.2 in this moment, could we do anything for making our application be multi CarPlay app in the future? Can we change entitlement after launch CarPlay app? how many month? In the future, Do you have plan to support multiple CarPlay App entitlement in one application ?
Posted Last updated
.
Post not yet marked as solved
1 Replies
277 Views
Hello everyone, I am currently trying to build a CarPlay application with the Charging entitlement. As part of my application I have a List Template which shows different entries and should start navigation to one of them on click on it. Therefore I used the answer of this question: https://developer.apple.com/forums/thread/669838?login=true and implemented following function:     static func launchmap(cpAppScene: CPTemplateApplicationScene, latitude: String, longtitude: String, carplay : Bool = true) {         let urlString: String!         if UIApplication.shared.canOpenURL(URL(string:"comgooglemaps://")!) {             urlString = "comgooglemaps://?&daddr=\(latitude),\(longtitude)&directionsmode=driving"         } else {             urlString = "http://maps.apple.com/?daddr=\(latitude),\(longtitude)&dirflg=d"         }         if let url = URL(string: urlString) {             if (carplay) {                 cpAppScene.open(url, options: nil, completionHandler: { (Void) in print("completed!")})             } else {                 UIApplication.shared.open(url)             }         }     } Now my main concern is: I can't test this functionality in the CarPlay simulator because it comes without safari and Apple Maps as well as I can't install any external apps like Google Maps. Trying to test this functionality in my car leads to it crashing and I am just frustrated on figuring out how to debug it without the simulator allowing us to install external apps and coming without maps. Are there any ideas? Thank you and best regards Dennis
Posted Last updated
.
Post marked as solved
2 Replies
1k Views
I am developing two CarPlay apps where one is navigation app and other is Food Ordering app. My requirement is to launch navigation app from Food Ordering app after successfully placing an order to show navigation to restaurant. I tried it by handling URL schemes in sample CarPlay navigation app provided by Apple. Here is code which I implemented in Food order app: let coastalHooks = "CoastalRoads://"       if let coastalUrl = URL(string: coastalHooks) {         if UIApplication.shared.canOpenURL(coastalUrl) {           UIApplication.shared.openURL(coastalUrl)         }       } As In CoastalRoads app there are two scene delegates are handled one is 'LoggerWindowSceneDelegate', which is for main phone app and other is 'TemplateApplicationSceneDelegate', which is for CarPlay but didn't found anything to launch specific scene of CarPlay. Here is link where from I downloaded sample CarPlay app: https://developer.apple.com/documentation/carplay/integrating_carplay_with_your_navigation_app
Posted Last updated
.
Post not yet marked as solved
0 Replies
195 Views
Hi, I have an EV Charging entitlement and everything works fine. But sometimes I'm getting this crash sporadically and I can't figure out, what the problem is. With this entitlement you only have the CPInterfaceController to push/pop templates. Window parameter is only available if you have an Navigation Entitlement. Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CPTemplateApplicationScene windows]: unrecognized selector sent to instance 0x11be930a0' *** First throw call stack: (0x1818950fc 0x19a0e5d64 0x1819720c4 0x184c12b18 0x18182a524 0x181829660 0x104065fe4 0x104092374 0x183f5e368 0x183e842a8 0x183f13de8 0x183e2fe70 0x18413bae4 0x183e679ec 0x183ecacb4 0x183f87b2c 0x183e32474 0x185595794 0x183e96a1c 0x183fcdf1c 0x183e32474 0x185595794 0x185587fb4 0x18559c5dc 0x1855a4ed0 0x18558770c 0x18183d610 0x18180c8f4 0x18180798c 0x18181b468 0x19d3bf38c 0x1841be5d0 0x183f3cf74 0x102e81b78 0x10c685aa4) libc++abi: terminating with uncaught exception of type NSException dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CPTemplateApplicationScene windows]: unrecognized selector sent to instance 0x11be930a0' terminating with uncaught exception of type NSException Maybe anyone can help. Best
Posted
by Paulee.
Last updated
.
Post not yet marked as solved
0 Replies
244 Views
Hey! Could you please tell me, what happens with CarPlay entitlement after app transfer? I'm talking about https://help.apple.com/app-store-connect/#/deved688524f Do I need to ask for it again or will it be transferred?
Posted
by Sanaya.
Last updated
.
Post not yet marked as solved
0 Replies
186 Views
Hi there, I have requested CarPlay entitlements for an App that we developed in November and received no response yet. Does anybody have information on how long this might take and who I could approach to get a status update? Really appreciate the help! Best, Sebastian
Posted
by Sebbo.
Last updated
.
Post not yet marked as solved
1 Replies
202 Views
Is there any way to programmatically determine if an iPhone is connected (via USB or Bluetooth) to the CarPlay system? Old method via MPPlayableContentDelegate seem to be deprecated in iOS 14. In docs there said "MP_DEPRECATED("Use CarPlay framework", ios(7.1, 14.0))" But can anybody suggest how to exactly use it? Thanks!
Posted
by surfrider.
Last updated
.
Post not yet marked as solved
1 Replies
221 Views
Hello; i have an iPhone 13 pro max and 2017 Range Rover and am experiencing issues with my CarPlay when trying to use the vehicle touch screen to control music. the playlists seem to work (after waiting for over a minute every-time) and play music; but to wait for the library to load is another 2min (over 3min total); and then when the artists finally do show up; the screen is unresponsive and then music crashes. again; this is all done through the vehicle touch screen. i took the vehicle to Land Rover to have them diagnose the issue and was told that all software was updated on the vehicle. i am concerned that it’s the volume of songs (about 2500) that is the culprit but this works perfectly when using the phone to control. i am on iOS 15.3.1. any help would be greatly appreciated. thank you
Posted Last updated
.
Post not yet marked as solved
1 Replies
182 Views
I updated the Xcode recently. Now I have to use new build system, cannot use legacy build system. With the new build system, the navigationbar leaves some white space on top of the bar. The old build system works fine, but I cannot use it anymore.    self.navigationController.navigationBar.barTintColor = UIColorFromHex(0X005171);   self.navigationController.navigationBar.tintColor = [UIColor whiteColor]; do not have any effects. after I changed it to self.navigationController.navigationBar.backgroundColor = UIColorFromHex(0X005171); then bar show the right color. How can I solve this problem to cover the top white space? Robert Thanks
Posted Last updated
.
Post not yet marked as solved
0 Replies
261 Views
Apple provides ATS Utility to test CarPlay tcp/ip connection using iperf. The functionality is available as a part of .ipa. Is there a way to get access to the ATS Utility API and use it in your own app to run iperf test programmatically?
Posted Last updated
.
Post not yet marked as solved
13 Replies
2.4k Views
I installed iOS 14 Beta on my iPhone 11 and Carplay suddenly stopped working on my BMW 318 2017. I’ve checked that bold text is off, restarted both iPhone and head unit, made sure that Siri is on. Every time I try to connect I get an error “Unable to Establish Connection” It worked just fine before the update.
Posted Last updated
.
Post not yet marked as solved
1 Replies
391 Views
I have applied for CarPlay support here Apply here to get your app approved for CarPlay use: https://developer.apple.com/contact/carplay/ but have not received any acceptance or answers. Does anyone know what to do?
Posted
by Denisewh.
Last updated
.
Post not yet marked as solved
0 Replies
242 Views
Since iOS 15.2.1 Wireless Carplay is broken on a 2022 BMW X3. I enrolled on the beta program and with iOS 15.3 RC the problem persists. Wireless Carplay continues broken. Does Apple has a public facing list of known bugs? How can I make sure this is acknowledged? Is there any workaround? Tried deleting the connection and pairing again with no luck. Nothing gets any output on the screen. I have also reported this via the feedback assistant. Others are reporting the same here: https://discussions.apple.com/thread/253585086
Posted
by jmarrero.
Last updated
.
Post not yet marked as solved
2 Replies
772 Views
I'm having issues running a CarPlay app in the simulator on an M1 Mac. I have to build the app for x86 (EXCLUDED_ARCHS=arm64) because one of its dependencies doesn't have arm64 simulator support. The app builds and runs well enough on the iPhone simulator, but as soon as I open CarPlay the app has problems. The app is still based on CPApplicationDelegate. It builds and simulates fine on an Intel Mac. On an M1 Mac, it builds and simulates on the iPhone sim, but right after attaching the CarPlay sim, it throws an exception "Application does not implement CarPlay template application lifecycle methods in its scene delegate." In case the error actually was due to the use of CPApplicationTemplate, I updated the app the use SceneDelegate. It gets a bit further, but I'm unable to set any CP templates -- trying to set a template results in an exception like "Exception setting template: Unsupported object <CPMapTemplate: 0x6000001fa340>.... Allowed classes: (null)" I also tried Apple's CoastalRoads app. When building for arm64 on an M1, the app works as it should. When building an x86 sim build (using EXCLUDED_ARCHS=arm64), the app gives the "Application does not implement CarPlay template..." exception. Has anyone else seen this issue? Is it a known problem when running x64 simulator builds on an M1 Mac?
Posted
by jason0x43.
Last updated
.