ASAuthorization(MBS) on iOS

Customer wants a “sign in with Apple” option in his app, so I am happy I found ASAuthorization already exists in MBS plugins.

I installed my user credentials on the Simulator device, use a, sigh, ASAuthorizationAppleIDButtonIOSControlMBS, and in its Action event create an ID request like in the example on @Christian_Schmitz’ site.
I enabled user identification, added an Entitlements.plist with com.apple.developer.authentication-services.autofill-credential-provider True and com.apple.developer.applesignin with a string array containing one item “Default”.

Still I get an AuthorizationError 1000 which looks like still some permission would be missing.
Any ideas what?

I think we found that it doesn’t work on simulator.

I’m pretty sure that you need to create the app in the App Store Connect interface, and don’t forget to enable the capability on the Apple ID in your account.

Thank you, Greg.
It should work on Simulator. Apple’s juice demo app does.
I gave it the bundle identifier of my app, but that one will still respond with a “process could not be completed” error 1000. Juice shows all the dialogs as expected.

It is kind of difficult to get it to run.
You need to setup entitlements and provision profile.
To do that I made a Xcode project to setup all this, so I get Xcode to get the embedded.provisionprofile file and copy it to the Xojo made app.
Code signing is also needed. And then finally after a lot of try and error, I got the example to run on my Mac.

Thank you. I am currently a bit overwhelmed by the complexity of entitlements and similar stuff. Last time I looked at iOS, things were less complicated.
When I change the Juice demo app identifier to that of my app and it ran successfully in Simulator, you mean I can find a provision profile somewhere in it to copy to the Xojo app? Will try to dig it up, thank you.

Not the provisioning profile. You need the entitlements.

I thought I had them(?)

You may watch Console.app for errors.
There you may read something about a missing entitlement.

Thanks. What I see is this, but not sure if that stems from ASAuthorization:

standard 20:47:11.213799+0200 proactiveeventtrackerd [0x600003d003c0] activating connection: mach=true listener=false peer=false name=com.apple.cfprefsd.daemon
standard 20:47:11.213953+0200 cfprefsd [0x105506b70] activating connection: mach=false listener=false peer=true name=com.apple.cfprefsd.daemon.peer[99033].0x105506b70
fehler 20:47:11.219310+0200 proactiveeventtrackerd User passwd entry or home directory is not found
standard 20:47:11.219371+0200 proactiveeventtrackerd No XPC connection in Simulator
fehler 20:47:11.219412+0200 proactiveeventtrackerd Failed to initialize PETEventTracker2.
problem 20:47:11.219439+0200 proactiveeventtrackerd Failed to initialize the tracker
fehler 20:47:11.219480+0200 proactiveeventtrackerd Failed to initialize PET service. Exiting…
standard 20:47:11.219609+0200 cfprefsd [0x105506b70] invalidated because the client process (pid 99033) either cancelled the connection or exited
standard 20:47:11.219496+0200 proactiveeventtrackerd Entering exit handler.
standard 20:47:11.219508+0200 proactiveeventtrackerd Exiting exit handler.
fehler 20:47:12.617055+0200 managedappdistributiond Simulator is not supported