2017-06-06 68 views
2

我有一個MFI程序許可證,並且正在嘗試實施WAC功能(無線配件配置)。我每次運行EADemo應用程序時,無論是在真實的iPhone上還是在模擬器上,我都沒有連接任何配件,儘管我通過xCode的HomeKit工具顯示配件,是否有任何解決方案?EADemo示例始終顯示'No Accessories connected'

PS:在我的info.plist中,我不知道模擬配件的協議是什麼。 enter image description here

+0

下的討論[這個問題](https://stackoverflow.com/questions/8397538/protocol-string-name-in-eademo-code)可以幫助你。 –

+0

謝謝,但我沒有幫助 – Marwa

+0

@Marwa有什麼好運氣? – MattyK14

回答

0

添加的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> 

也需要改變