Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 2FA without hands #408

Open
cesarjorgemartinez opened this issue Dec 20, 2024 · 0 comments
Open

Use 2FA without hands #408

cesarjorgemartinez opened this issue Dec 20, 2024 · 0 comments

Comments

@cesarjorgemartinez
Copy link

cesarjorgemartinez commented Dec 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant