xcodes icon indicating copy to clipboard operation
xcodes copied to clipboard

Any workarounds when 2fa is enabled

Open gchan662 opened this issue 2 years ago • 6 comments

Maybe this is a known situation and I'm just oblivious to it. However, is there a method in which xcodes can be used when 2fa is enabled? I'm unable to find a way to install Xcode automatically when 2fa is enabled. Any help is greatly appreciated.

gchan662 avatar Apr 29 '23 17:04 gchan662

I also have not found a way to use xcodes on CI with 2FA-enabled accounts. It would be great to see this scenario added to the readme to at least know what works and what doesn’t. 🙏

See also #141 and #248.

triplef avatar May 08 '23 19:05 triplef

I've found something that worked for me, agreeing to developer terms and guidelines from https://developer.apple.com after logging in and doing xcodes update ... and trying xcodes install ...again worked, i've left a similar comment here: https://github.com/XcodesOrg/xcodes/issues/291#issuecomment-1585036481

NikolaDucak avatar Jun 09 '23 19:06 NikolaDucak

I'd recommend reading https://github.com/XcodesOrg/xcodes/pull/257 which provides the ability to use FASTLANE_SESSION for auth. This may help in some of the cases mentioned above.

gemmakbarlow avatar Jul 06 '23 23:07 gemmakbarlow

Biggest issue I'm finding is even when using FASTLANE_SESSION for auth, CI pipeline still requires superuser permission to finish the xcode installation. Would like to automate xcode upgrades to our jenkins pipeline.

adamsousa avatar Oct 26 '23 17:10 adamsousa

@adamsousa What happens when you skip the superuser part with --no-superuser? That seems to skip some optional steps, wondering if superuser is then crucial for the installation.

Also, in automation you could remove password requirement for xcodes in sudoers or so. Or better yet, become the superuser before you run the xcodes

gitperr avatar Oct 30 '23 09:10 gitperr

Doing a browser based sign-in to https://developer.apple.com/account helped put up the OTP prompt on a subsequent xcodes install

mkatychev avatar Feb 03 '24 23:02 mkatychev