Sign in with apple not working on distribution but does on ad hoc

Hello, I've implemented sign in with apple over my Unity3d project and when building my game using my ad hoc provision it works perfectly.
When building it with my app store distribution provision it's not responding even though it's the exact same code...
I even opened the ipa with codesign and security tools and made sure the entitlements are defined correctly and the provision is defined correctly.
Is there a different step that needs to be done when trying to build it for distribution?
Thanks.

Hi Metaldream, do you get any error code? I'm using Unity3d too and I'm having problem with the sign in with Apple. When I click on the sign in button I obtain "Authorization failed: AKAuthenticationError Code=-7026 UserInfo={AKClientBundleID=}". I've read it is invoked when you don't add the "Sign in with Apple" capability or if you don't enable it on the Apple developer page, but I did both. I've tried with different Ad Hoc and App Store (using TestFlight) provisioning profiles, but nothing changes.
The strange thing is that the sign in works well in the Xcode Simulator and not in iOS 13 devices.
I don't know what to try anymore. I hope someone could help.
Were you able to resolve this? if yes, please share the steps.
Sign in with apple not working on distribution but does on ad hoc
 
 
Q