but since that prompts for credentials to access the keychain, it just hangs since the privileged helper doesn't seem to have access to the UI.
I’m actually surprised it hangs rather than failing with an error but, yes, this is going to be problematic.
Why are you using a privileged helper for this? If this is a user credential, wouldn’t it be better to sign as that user?
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"