
28 February 2025 Leave a comment Xcode
Installing Xcode on macOS can sometimes be problematic, especially when the Mac App Store indicates insufficient disk space, despite having ample free space. This guide provides a step-by-step solution to address this issue effectively.
Understanding the Issue
The problem often arises due to the way macOS calculates available disk space. The Finder counts “purgeable” space as free, but the Mac App Store does not, leading to discrepancies.
Step-by-Step Solutions
1. Manually Download and Install Xcode
If the Mac App Store is not cooperating, consider downloading Xcode directly from Apple’s developer site. Follow these steps:
- Visit Apple’s Developer Downloads.
- Search for the desired version of Xcode and download it.
- Install Xcode manually by opening the downloaded file.
2. Clear Purgeable Space
You can clear APFS purgeable space by tricking macOS into cleaning it up. Use the Terminal to create and then delete a large temporary file:
dd if=/dev/zero of=~/hugefile bs=100m
rm ~/hugefile
3. Delete Old Simulator Files and Derived Data
Free up space by removing outdated simulator files and derived data:
- Navigate to
~/Library/Developer/Xcode/iOS DeviceSupport/
and delete old simulator files. - Go to
~/Library/Developer/Xcode/DerivedData
and remove all contents.
4. Use DevCleaner for Xcode
DevCleaner is a handy tool available on the Mac App Store that simplifies the cleanup process for Xcode-related files.
5. Remove Cache Files
Deleting specific cache files can resolve the issue:
- Quit the Mac App Store.
- Remove
~/Library/Caches/storedownloadd
and~/Library/Caches/com.apple.appstore
. - Relaunch the Mac App Store and attempt the installation again.
Enhance Your Development Workflow with Repeato
If you’re developing mobile applications, consider using Repeato to streamline your testing process. As a no-code test automation tool, Repeato allows you to create, run, and maintain tests efficiently across iOS, Android, and web apps. Its ease of use and powerful features, such as computer vision and AI, make it an excellent alternative to more cumbersome tools like Katalon.
With Repeato, you can automate complex tasks using command line scripts or JavaScript, and all test data is easily version-controlled in text and JSON formats. Explore more about Repeato and enhance your app development and testing experience today.
For additional resources, visit our documentation section or contact us for further assistance.
Like this article? there’s more where that came from!
- Resolving the “xcrun: error: invalid active developer path” Error on macOS
- Adding Existing Frameworks in Xcode 4: A Comprehensive Guide
- Disabling ARC for a Single File in Xcode: A Step-by-Step Guide
- Resolving the Xcode-Select Active Developer Directory Error
- Resolving the “Multiple Commands Produce” Error in Xcode 10