Install failed; xip is damaged and can't be expanded
Open
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 4.8k
- Forks
- 182
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 1
Description
I am unable to install Xcode 26.1:
sudo env PATH=$PATH xcodes install 26.1
(1/6) Found existing archive that will be used for installation at /Users/me/Library/Application Support/com.robotsandpencils.xcodes/Xcode-26.1.0+17B55.xip.
(2/6) Unarchiving Xcode (This can take a while)
Using regular unxip. Try passing `--experimental-unxip` for a faster unxip process
The archive "Xcode-26.1.0+17B55.xip" is damaged and can't be expanded.
Removing damaged XIP and re-attempting installation.
Downloading with urlSession - for faster downloads install aria2 (`brew install aria2`)
(1/6) Downloading Xcode 26.1.0+17B55: 100%
(2/6) Unarchiving Xcode (This can take a while)
Using regular unxip. Try passing `--experimental-unxip` for a faster unxip process
The archive "Xcode-26.1.0+17B55.xip" is damaged and can't be expanded.
Environment Info
- Apple M1 Max
- MacOS 15.7.2
xcodesinstalled through homebrew- I have to use
sudodue to security measures on my device that I can't do anything about. It hasn't caused any issues in the past. - Up until now, the
xcodes installcommand has worked perfectly for me (past 3-ish years).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing xcodes install 26.1 on the reported macOS environment and compare the regular unxip path with --experimental-unxip. Check whether the downloaded XIP is valid and whether using sudo affects extraction; done means identifying the cause and confirming a successful installation or a clear diagnosis.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, swift
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100