Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 2 KB

README.md

File metadata and controls

40 lines (26 loc) · 2 KB

Xcode To External Hard Drive

My workaround for downloading and installing Xcode on an External Hard Drive to save space on my main HD.

Steps:

  1. Create a new user for your mac.
  • Go to "System Preferences > Users & Groups" and click the "+" button to create a new user.

alt text

  1. Set the new user's home directory to be your external hard drive.
  • Right click on the new user and choose "Advanced Options"
  • Change their Home Directory to "/Volumes/ExternalHardDriveName"

alt text

  1. Enable downloads and apps from anywhere using the command:
sudo spctl --master-disable
  • The result should be something like this:

alt text

  1. Log out of the normal user account.
  2. Log in as the new user and download the desired version of Xcode from https://developer.apple.com/download/more/?=xcode
  • Note: Check your OS version before downloading the latest Xcode as it may not be compatible.
  1. Unzip the file using the terminal command:
xip -x /path/to/xip_File/Xcode_*version*.xip
  1. Unzipping the file will take a while- maybe an hour or two. Terminal will display a finished message when the operation is complete.

Note: While unzipping, temporary files still took up some space on my main hard drive. This means you need at least 35 gigs or so of free space to unzip Xcode. Using this method will save around 10-12 gigs of storage initially because the .xip file will always be on the external HD. Once the unzipping is complete, those 35 gigs of space will be free again. Since the download was stored in the external hard drive I am not sure why the temporary folders were made on my main hard drive, maybe someone out there knows.

And that's it!