我已经为汽车CarPlay开发了应用程序。该应用程序适用于iOS 11和12 Carplay Simulator。我试图在iOS 13 CarPlay模拟器上运行应用程序,但该应用程序未出现在CarPlay模拟器上。
我已经运行以下命令:
defaults write com.apple.iphonesimulator CarPlayExtraOptions -bool YES
defaults write com.apple.iphonesimulator CarPlayProtocols -array-add com.mycarbundle.app
defaults write com.apple.iphonesimulator CarPlay -bool YES
1.Carplay Connect
NotificationCenter.default
.addObserver(forName: UIScreen.didConnectNotification,
object: nil,
queue: .main) { (notification) in
print("Carplay Connected")
}
2.Carplay断开连接
NotificationCenter.default
.addObserver(forName: UIScreen.didDisconnectNotification,
object: nil,
queue: .main) { (notification) in
print("Carplay DisConnected")
}
此方法未调用。 如果有人在iOS 13中完成操作,请帮助我?
谢谢
答案 0 :(得分:0)
Xcode 11.0和11.2.1版本未在模拟器中显示carplay应用。这是一个xcode错误。现在可以在Xcode 11.3 beta上运行。