XcodesOrg / XcodesOrg/xcodes

Expand .xip on the destination volume

Open
#178 2 comments 1 reaction 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

After PR #126, xcode install supports a custom path for Xcode's installation, but this path isn't directly used for the .xip expansion, using instead the same directory where it’s downloaded (~/Library/Application Support/com.robotsandpencils.xcodes/)[^1]. If this custom installation path is to a different volume than the .xip, this means that:

  • Xcode.app must be first expanded and then moved to another volume, a relatively slow operation given its massive size.
  • This installation requires double the free space than on a same-volume installation, because Xcode is first copied to the destination volume and only when it has finished it’s deleted from the original volume.

So I think it makes sense to expand the .xip directly on the final volume where Xcode will be installed (probably on the /.TemporaryItems folder).

Would you accept a pull request for this? Thank you!

[^1]: I assume this is done to avoid having a partial Xcode installation on the destination folder, which sounds reasonable to me.

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 at the xcode install flow changed by PR #126 and trace where the downloaded .xip is expanded and where the custom installation path is applied. The change is complete when expansion occurs directly on the destination volume, avoiding the intermediate copy and extra free-space requirement; verify behavior across different volumes.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, swift
Domain
cli, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.