我正在 CarPlay 模拟器上运行我的应用程序,但它不支持任何触摸,也不显示选项卡栏。我已添加 com.apple.developer.playable-content 权利。是否需要添加任何其他权利才能在 CarPlay 模拟器上使用触摸功能。仅供参考,默认消息应用程序可通过触摸进行操作。
经过几天的努力。我终于开始工作了。
1) 在您的项目中设置权利
<key>com.apple.developer.carplay-protocols</key> <array> <string>com.brand.carplay.feature</string> </array>
2) 在终端中激活 CarPlay 窗口
defaults write com.apple.iphonesimulator CarPlay -bool YES
3) 激活额外选项
defaults write com.apple.iphonesimulator CarPlayExtraOptions -bool YES
4) 将您的 CarPlay 协议添加到 iPhone 模拟器
defaults write com.apple.iphonesimulator CarPlayProtocols -array-add com.brand.carplay.feature
您应该清理项目并从 iOS 模拟器中删除应用程序。之后 - 触摸屏和 UITabBarController 在我的应用程序中工作。