문제

My company signed MFI program so we can now develope application to make communication between external accessories and iPhone via bluetooth (bluetooth 2). In our accessory we have an authentization chip so I can connect to this accessory with iPhone without any problems. iPhone finds this accessory and I can connect to it. My question is if I can find this accessory in iOS simulator in XCode because during searching bluetooth devices simulator can´t find any device. Circle progress bar is spinning but device list is still empty. I have external bluetooth adapter (4 LE) and searching starts but can´t find devices and I tried to switch external adapter with internal one in Mac mini so adapter works. Thank you for your responses.

도움이 되었습니까?

해결책

I just got answer from Apple:

The simulator in Xcode doesn't support iAP communication with MFi accessories, not via a USB to 30-pin cable, nor via Classic Bluetooth 2.1+EDR.

다른 팁

The devices can only be searched through the iphone or the ipad device as they have the electronic hardware for bluetooth. Whereas the simulator does not have (obvious) it is merely for running your code. Whereas there are some ways like :-

Xcode iOS simulator's Settings > Bluetooth just spins and doesn't turn on

Is it possible to test an app using Bluetooth in the iOS Simulator?

Please refer.....

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top