XcodesOrg / XcodesOrg/xcodes

Install failed; xip is damaged and can't be expanded

Open
#458 1 comment 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

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
  • xcodes installed through homebrew
  • I have to use sudo due 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 install command has worked perfectly for me (past 3-ish years).

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.