Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

multipeer connectivity test on iphone and a simulator simultaneously

Hello I was searching in all topics of the forum about how can i test an app which uses multipeer connectivity framework. Can someone tell me how can i test an app by using an iPhone device and a simulator simultaneously, player one for device and player two on the simulator and vice versa. I already test the app by using two simulators one per mac - user on a mac and its working but it is not convenient to continuously switch users to test an app. I tried all the alternatives, running once in simulator and one on device at the same time,make second target, nothing happened.

Thanks in advance

like image 685
bobadil Avatar asked Dec 15 '13 12:12

bobadil


2 Answers

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

like image 170
ChrisH Avatar answered Nov 15 '22 19:11

ChrisH


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.

like image 38
Michael Wälischmiller Avatar answered Nov 15 '22 18:11

Michael Wälischmiller