我开发了汽车CarPlay的应用程序。应用程序正常工作的iOS 11和12 Carplay模拟器。我试图在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.1.Carplay连接
NotificationCenter.default
.addObserver(forName: UIScreen.didConnectNotification,
object: nil,
queue: .main) { (notification) in
print("Carplay Connected")
}2.2.Carplay
NotificationCenter.default
.addObserver(forName: UIScreen.didDisconnectNotification,
object: nil,
queue: .main) { (notification) in
print("Carplay DisConnected")
}此方法不被调用。如果有人在iOS 13做过,请帮助我?
谢谢
发布于 2019-12-03 09:47:08
Xcode 11.0和11.2.1版本没有在模拟器中显示carplay应用程序。是xcode错误。它现在正在Xcode 11.3测试版上工作。
https://stackoverflow.com/questions/59031529
复制相似问题