multipeer connectivity test on iphone and a simulator simultaneously

微笑、不失礼 提交于 2019-12-03 11:32:53

If you put your iPhone and your Mac on the same WiFi network they should able to discover each other without any problem.

Yes you can test your app on Device an Simulator simultaneously. I'm developing an app with Multipeer Connectivity right now and communication between Iphone and Simulator works fine. I'm running it on a MacBook Air. All you have to do is to make sure, that Bluetooth is enabled on your Mac. You can do this in System Preferences -> Bluetooth.

In addition to testing on WiFi, you can also test your app based on "Multipeer Connectivity framework" on simulator and any IOS device using Bluetooth, As long as simulator and devices are connected in same Personal area network.

For example, on Iphone you can turn on Personal Hotspot (in your phone General settings) to connect your phone with your mac in same personal area network via bluetooth or WiFi and then try testing your app sharing messages between simulator and Iphone using any personal network based on Bluetooth or WiFi.

All the combination will work as long as app using "Mutlipeer connectivity framework" are on same personal area network.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!