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