XCode reinstall command-line tools

Justin Vallon justinvallon at gmail.com
Thu Sep 23 02:27:19 UTC 2021

On 9/22/21 5:08 PM, Bjarne D Mathiesen wrote:
> I'm just using this :
> # https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt
> touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
> softwareupdate -ia
> rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
> I've scripted it as part of my routine :
> https://trac.macports.org/wiki/howto/AdvancedDailyAdm

I guess it wasn't clear to me that I didn't have to download the tools 
package from the developer site.  After re-reading the instructions, I 
see that I would only have to do what you said.

Maybe it would be clearer:

- Before 10.9:
   - Download the tools
   - Install it
- For 10.9 or later:
   - touch, softwareupdate, rm

The softwareupdate approach seems same complexity as rm && xcodeselect 
--install, so no point in making any changes.

JustinVallon at gmail.com

More information about the macports-users mailing list