how to enable touch in carplay simulator

Viewed 978

I am running my app on the CarPlay simulator, but it is not supporting any touch and also not showing the tabbar. I have added the com.apple.developer.playable-content entitlement. Is there any other entitlement that needs to be added in order to work with touch on CarPlay simulator. FYI the default message app takes works with the touch.

1 Answers

After several days of hard work. I finally get this working.

1) Set entitlement in your project

<key>com.apple.developer.carplay-protocols</key> <array> <string>com.brand.carplay.feature</string> </array>

2) Activate the CarPlay window in Terminal

defaults write com.apple.iphonesimulator CarPlay -bool YES

3) Activate extra options

defaults write com.apple.iphonesimulator CarPlayExtraOptions -bool YES

4) Add your CarPlay protocol to iPhone Simulator

defaults write com.apple.iphonesimulator CarPlayProtocols -array-add com.brand.carplay.feature

You should clean project and delete app from iOS Simulator. After that - touch screen and UITabBarController are working in my application.

Related