XcodesOrg / XcodesOrg/xcodes

Partially downloaded/damaged Xcode archives aren't checked before moved to download location

Open
#484 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
4.8k
Forks
182
Avg merge
2d 12h
Merged PRs (30d)
1

Description

To reproduce:

  1. Run xcodes download --latest-prerelease
  2. Make it fail for some reason. I get:
 Received 403: Unauthorized. This can happen when either:
 1. Apple Developer Terms and Conditions were not accepted at https://developer.apple.com/
 2. Apple ID authorization was revoked for some other reason

Even after I log in.
3. Run the downloaded command again
4. Get:

Updating...
Latest prerelease version available is 27.0 Beta 2

(1/1) Found existing archive at /Users/Admin/Library/Application Support/com.robotsandpencils.xcodes/Xcode-27.0.0-Beta.2+27A5209h.xip.

Xcode 27.0.0-Beta.2 has been downloaded to /Users/Admin/Downloads/Xcode-27.0.0-Beta.2+27A5209h.xip

Which is an invalid archive from the previous failed download.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing xcodes download --latest-prerelease, interrupting or failing the download, and running the command again. Trace the download and existing-archive handling to determine how the damaged Xcode archive is accepted; done means a failed archive is not reused or moved to the download location.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.