gpt4 book ai didi

ios - EADemo 示例始终显示 'No Accessories connected'

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:32:52 24 4
gpt4 key购买 nike

我有一个 MFI 程序许可证,我正在尝试实现 WAC 功能(无线附件配置)。每次我运行 EADemo 应用程序时,无论是在真实的 iPhone 上还是在模拟器上,我都没有连接任何配件,尽管我通过 xCode 的 HomeKit 工具显示配件,有什么解决方案吗?

PS:在我的 info.plist 中,我不知道模拟配件的协议(protocol)是什么。 enter image description here

最佳答案

添加Info.plist

我在 info.plist 中添加了以下内容。 EADemo 应用程序在我这边工作。确保您的 MFi 设备已通过设备设置连接。

<key>UISupportedExternalAccessoryProtocols</key>
<array>
<string>com.example.apple-samplecode.data</string>
<string>com.yourcompany.serialtunnel.data</string>
<string>com.apple.p1</string>
<string>com.demo.control</string>
<string>com.demo.data</string>
</array>

也需要改变 enter image description here

关于ios - EADemo 示例始终显示 'No Accessories connected',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44392144/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com