Mac guide
How to move Xcode simulators, DerivedData and Archives to an external drive
By Aqib Javed · Updated Nov 30, 2026
Set DerivedData and Archives to a folder on the drive in Xcode > Settings > Locations. Xcode has no setting for simulators or iOS DeviceSupport, so move ~/Library/Developer/CoreSimulator/Devices and ~/Library/Developer/Xcode/iOS DeviceSupport to the drive and leave a symlink in each old place. Simulator runtimes can't be moved: they sit in a secure storage area on the Mac that simctl manages. Offload moves Xcode build data, iOS device support and simulators for you and keeps the paths the same.
What can move to the drive, and what stays on the Mac
- DerivedData (~/Library/Developer/Xcode/DerivedData): moves with a setting in Xcode.
- Archives (~/Library/Developer/Xcode/Archives): moves with a setting in Xcode. Keep these, since they hold the symbols for builds you shipped.
- Simulators (~/Library/Developer/CoreSimulator/Devices): each simulator's apps and data. No setting; moves with a symlink.
- iOS DeviceSupport (~/Library/Developer/Xcode/iOS DeviceSupport): files Xcode copies from each device you connect. No setting; moves with a symlink.
- Xcode.app: can run from the drive.
- Simulator runtimes (/Library/Developer/CoreSimulator, in the system Library, not your home folder): stay on the Mac. You can only add or remove them.
Simulator runtimes are often the biggest part, and they are the one piece that stays. Format the drive as APFS: Apple's developer support recommends a native Mac format, and other formats, such as FAT32, can cause problems.
Move DerivedData and Archives in Xcode's settings
- Plug in the drive and make a folder on it, for example Developer.
- In Xcode, choose Xcode > Settings and click Locations (Xcode > Preferences in older versions).
- In the Derived Data menu, choose Custom, then pick a folder on the drive.
- In the Archives menu, choose Custom and pick another folder on the drive.
- To bring your existing archives along, copy the dated folders from ~/Library/Developer/Xcode/Archives into the new folder. Delete the old copies once Window > Organizer lists them.
New builds and archives go to the drive from then on, with no symlink needed. Your old DerivedData doesn't need to come along: Xcode recreates it from your source, so you can delete the old folder (the guide on freeing up Xcode disk space covers that).
Move simulators and iOS DeviceSupport with a symlink
Copy each folder to the drive, rename the original, and put a symlink where it was, so Xcode and simctl still find it at the same path. Quit Xcode and Simulator first. Change YourDrive to your drive's name. Link the Devices folder only: developers who linked the whole CoreSimulator folder or /Library/Developer report simulators that won't start.
xcrun simctl shutdown all
DRIVE="/Volumes/YourDrive/Developer"
mkdir -p "$DRIVE"
cd ~/Library/Developer
# simulators
ditto CoreSimulator/Devices "$DRIVE/Devices"
mv CoreSimulator/Devices CoreSimulator/Devices.old
ln -s "$DRIVE/Devices" CoreSimulator/Devices
# iOS DeviceSupport
ditto "Xcode/iOS DeviceSupport" "$DRIVE/iOS DeviceSupport"
mv "Xcode/iOS DeviceSupport" "Xcode/iOS DeviceSupport.old"
ln -s "$DRIVE/iOS DeviceSupport" "Xcode/iOS DeviceSupport"
# restart the simulator service, then check your simulators are listed
killall -9 com.apple.CoreSimulator.CoreSimulatorService
xcrun simctl list devicesCheck the simulators, then delete the old copies
- Boot a simulator and run your app on it, and connect a device. When both work, delete Devices.old and iOS DeviceSupport.old to get the space back.
- To undo, delete the symlink and move the folder from the drive back to the same place.
- Nothing checks the copy for you here. If the drive fills up or disconnects during ditto, start again from the original, which is still in place until you delete the .old folder.
Simulator runtimes and Xcode itself
Runtimes can't be moved. Xcode installs them as disk images into a secure storage area under /Library/Developer/CoreSimulator, and simctl manages them there; people who symlinked that folder to an external drive report that the simulators stopped loading. What you can keep on the drive is the runtime's download, so a runtime you remove doesn't have to be downloaded again. Save it with xcodebuild, and import it when you need it. Importing copies it back onto the Mac.
Xcode.app itself can run from the drive. Download the .xip from developer.apple.com/download, put it on the drive and double-click it to expand Xcode there. To make command line builds use that copy, run sudo xcode-select -s /Volumes/YourDrive/Xcode.app. Xcode.app is a few GB, while installed runtimes often add up to several times that, and it won't open while the drive is unplugged.
# save the iOS simulator runtime download to the drive
xcodebuild -downloadPlatform iOS -exportPath /Volumes/YourDrive/Runtimes
# install it again later
xcodebuild -importPlatform "/Volumes/YourDrive/Runtimes/<runtime file>.dmg"What happens when the drive is unplugged
Anything you moved needs the drive plugged in. Without it, builds fail because Xcode can't reach DerivedData, simulators on the drive can't start, and Xcode.app on the drive won't open. Plug it back in and everything is where Xcode expects it again.
Quit Xcode and Simulator before you eject. If the drive comes out in the middle of a build, plug it back in and build again; if the build still fails with odd errors, choose Product > Clean Build Folder and build once more.
Moving Xcode data with Offload
- Download Offload from its page, unzip it, and drag it into your Applications folder. It runs on macOS 14 Sonoma or later, on Apple silicon and Intel Macs.
- Plug in your external drive and open Offload. The setup asks which drive to use.
- Quit Xcode and Simulator, open the Developer data page, and move Xcode build data, iOS device support and iOS simulators to the drive.
- Open Xcode and build as usual. Anything you moved can come back to the Mac later.
Offload moves Xcode build data, iOS device support and simulators to the drive and leaves links where they were, so Xcode and simctl find their files at the usual paths. Every byte is read back from the drive and checked before the original is deleted, and an interrupted move resumes or rolls back. Simulator runtimes stay on the Mac, as above, and Archives still move with Xcode's own setting.
Everything works for 3 days from the first launch, with no card needed. After that it's $7.99 once, one key for up to 2 Macs.
Did this fix it?
Questions
Can I move iOS simulator runtimes to an external drive?
- No. Runtimes live in a secure storage area on the Mac that simctl manages, and linking that folder to a drive stops the simulators from loading. You can keep the runtime download on the drive with xcodebuild -downloadPlatform -exportPath and import it when you need it.
Can I install Xcode on an external drive?
- Yes. Expand the .xip from developer.apple.com/download onto the drive and point xcode-select at it. It saves less than you might expect: installed runtimes often take several times the app's size, and they stay on the Mac either way.
Will my simulators keep their apps and data after the move?
- Yes. The Devices folder holds each simulator's installed apps and data, so moving the whole folder keeps them. Xcode and simctl see the same simulators, now stored on the drive.
What format should the external drive be?
- APFS. Apple's developer support recommends a native Mac format for Xcode data; other formats, such as FAT32, can cause problems.
Do I need to copy my old DerivedData to the drive?
- No. Apple's Xcode help notes that DerivedData can be re-created at any time from your source files. Point Xcode at the new folder, and each project rebuilds there on its next build.