XcodesOrg / xcodes

The best command-line tool to install and switch between multiple versions of Xcode.
MIT License
3.59k stars 119 forks source link

Download with API key #293

Open rwong2888 opened 1 year ago

rwong2888 commented 1 year ago

Is there a way to download via API key .p8 file instead of user/pass and 2fa code?

adelindanaila commented 9 months ago

+1

will be great to have option to log in with app store connect api key

NajiNasimi-AIYou commented 4 months ago

Any update on this?

UPDATE 11/03/24: There is a way to use API key .p8 file instead of native xcodes user/pass and 2fa codes. After much needed readings, the implemented fastlane authentication is able to facilitate as a middle man for xcodes and App Store Connect API Key .p8 file. Read through #257 first. Then explore (https://docs.fastlane.tools/getting-started/ios/authentication/#storing-a-manually-verified-session-using-spaceauth) reading through Method 1 to accomplish authentication via App Store Connect API key. This is currently the recommended method.

@rwong2888 and @adelindanaila was this something you were looking for?

szagi commented 2 months ago

Hi, unfortunately, in our CI pipeline we use API key instead of FASTLANE_SESSION and at the moment it is impossible to change it, so is it planned to support this authentication method?

MattKiazyk commented 2 months ago

Sorry, if there was a way that we could use the ASC api key or a app specific password we would immediately support it. To my knowledge, and last time I tried to look into hacking it, it isn't.

We don't want to have to manually login and 2fa, but Apple doesn't make it easy. At one point, Apple had it open to allow downloads without even logging in (like they currently do with platforms) but they stopped allowing it after a few weeks.