Get more mileage out of your app with CarPlay

RSS for tag

Discuss the WWDC22 Session Get more mileage out of your app with CarPlay

Posts under wwdc2022-10016 tag

13 Posts

Post

Replies

Boosts

Views

Activity

CarPlay Simulator not Working
I am trying to run my navigation app on a physical device, and want to view it using CarPlay Simulator (through XCode additional tools, NOT Hardware->Display->CarPlay), however, when I try to use the app, device has a Red dot next to it, and the simulator shows nothing. What I've tried: Running on a real CP device(my car): App works as intended, but want to run simulator so I can have live debugging Forgetting CP device and reconnecting All Steps of "Troubleshooting CP Simulator" (Updating to latest iOS, restarting phone, turn off hotspot, not connected to any other CP devices, ensure Firewall allows incoming connections) Tried both Xcode 13 CP sim and Xcode 14 beta CP sim Tried both work and personal laptops/phones Ideas: I am running on a M1 laptop, which could be messing with something. I am also running my Xcode in Rosetta(app has packages that cannot compile without Rosetta), but I don't believe this should be a problem because I am running on a physical device not Xcode simulator. Also can't run on Hardware->Display->CarPlay because of Application does not implement CarPlay template application lifecycle methods in its scene delegate and I can't figure out how to fix ("EXCLUDED_ARCHS[sdk=iphonesimulator*]"= "arm64" does not work)
8
6
6.6k
May ’26
Does Carplay work in Enterprise apps?
I am developing CarPlay addition on our app. Which is distributed with the Enterprise In distribution method, so we do not have a product in the App Store. I am wondering if CarPlay support can be provided in applications distributed with the Enterprise in distribution method? If this is not possible, I will inform management that this is not possible. I am waiting for your answers, thanks.
4
1
2.7k
Jan ’26
CarPlay Simulator not receiving microphone input (Siri)
CarPlay Simulator not receiving microphone input (Siri) Running carplay simulator Version 1.1 (480.26) Running on: M1 Macbook Pro running macOS Ventura 13.3.1 Connected to: iPhone 13 pro max running iOS 16.4 (20E246) When launching Siri by "Hey Siri", the, the siri indicator apppears and I am able to communicate and send a command, such as "send a text". Then, the Siri will say "who do you want to message", but it is no longer able to hear my voice as input.
1
0
978
Dec ’23
Payment with CarPlay
Assuming that I have an iOS app which is managing the payment method of the user (e.g. credit card), what is preventing me to build a CarPlay app (e.g. EV charging app) with a button that triggers the payment of the charging station? I mean, what are the advantages that will be introduced with iOS 16 that will allow the payment of gas stations from CarPlay?
2
0
2.2k
Sep ’23
CarPlay + SwiftUI App Lifecycle => not working
Hi I identified an issue that I cannot resolve with CarPlay. I am now rewriting an existing app that I initially created with ObjectiveC/Swift/UIKit. The new app should be super elegant, and of course SwiftUI based. The thing is, if I use the old App Lifecycle (using App Delegates or Scene Delegates) without SwiftUI, everything works fine and smooth. However, I don't really want that, but rather have a single code base and not mess with crappy workarounds. The funny thing is, if I place the @main item to the SwiftUI part, it tells me the life cycle would not be implemented, but it is. Anybody has an idea? Or this is a bug in SwiftUI / CarPlay? I was trying to find some original code reference from Apple related to SwiftUI base apps and having a CarPlay 'extension' but couldn't find any - the latest WWDC code example was still based on the old framework Thanks Marco Here are the files import UIKit import SwiftUI @main // < == if @main is here, it DOES NOT WORK fine -- using non Swift UI app cycle /*  2022-11-11 12:24:34.516461+0100 CarPlayTutorial[49059:1094508] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Application does not implement CarPlay template application lifecycle methods in its scene delegate.'  ...  CoreSimulator 857.13 - Device: iPhone 14 Pro (A32C27BF-48D7-48EA-A32B-26A6CC562201) - Runtime: iOS 16.1 (20B72) - DeviceType: iPhone 14 Pro  *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Application does not implement CarPlay template application lifecycle methods in its scene delegate.'  (lldb)  */ struct testappApp: App {  @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate   var body: some Scene {         WindowGroup {             ContentView()         }     } } struct ContentView: View {     var body: some View {         Text("Hallo")     } } //@main // < == if @main is here, it works fine -- using non Swift UI app cycle class AppDelegate: UIResponder, UIApplicationDelegate {     func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {         return true     }     func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {         if (connectingSceneSession.role == UISceneSession.Role.carTemplateApplication) {             let scene =  UISceneConfiguration(name: "CarPlay", sessionRole: connectingSceneSession.role)             scene.delegateClass = CarPlaySceneDelegate.self             return scene         } else {             return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)         }     }     func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {     } } the Scene Delegate that I used, but is largely ignored is import UIKit class SceneDelegate: UIResponder, UIWindowSceneDelegate {     var window: UIWindow?     func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {         print(scene.debugDescription)         print(session.debugDescription)         print(connectionOptions.debugDescription)         guard let _ = (scene as? UIWindowScene) else { return }     }     func sceneDidDisconnect(_ scene: UIScene) {         print(scene.debugDescription)     }     func sceneDidBecomeActive(_ scene: UIScene) {         print(scene.debugDescription)     }     //... } The CarPlay delegate is this class CarPlaySceneDelegate: UIResponder  {     var interfaceController: CPInterfaceController? } extension CarPlaySceneDelegate: CPTemplateApplicationSceneDelegate {     func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didConnect interfaceController: CPInterfaceController) {         self.interfaceController = interfaceController         self.interfaceController?.delegate = self     }     private func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didDisconnect interfaceController: CPInterfaceController) {         self.interfaceController = nil     } } extension CarPlaySceneDelegate: CPTabBarTemplateDelegate {     func tabBarTemplate(_ tabBarTemplate: CPTabBarTemplate, didSelect selectedTemplate: CPTemplate) {     } } extension CarPlaySceneDelegate: CPInterfaceControllerDelegate {     func templateWillAppear(_ aTemplate: CPTemplate, animated: Bool) {         print("templateWillAppear", aTemplate)     }     func templateDidAppear(_ aTemplate: CPTemplate, animated: Bool) {         print("templateDidAppear", aTemplate)     }     func templateWillDisappear(_ aTemplate: CPTemplate, animated: Bool) {         print("templateWillDisappear", aTemplate)     }     func templateDidDisappear(_ aTemplate: CPTemplate, animated: Bool) {         print("templateDidDisappear", aTemplate)     } } the info plist section: <dict> <key>UIApplicationSupportsMultipleScenes</key> <false/> <key>UISceneConfigurations</key> <dict> <key>UIWindowSceneSessionRoleApplication</key> <array> <dict> <key>UISceneConfigurationName</key> <string>Default Configuration</string> <key>UISceneDelegateClassName</key> <string>$(PRODUCT_MODULE_NAME).SceneDelegate</string> </dict> </array> <key>UIWindowSceneSessionRoleExternalDisplay</key> <array> <dict> <key>UISceneClassName</key> <string>CPTemplateApplicationScene</string> <key>UISceneConfigurationName</key> <string>CarPlay</string> <key>UISceneDelegateClassName</key> <string>$(PRODUCT_MODULE_NAME).CarPlaySceneDelegate</string> </dict> </array> </dict> </dict>
4
0
5.2k
May ’23
Carplay Simulator is terminated with console log [General] Connection interrupted, [General] Connection invalidated when I initialize Siri
Carplay Simulator is terminated with console log [General] Connection interrupted, [General] Connection invalidated when I initialize Siri. But on the other person's development setting, Carplay Simulator with Siri is working well. setting info is as below XCode - Version 14.1 (14B47b) CarPlay simulator - Version 1.1 (480.25)
0
0
594
Mar ’23
How long is the review period after manually requesting CarPlay authorization?
I'm developing a CarPlay addition for my application. To add the CarPlay addition, as you know, I have to request it manually. I have some questions regarding the review of this request. I will be glad if you answer. Can you give us information about the requested details about our application? How long is the review period after sharing the requested details? Waiting for your answers, Thanks! :)
0
0
1.7k
Oct ’22
CarPlay Simulator not Working
I am trying to run my navigation app on a physical device, and want to view it using CarPlay Simulator (through XCode additional tools, NOT Hardware->Display->CarPlay), however, when I try to use the app, device has a Red dot next to it, and the simulator shows nothing. What I've tried: Running on a real CP device(my car): App works as intended, but want to run simulator so I can have live debugging Forgetting CP device and reconnecting All Steps of "Troubleshooting CP Simulator" (Updating to latest iOS, restarting phone, turn off hotspot, not connected to any other CP devices, ensure Firewall allows incoming connections) Tried both Xcode 13 CP sim and Xcode 14 beta CP sim Tried both work and personal laptops/phones Ideas: I am running on a M1 laptop, which could be messing with something. I am also running my Xcode in Rosetta(app has packages that cannot compile without Rosetta), but I don't believe this should be a problem because I am running on a physical device not Xcode simulator. Also can't run on Hardware->Display->CarPlay because of Application does not implement CarPlay template application lifecycle methods in its scene delegate and I can't figure out how to fix ("EXCLUDED_ARCHS[sdk=iphonesimulator*]"= "arm64" does not work)
Replies
8
Boosts
6
Views
6.6k
Activity
May ’26
Does Carplay work in Enterprise apps?
I am developing CarPlay addition on our app. Which is distributed with the Enterprise In distribution method, so we do not have a product in the App Store. I am wondering if CarPlay support can be provided in applications distributed with the Enterprise in distribution method? If this is not possible, I will inform management that this is not possible. I am waiting for your answers, thanks.
Replies
4
Boosts
1
Views
2.7k
Activity
Jan ’26
CarPlay Simulator not receiving microphone input (Siri)
CarPlay Simulator not receiving microphone input (Siri) Running carplay simulator Version 1.1 (480.26) Running on: M1 Macbook Pro running macOS Ventura 13.3.1 Connected to: iPhone 13 pro max running iOS 16.4 (20E246) When launching Siri by "Hey Siri", the, the siri indicator apppears and I am able to communicate and send a command, such as "send a text". Then, the Siri will say "who do you want to message", but it is no longer able to hear my voice as input.
Replies
1
Boosts
0
Views
978
Activity
Dec ’23
Payment with CarPlay
Assuming that I have an iOS app which is managing the payment method of the user (e.g. credit card), what is preventing me to build a CarPlay app (e.g. EV charging app) with a button that triggers the payment of the charging station? I mean, what are the advantages that will be introduced with iOS 16 that will allow the payment of gas stations from CarPlay?
Replies
2
Boosts
0
Views
2.2k
Activity
Sep ’23
CarPlay + SwiftUI App Lifecycle => not working
Hi I identified an issue that I cannot resolve with CarPlay. I am now rewriting an existing app that I initially created with ObjectiveC/Swift/UIKit. The new app should be super elegant, and of course SwiftUI based. The thing is, if I use the old App Lifecycle (using App Delegates or Scene Delegates) without SwiftUI, everything works fine and smooth. However, I don't really want that, but rather have a single code base and not mess with crappy workarounds. The funny thing is, if I place the @main item to the SwiftUI part, it tells me the life cycle would not be implemented, but it is. Anybody has an idea? Or this is a bug in SwiftUI / CarPlay? I was trying to find some original code reference from Apple related to SwiftUI base apps and having a CarPlay 'extension' but couldn't find any - the latest WWDC code example was still based on the old framework Thanks Marco Here are the files import UIKit import SwiftUI @main // < == if @main is here, it DOES NOT WORK fine -- using non Swift UI app cycle /*  2022-11-11 12:24:34.516461+0100 CarPlayTutorial[49059:1094508] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Application does not implement CarPlay template application lifecycle methods in its scene delegate.'  ...  CoreSimulator 857.13 - Device: iPhone 14 Pro (A32C27BF-48D7-48EA-A32B-26A6CC562201) - Runtime: iOS 16.1 (20B72) - DeviceType: iPhone 14 Pro  *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Application does not implement CarPlay template application lifecycle methods in its scene delegate.'  (lldb)  */ struct testappApp: App {  @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate   var body: some Scene {         WindowGroup {             ContentView()         }     } } struct ContentView: View {     var body: some View {         Text("Hallo")     } } //@main // < == if @main is here, it works fine -- using non Swift UI app cycle class AppDelegate: UIResponder, UIApplicationDelegate {     func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {         return true     }     func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {         if (connectingSceneSession.role == UISceneSession.Role.carTemplateApplication) {             let scene =  UISceneConfiguration(name: "CarPlay", sessionRole: connectingSceneSession.role)             scene.delegateClass = CarPlaySceneDelegate.self             return scene         } else {             return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)         }     }     func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {     } } the Scene Delegate that I used, but is largely ignored is import UIKit class SceneDelegate: UIResponder, UIWindowSceneDelegate {     var window: UIWindow?     func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {         print(scene.debugDescription)         print(session.debugDescription)         print(connectionOptions.debugDescription)         guard let _ = (scene as? UIWindowScene) else { return }     }     func sceneDidDisconnect(_ scene: UIScene) {         print(scene.debugDescription)     }     func sceneDidBecomeActive(_ scene: UIScene) {         print(scene.debugDescription)     }     //... } The CarPlay delegate is this class CarPlaySceneDelegate: UIResponder  {     var interfaceController: CPInterfaceController? } extension CarPlaySceneDelegate: CPTemplateApplicationSceneDelegate {     func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didConnect interfaceController: CPInterfaceController) {         self.interfaceController = interfaceController         self.interfaceController?.delegate = self     }     private func templateApplicationScene(_ templateApplicationScene: CPTemplateApplicationScene, didDisconnect interfaceController: CPInterfaceController) {         self.interfaceController = nil     } } extension CarPlaySceneDelegate: CPTabBarTemplateDelegate {     func tabBarTemplate(_ tabBarTemplate: CPTabBarTemplate, didSelect selectedTemplate: CPTemplate) {     } } extension CarPlaySceneDelegate: CPInterfaceControllerDelegate {     func templateWillAppear(_ aTemplate: CPTemplate, animated: Bool) {         print("templateWillAppear", aTemplate)     }     func templateDidAppear(_ aTemplate: CPTemplate, animated: Bool) {         print("templateDidAppear", aTemplate)     }     func templateWillDisappear(_ aTemplate: CPTemplate, animated: Bool) {         print("templateWillDisappear", aTemplate)     }     func templateDidDisappear(_ aTemplate: CPTemplate, animated: Bool) {         print("templateDidDisappear", aTemplate)     } } the info plist section: <dict> <key>UIApplicationSupportsMultipleScenes</key> <false/> <key>UISceneConfigurations</key> <dict> <key>UIWindowSceneSessionRoleApplication</key> <array> <dict> <key>UISceneConfigurationName</key> <string>Default Configuration</string> <key>UISceneDelegateClassName</key> <string>$(PRODUCT_MODULE_NAME).SceneDelegate</string> </dict> </array> <key>UIWindowSceneSessionRoleExternalDisplay</key> <array> <dict> <key>UISceneClassName</key> <string>CPTemplateApplicationScene</string> <key>UISceneConfigurationName</key> <string>CarPlay</string> <key>UISceneDelegateClassName</key> <string>$(PRODUCT_MODULE_NAME).CarPlaySceneDelegate</string> </dict> </array> </dict> </dict>
Replies
4
Boosts
0
Views
5.2k
Activity
May ’23
Carplay Simulator is terminated with console log [General] Connection interrupted, [General] Connection invalidated when I initialize Siri
Carplay Simulator is terminated with console log [General] Connection interrupted, [General] Connection invalidated when I initialize Siri. But on the other person's development setting, Carplay Simulator with Siri is working well. setting info is as below XCode - Version 14.1 (14B47b) CarPlay simulator - Version 1.1 (480.25)
Replies
0
Boosts
0
Views
594
Activity
Mar ’23
How add a information panel net trippreview panel
How to add an information panel next to the trippreview panel, as it is done in the Apple Plan application, to display an information message related to government restrictions (low carbon emission zone)? I don't find any API to do this.
Replies
1
Boosts
1
Views
679
Activity
Mar ’23
CarPlay Hardware design in Car
We have a new automotive project use CarPlay. What does the interface connection between CarPlay and Main Chip ? through USB or wireless ? how to design hardware in car hardware ?
Replies
1
Boosts
0
Views
1.4k
Activity
Feb ’23
apple carplay
I'm interested in developing a navigator to be used with EyeRide Heads up Display (HUD). The HUD does not have "button" functionality but can use voice commands. Is there any kind of SDK that give basic functionality to be compatible with CarPlay ?
Replies
0
Boosts
0
Views
658
Activity
Jan ’23
Apple Carplay
Daer Sir, I have Toyota Prado GXR - 2020, and i wonder if CARPLAY can be install in the android screen.
Replies
1
Boosts
0
Views
1.2k
Activity
Oct ’22
How long is the review period after manually requesting CarPlay authorization?
I'm developing a CarPlay addition for my application. To add the CarPlay addition, as you know, I have to request it manually. I have some questions regarding the review of this request. I will be glad if you answer. Can you give us information about the requested details about our application? How long is the review period after sharing the requested details? Waiting for your answers, Thanks! :)
Replies
0
Boosts
0
Views
1.7k
Activity
Oct ’22
Using SceneKit view in CarPlay templates
We have an application that provide useful information whilst parking. Currently the app uses a SceneKit view to render the information display. Is it possible to incorporate this in a CarPlay template ? Any thoughts appreciated.
Replies
1
Boosts
0
Views
986
Activity
Sep ’22
t-shirt
Hey Andre - silly question - what is that t-shirt you are wearing in the video?
Replies
0
Boosts
1
Views
665
Activity
Jun ’22