187 | | When the command line tools package is installed, a receipt is generated that can be accessed with `pkgutil`. |
188 | | When upgrading macOS or Xcode, this receipt can be lost even though the command line tools remain installed. |
189 | | Without this receipt, MacPorts cannot determine which version of the command line tools package is installed, and worse, Software Update will never update the CLTs. |
190 | | |
191 | | To verify whether you have a CLT receipt, run this command: |
| 187 | When the Command Line Tools package is installed, a receipt is generated that can be accessed with `pkgutil`. |
| 188 | When upgrading macOS or Xcode, this receipt can be lost even though the Command Line Tools remain installed. |
| 189 | Without this receipt, MacPorts cannot determine which version of the Command Line Tools package is installed, and worse, Software Update will never update the Command Line Tools. |
| 190 | |
| 191 | To verify whether you have a Command Line Tools receipt, run this command: |
201 | | Reinstalling the command line tools package fixes the problem (however future updates will cause it to recur until Apple fixes the bug). |
202 | | * Download the command line tools package from the [https://developer.apple.com/download/more/?=command%20line%20tools Apple Developer] site. |
203 | | * If the version of the CLT you need is not listed at the developer site, but an older version is, reinstalling that will restore the package receipts. Then just run Software Update to trigger the update to the newer version. |
204 | | * Or, on OS X 10.9 or greater, Software Update can reinstall the package: |
| 201 | Reinstalling the Command Line Tools package fixes the problem (however future updates will cause it to recur until Apple fixes the bug). |
| 202 | |
| 203 | On Mac OS X 10.9 Mavericks or later, Software Update can reinstall the package: |
209 | | Please note that Software Update will continue to list the command line tools package as outdated so long as the file `/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress` exists.[[BR]] |
210 | | Be sure to remove it once the package is reinstalled. |
| 208 | * Software Update will continue to list the Command Line Tools package as outdated so long as the file `/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress` exists, so don't forget to run the previous command to remove it. |
| 209 | |
| 210 | On Mac OS X versions older than 10.9 you'll need to download and install the Command Line Tools package again yourself: |
| 211 | * Download and install the Command Line Tools package from the [https://developer.apple.com/download/more/?=command%20line%20tools Apple Developer] site. |
| 212 | * If the version of the Command Line Tools you need is not listed at the developer site, but an older version is, reinstalling that will restore the package receipts. Then just run Software Update to trigger the update to the newer version. |
| 213 | |
| 214 | If you've had to reinstall the Command Line Tools because of this bug, consider reporting this issue to Apple via the Feedback Assistant application or https://feedbackassistant.apple.com. |