I'm trying to implement this library using a custom CMakeLists file, and seemingly I got it built and added. However when I try to run [SteamControllerManager listen], I get a bad access error in scanForControllers:
|
- (void)scanForControllers { |
|
if (centralManager.state == CBManagerStatePoweredOn) { |
|
[centralManager scanForPeripheralsWithServices:@[controllerServiceUUID] options:nil]; |
|
NSArray *peripherals = [centralManager retrieveConnectedPeripheralsWithServices:@[controllerServiceUUID]]; |
|
for (CBPeripheral *peripheral in peripherals) { |
|
if (peripheral.state == CBPeripheralStateDisconnected) { |
|
[connectingPeripherals addObject:peripheral]; |
|
[centralManager connectPeripheral:peripheral options:nil]; |
|
} // TODO: something if it's disconnected? |
|
} |
|
} |
|
} |
The culprit appears to be controllerServiceUUID. Is this a known issue, or the result of a messed up cmake file?
(edited to show the source code from the latest commit at the time the issue was posted)
I'm trying to implement this library using a custom CMakeLists file, and seemingly I got it built and added. However when I try to run
[SteamControllerManager listen], I get a bad access error inscanForControllers:SteamController/SteamController/SteamControllerManager.m
Lines 105 to 116 in ee9568f
The culprit appears to be
controllerServiceUUID. Is this a known issue, or the result of a messed up cmake file?(edited to show the source code from the latest commit at the time the issue was posted)