Sign in with apple and UIKit for Mac

I've implemented Sign in with Apple in my app and it works great on iOS. But when I compile the same project for macOS using UIKit for Mac Sign in with Apple no longer works.


Is there some limitation I've missed? If so, what's the proper way to fix it?

Replies

Could you provide an example of the code you're using to perform the authorization? It's difficult to determine what the problem is without seeing what your implementation is.

Sorry for the super late reply!


I've created a repo with sample code here: https://github.com/JagCesar/sign-in-with-apple-example


When trying to sign in on iOS it works correctly,

func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization)

is called as expected.


When trying to sign in on a Mac Catalyst build of the same code doesn't work though, instead I get this error in the "Sign in overlay".

https://github.com/JagCesar/sign-in-with-apple-example/raw/master/mac%20error.png


Not sure if this is a bug or a feature but if it is a feature it's sadly blocking all Catalyst apps from using Sign in with Apple which would be sad 😟 I was looking forward to making all my users anonymous!

Hi JagCesar,


Would you be able to install the AuthKit profile available here:


https://developer.apple.com/bug-reporting/profiles-and-logs/


Then reproduce the issue, capture the logs as outlined by link below (sysdiagnose) and file us a radar? If you mention AuthKit / AuthenticationServices in the radar it will get routed to us.


Edit: I would also give it a shot in the next beta to see if that helps.


Thank you!

Dima

Hi dima_beliy,


Tried it on catalina beta 5 with xcode 11 beta 5 and no luck. I reported an issue using the feedback assistant and attached the logs. FB6895166