【问题标题】:Carplay Application not showing on iOS 13 simulatorCarplay 应用程序未在 iOS 13 模拟器上显示
【发布时间】:2019-11-25 12:09:21
【问题描述】:

我开发了汽车 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.Carplay Connect

NotificationCenter.default
    .addObserver(forName: UIScreen.didConnectNotification,
                  object: nil,
                   queue: .main) { (notification) in
     print("Carplay Connected")
}

2.Carplay DisConnect

NotificationCenter.default
    .addObserver(forName: UIScreen.didDisconnectNotification,
                  object: nil,
                   queue: .main) { (notification) in
    print("Carplay DisConnected")
}

这个方法没有被调用。 如果有人在 iOS 13 中做过,请帮助我?

谢谢

【问题讨论】:

    标签: swift ios13 carplay xcode11.2


    【解决方案1】:

    Xcode 11.0 和 11.2.1 版本未在模拟器中显示 carplay 应用。这是一个 xcode 错误。它现在在 Xcode 11.3 beta 上运行。

    【讨论】:

      猜你喜欢
      • 2017-07-20
      • 2014-06-26
      • 2015-06-30
      • 1970-01-01
      • 2019-01-19
      • 1970-01-01
      • 2014-11-21
      • 1970-01-01
      • 2014-01-28
      相关资源
      最近更新 更多