Skip to content

Use 2FA without hands #408

Open
Open
@cesarjorgemartinez

Description

@cesarjorgemartinez

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions