What a .xip file is
XIP is an archive format with a digital signature attached. Apple’s xip manual page describes it as a secure archive for distribution, and notes that since macOS Sierra only archives signed by Apple are trusted, with the format deprecated for anyone else. In practice, the .xip you meet is almost always an Xcode download from Apple’s developer site.
The signature is why opening one takes longer than a zip. Archive Utility first verifies that the archive is intact and signed by Apple, then expands it. An archive that fails verification, usually because a download was interrupted, will not expand; download it again rather than trying other tools on it.
1. Expand it where there is room
Double-click the .xip in Finder. Archive Utility shows its progress, then places Xcode.app in the same folder as the archive, usually Downloads. During expansion the archive and the growing app both take space, so check that the disk has room for both first. If it runs out partway, free space and start again.
From Terminal, xip --expand does the same job and writes into the current folder, so change to the folder you want first and replace the file name with your download’s. The option cannot be combined with any other. Expect it to run for a while with little output. Stick with Apple’s own tools: the signature check they run is what makes a .xip worth trusting.
df -h ~
cd ~/Downloads
xip --expand Xcode_26.1.xip2. Move Xcode into Applications
Drag Xcode.app into Applications. On the same disk, Finder moves it rather than copying, so this is quick and needs no extra space. If an Xcode is already there, Finder asks whether to replace it. To keep both, rename one first, for example to Xcode-beta.app, the name Apple’s own examples use for a second copy.
Open the new Xcode once so it can install its required components. For command-line builds, point xcode-select at the copy you want and run xcodebuild -runFirstLaunch, as Apple’s component guide shows; xcode-select -p confirms which copy is active.
sudo xcode-select --switch /Applications/Xcode-beta.app
xcodebuild -runFirstLaunch
xcode-select -p3. Delete the .xip
Once Xcode opens and builds your project, the .xip is a second copy of something already installed. Move it to the Trash, then empty the Trash to get the space back. Keep it only if you will install the same version on another Mac or in a virtual machine and want to skip the download.
Old archives are easy to forget, often one per Xcode release you tried. Spotlight can list them, and ClearDisk’s large-files list shows them by size with their path, leaving the decision to you. An Xcode.app expanded in Downloads and then copied elsewhere, instead of moved, is a duplicate too.
mdfind -name .xip
ls -lh ~/Downloads/*.xipApp Store or developer download?
Apple offers Xcode in the Mac App Store and, for betas and older versions, on its developer downloads page, which needs an Apple Account sign-in but no paid Developer Program membership. The App Store installs and updates Xcode in place and leaves no .xip behind. The downloads page is how you get a specific version, such as one that still runs on your macOS release; Apple’s Xcode support page lists which macOS each version needs.
Each extra copy of Xcode in Applications is a full app, so two versions take roughly twice the space. They share the data in ~/Library/Developer, such as Derived Data and simulator runtimes, which have their own guides. To remove a version, quit it, make sure xcode-select -p does not point at it, and move it to the Trash.
Common questions
Can I delete the Xcode .xip file after installing Xcode?
Yes, once Xcode is in Applications and opens, the .xip is just a spare copy of what you already installed, so you can move it to the Trash and empty it to get the space back.
Why won't my Xcode .xip file expand properly?
It's likely a signature verification failure, usually caused by an interrupted download. Archive Utility checks that the archive is intact and signed by Apple before expanding it, so download it again rather than trying other tools on it.
Does downloading Xcode from the Mac App Store leave a .xip file behind?
No. The App Store installs and updates Xcode in place with no .xip involved; the file only shows up when you download Xcode directly from Apple's developer downloads page.
How much extra space do multiple installed copies of Xcode use?
Each copy is a full app, so two versions take roughly twice the space, though they share some data, like Derived Data and simulator runtimes, stored elsewhere in ~/Library/Developer.
References & further reading
These guides combine the linked official guidance with ClearDisk’s documented behavior. Your files and app settings determine the right next step.