Description
Hi,
I have gone through the entire Xcode installation/uninstallation process except for how to do hands-free 2FA.
This issue is in case someone comes up with something to make it fully automatic.
For now, I do trust device with my local PC and I put the fastlane spaceauth cookie in a Jenkins parameter, and with that it can be done on remote Mac nodes without manual intervention.
But I wanted to see if the manual step can be avoided on the local PC.
I have tested examples with an AppleScript (to interact to get the code):
#!/usr/bin/env osascript
tell application "System Events"
activate
...
end tell
But when I execute this, opens other window with:
"Terminal.app needs obtain access to control System Events.app...."
Then I go back, I don't know how to do via command line to allow Terminal.app access to System Events.app.
When it ends (get the code), I have seen how to remove the permissions: tccutil reset ...
Does anyone know how I could do this?
Regards