How to get user's own contact card with unifiedMeContactWithKeys(toFetch:)?

62 Views Asked by At

It came to my knowledge from the documentation (here) and some forum replies that the method unifiedMeContactWithKeys(toFetch:), which fetches the me-card in the phone book by using CNContactStore, was recently made available for iOS as well. The problem is that I regardless get the error saying the method is unavailable for iOS, even though the documentation clearly states it should be available. I have tried several Xcode versions including the latest one but to no avail... Does anyone have any idea what is wrong here?

I desperately looked around old forum posts on this very topic but back then the method was only available for macOS, and there aren't any newer posts after the documentation introduces iOS support, so I felt a bit lost.

0

There are 0 best solutions below