xcodes: Simply not working

When I try to download any version:

  • it downloads about 100KBs of it
  • considers it 100%
  • then fails with the error: The archive "Xcode-14.0.0+14A309.xip" is damaged and can't be expanded.

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:

  • I have tried with and without aria2
  • I have tried with and without --experimental-unxip
  • I have tried multiple Xcode versions

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 6
  • Comments: 15 (5 by maintainers)

Most upvoted comments

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 😢

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.

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

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

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