“Not enough space” when installing an app or Xcode on a Mac
- The App Store checks free space before it starts. Messages such as “Not Enough Space to Download and Install App” say how much more space the app needs, and offer to optimize storage.
- Large apps can go on another disk. App Store › Settings has Download and install large apps to a separate disk, for apps over 1 GB, onto an APFS drive that stays connected.
- Xcode needs much more than its download. It unpacks after downloading, and simulators and platforms come separately, so leave tens of gigabytes free, not just the listed size.
1. What the messages mean
macOS includes several App Store wordings for the same problem, and which one you see depends on the app and the version:
- “Not Enough Space to Download and Install App”, saying the app requires an additional amount of space, and that large apps can also be downloaded and installed to another disk.
- “There isn’t enough available storage on this Mac to install this app. It requires up to … of additional space. You can optimize your storage to save space.”, under titles such as “We could not complete your purchase.” or “We could not complete your update.”
- For Xcode, people have seen “There is not enough disk space available to install the product.”
The space needed is more than the size the App Store lists: an app downloads compressed, then expands as it installs.
2. How to fix it
- Free space on the Mac: empty the Trash, then remove large files, old “Install macOS” apps and old iPhone backups. See “Your disk is almost full”.
- For Xcode, clear its own data first: Xcode › Settings › Components shows how much space you can recover from simulator runtimes and platforms; delete the ones you don’t use.
~/Library/Developer/Xcode/DerivedDatacan go too; Xcode rebuilds it. See developer files. - Install large apps to another disk: in the App Store, choose App Store › Settings and turn on Download and install large apps to a separate disk. Apple says this applies to apps over 1 GB, the disk must be formatted APFS, and it has to stay connected to use the app.
- Retry the download from your Purchases or Updates once there’s room.
3. How much space does Xcode need?
Apple doesn’t publish a disk requirement for Xcode; its requirements page lists only macOS versions and SDKs. The App Store lists the download size, recently around 3 GB, but Xcode expands to many times that once installed, and each simulator runtime adds several gigabytes. A forum answer for Xcode 13 estimated about 46 GB free was needed while it unpacked. Plan for tens of gigabytes free before installing or updating it.
If the space shows as “available” but the installer still refuses, the gap is usually purgeable space, such as local Time Machine snapshots; see purgeable space. Old simulators are a common hidden cost; see Xcode simulators.
Questions
Why does the App Store need more space than the app’s size?
The download is compressed and expands when it installs, so it needs room beyond the listed size.
Can I install Xcode on an external drive?
The App Store can install apps over 1 GB to a separate APFS disk, which must stay connected while you use the app.
How much free space do I need for Xcode?
Apple doesn’t say. Allow tens of gigabytes, since Xcode expands well beyond its download and simulators are extra.
Is it safe to delete old simulator runtimes?
Yes, if you don’t test on those versions. Xcode can download them again from Settings › Components.
How SiftMac handles it. SiftMac’s developer files view finds old simulators, DerivedData, device support files and package caches, with a verdict on each and the space removing it really frees, so there’s room for the next Xcode or a big app without guessing what’s safe.
Download SiftMac · scanning is free, and so is your first 2 GB of cleaning · See how it works