Have you tried associating your App with the domain you are signing into? https://developer.apple.com/documentation/xcode/supporting-associated-domains
(I'm not 100% certain this will solve your issue)
Topic:
App & System Services
SubTopic:
General
Tags: