XcodesOrg / xcodes

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

Simply not working #243

Closed lordzsolt closed 1 year ago

lordzsolt commented 1 year ago

When I try to download any version:

I have tried both with the CLI and the Xcodes app. (Both of them were installed through Homebrew)

When I run it from the CLI, I see the following output:

xcodes install --latest --experimental-unxip
Updating...
Latest non-prerelease version available is 14.1

Downloading with aria2

(2/6) Unarchiving Xcode (This can take a while)
Using experimental unxip. If you encounter any issues, remove the flag and try again
zsh: trace trap  xcodes install --latest --experimental-unxip

I presume the last line is the issue?

EDIT:

sebsto commented 1 year ago

Looks like Apple closed the loophole allowing to download without authentication. The downloaded file is an HTML error page.

lordzsolt commented 1 year ago

Is there anything I can do to authenticate?

I have logged in the Xcodes app before pressing Install, and it still produced the same output.

Edit:

michaeleisel commented 1 year ago

+1 for this, I got the same error, then tried using XCODES_USERNAME and XCODES_PASSWORD and still got the same error

MattKiazyk commented 1 year ago

@sebsto @lordzsolt @michaeleisel What are your Mac OS's?

These errors seem to be all Ventura

cltnschlosser commented 1 year ago

Seeing it now on 12.6.1. 2020 M1 mac mini

    <title>Unauthorized - Apple Developer</title>
    <meta name="omni_page" content="Unauthorized" />
    <meta name="Description" content="The page you requested does not exist.">
cltnschlosser commented 1 year ago

It could be an apple issue because xcode-select --install was also giving me issues.

lordzsolt commented 1 year ago

@MattKiazyk Yup, Ventura 13.0.1

lordzsolt commented 1 year ago

It could be an apple issue because xcode-select --install was also giving me issues.

No issues with xcode-select --install on my side (besides it being awfully slow)

michaeleisel commented 1 year ago

I'm on 12.6

MattKiazyk commented 1 year ago

It's looking like Apple changed something so I now can't get a token the way I was to download. I'm looking into it.

MattKiazyk commented 1 year ago

Workaround (unfortunately) at the moment is

xcodes update --data-source apple
xcodes install 14.0.1 --data-source apple

which will use the original way of Apple creds to get the token in order to download.

Sorry everybody, looks like Apple may have stopped our new way of getting a token 😢

vilanovi commented 1 year ago

I use xcodes 1.5.0 and it's working. However, on version 1.8.0 we are having the issue.

rogerluan commented 1 year ago

I really hope this is just a temporary issue on Apple's end 😬 Being forced to authenticate to download Xcode is just terrible 😞

I will check with my network to see if anyone has any insight within Apple so we know whether this is a temporary issue or a permanent change they made intentionally 🙏

sebsto commented 1 year ago

I think the authless download was unintentional in the first place. They just fixed a bug this week

MattKiazyk commented 1 year ago

Xcodes 1.2 was released tonight - It adds back the requirement of apple login for xcodereleases data source.