diff --git a/oAI/Services/ContactsService.swift b/oAI/Services/ContactsService.swift
index 058ab42..1863c4e 100644
--- a/oAI/Services/ContactsService.swift
+++ b/oAI/Services/ContactsService.swift
@@ -63,7 +63,8 @@ class ContactsService {
store.requestAccess(for: .contacts) { granted, error in
let after = CNContactStore.authorizationStatus(for: .contacts)
if let error {
- Log.mcp.error("ContactsService.requestAccess: error=\(error.localizedDescription); granted=\(granted); status after = \(Self.describe(after)) (raw=\(after.rawValue))")
+ let nsError = error as NSError
+ Log.mcp.error("ContactsService.requestAccess: error=\(error.localizedDescription) domain=\(nsError.domain) code=\(nsError.code) userInfo=\(nsError.userInfo); granted=\(granted); status after = \(Self.describe(after)) (raw=\(after.rawValue))")
} else {
Log.mcp.info("ContactsService.requestAccess: granted=\(granted); status after = \(Self.describe(after)) (raw=\(after.rawValue))")
}
diff --git a/oAI/oAI.entitlements b/oAI/oAI.entitlements
index 97a7c31..a86f180 100644
--- a/oAI/oAI.entitlements
+++ b/oAI/oAI.entitlements
@@ -12,7 +12,7 @@
com.apple.security.personal-information.reminders
- com.apple.security.personal-information.contacts
+ com.apple.security.personal-information.addressbook
com.apple.security.personal-information.location