XCODE requesting access to save new contact Mac Catalyst

Im having trouble requesting access to save a new contact as of today with updating to Ventura 13.0 (22A380).

Im requesting access to contacts using

@IBAction func requestConactsAccess() {

        CNContactStore().requestAccess(for: .contacts) { granted, error in

            if granted {

                // Yes

                print("Granted")

                self.authStatusLabel.text = "Granted"

            } else {

                // No

                print("Denied")

                self.authStatusLabel.text = "denied"

            }

        }

    }

But it is just being automatically denied. I can't save a contact either with an app that previously had permission. I created a small app to test this from scratch using the documentation "Working with the user’s contacts" https://developer.apple.com/documentation/contacts?language=objc

I have been doing this since the first version of the app, Ive never had an issue Has something changed with regards to Requesting access to contacts in latest OS? https://developer.apple.com/documentation/contacts/requesting_authorization_to_access_contacts

Thank you.

  • Requesting access isn't a problem, I have ticked the box Contacts in Sandbox and access to contacts is granted. Saving the contacts is the problem. Can't save contacts on Mac Catalyst This is the error I get Thread 1: EXC_BAD_ACCESS (code=1, address=0x4c8ecba407d0)

Add a Comment

Replies

Please file a bug report using the Feedback assistant.

  • Hello, Ive submitted a feedback and a sample project showing the error FB11721907 'CNSaveRequest failing on Ventura 13.0 (22A380)'

Add a Comment