How do I reliably relocate Xcode temporary folders and files to an external SSD?

M1 Mac Mini. I want to relocate the cache, archives, and intermediate build files of Xcode to an external TB3 1TB SSD. Basically all temporary stuff used and created by Xcode.

Can I do this by simple symlink-ing?
Answered by Robertino in 674590022
Okay, I think I've found it in the "Top Menu Bar >> Xcode >> Preferences >> Locations", then :
  • Derived Data >> Custom (from the dropdown). And then navigate to the folder on the external SSD.

  • Archives >> Custom (from the dropdown). And then navigate to the folder on the external SSD.


Accepted Answer
Okay, I think I've found it in the "Top Menu Bar >> Xcode >> Preferences >> Locations", then :
  • Derived Data >> Custom (from the dropdown). And then navigate to the folder on the external SSD.

  • Archives >> Custom (from the dropdown). And then navigate to the folder on the external SSD.


How do I reliably relocate Xcode temporary folders and files to an external SSD?
 
 
Q