Issue
In the completion block of -[RZBPeripheral connectWithCompletion:], call -[RZBPeripheral cancelConnectionWithCompletion:]. It'll create an infinite loop and eventually crash with an EXC_BAD_ACCESS.
For example:
- (void)testCancelConnectionInConnectCompletion {
RZBPeripheral *peripheral = [self.centralManager peripheralForUUID:self.connection.identifier];
[peripheral connectWithCompletion:^(NSError * _Nullable error) {
[peripheral cancelConnectionWithCompletion:nil];
}];
[self waitForQueueFlush];
}