MacOS – Installing Xcode command line tools error: The package “DeveloperToolsCLI.pkg” is untrusted

installmacosxcode

When I try to install the Xcode Command Line Tools I get the error message: "The package “DeveloperToolsCLI.pkg” is untrusted." I can't seem to find the answer to this problem anywhere, how do you fix this?

Best Answer

Probably the certificate is outdated. To circumvent this the following procedure should work:

  • Open "System Preferences"
  • Hit "Security & Privacy"
  • Hit the tab "General"
  • Click the lock and enter your admin password
  • at "Allow applications from anywhere" mark the radio button "Anywhere"
  • then click the button "Allow from anywhere"

sec

or like indicated in the screenshot above control-click individual apps/installer-apps and select "Open". This probably doesn't work for the DeveloperToolsCLI.pkg but for other apps.