I want to get the Contacts containers.
The following works on OSX 10.11:
import Contacts
let store = CNContactStore()
let containers = try store.containersMatchingPredicate(nil)But on 10.12 Beta (16A304a) it gives an error (in XCode Playground):
Execution was interrupted, reason: EXC_BREAKPOINT (code=EXC_1386_BPT, subcode=0x0)Both in XCode 7.3.1 and XCode 8.0 Beta.
Any suggestions?
Note: additional difference between the 10.11 system and 10.12 systems:
the 10.11 system has 2 containers (local and iCloud)
the 10.12 systems have Exchange containers as well (even though this Exchange account is not enabled for contacts)