I have the same issue. My code looks like this:
let predicate = CNContact.predicateForContacts(matchingEmailAddress: emailAddress)
let keysToFetch = [CNContactImageDataKey, CNContactThumbnailImageDataKey] as [CNKeyDescriptor]
if let contacts = try? CNContactStore().unifiedContacts(matching: predicate, keysToFetch: keysToFetch) {
// ...
}
where I get the following errors:
Attempted to register account monitor for types client is not authorized to access: {(
"com.apple.account.CardDAV",
"com.apple.account.Exchange",
"com.apple.account.LDAP"
)}
CNAccountCollectionUpdateWatcher 0x600004280e80: Store registration failed: Error Domain=com.apple.accounts Code=7 "(null)"
CNAccountCollectionUpdateWatcher 0x600004280e80: Update event received, but store registration failed. This event will be handled, but the behavior is undefined.
Attempt to read notes by an unentitled app
on macOS 14.5 (23F79).
I can ignore the errors in the console, which is not ideal, but my main issue with these errors is that they trigger the “All Runtime Issues” breakpoint.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: