Search code examples
iosobjective-cbluetoothgamekit

iOS GameKit Can't Connect via Bluetooth


I'm trying to connect between 2 devices, iOS Simulator and iPhone device.

_picker = [[GKPeerPickerController alloc] init];
_picker.delegate = self;
_picker.connectionTypesMask = GKPeerPickerConnectionTypeNearby;

For some reason the devices can discover each other only via wifi.

What am I doing wrong ?


Solution

  • The simulator does NOT work with bluetooth, try with 2 devices, should work ..