I am updating one of my apps to Swift 3 and i am using the APAddressBook Library (https://github.com/Alterplay/APAddressBook) as always. Here is a Swift example from APAddressBook but this fails, too
self.addressBook.loadContacts({ (contacts: [APContact]?, error: NSError?) in
if let uwrappedContacts = contacts {
// do something with contacts
}
else if let unwrappedError = error {
// show error
}
} as! APLoadContactsBlock)
The app crash with "Thread 1: EXC_BREAKPOINT (EXC_ARM_BREAKPOINT)" but i have no idea why.