XcodesOrg / xcodes

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

restore downloading via xcodereleases with apple username/password :( #245

Closed MattKiazyk closed 1 year ago

MattKiazyk commented 1 year ago

In Sept 2022, Xcodes was updated to use the same mechanism that is used to download runtimes with no login, to download Xcode.

ie: https://developerservices2.apple.com/services/download?path=/Developer_Tools/tvOS_16.1_Simulator_Runtime/tvOS_16.1_Simulator_Runtime.dmg returns 200 to set the ADCDownloadAuth cookie to be able to download

As of mid Nov 2022, Apple has return 403 (forbidden) for this endpoint for Xcode versions only. Runtimes still return 200.

https://developerservices2.apple.com/services/download?path=/Developer_Tools/Xcode_14.0.1/Xcode_14.0.1.xip

I'm not sure if this is deliberate from Apple (My guess is it is), but this PR reinstates the old way of download xcodes as all libraries and utilities have done for years now.

I don't think Apple will ever allow this open again. I do hope at some point, there is a way that I can use app specific passwords, or some other means, where I don't have to ask for a dev's Apple username/password.

More discussion is in #243

SadMatt