Opened 4 years ago
Last modified 3 years ago
#61741 new defect
Warning: cltversion: The Command Line Tools are installed, but MacPorts cannot determine the version.
Reported by: | philgp (Phil Pishioneri) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | Dave-Allured (Dave Allured) | |
Port: |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
I've gotten this error on a few occasions of updating my ports (via "sudo port upgrade outdated"):
Warning: cltversion: The Command Line Tools are installed, but MacPorts cannot determine the version.
I've read the page that is also output (ProblemHotlist#reinstall-clt), and did this once, but it seems the latest Xcode update broke it again.
Can an alternative method be used to get the version of Xcode? This
https://stackoverflow.com/questions/33732042/check-xcode-version-from-command-line
says that
system_profiler SPDeveloperToolsDataType
can be used. It seems to provide appropriate output on my system (and has options for either xml or json output).
Change History (6)
comment:1 Changed 4 years ago by kencu (Ken)
Summary: | Use → Warning: cltversion: The Command Line Tools are installed, but MacPorts cannot determine the version. |
---|
comment:2 Changed 4 years ago by jmroot (Joshua Root)
comment:3 Changed 4 years ago by jmroot (Joshua Root)
Component: | base → ports |
---|
comment:4 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|
comment:5 Changed 3 years ago by Dave-Allured (Dave Allured)
Cc: | Dave-Allured added |
---|
Note: See
TracTickets for help on using
tickets.
Replying to philgp:
It's not the Xcode version that needs to be checked here (we already do that elsewhere with
xcodebuild -version
), but the Command Line Tools version. If you can find an easy way to check that, that would be great.However, the missing receipt still prevents Software Update from updating the CLTs, and using outdated CLTs has caused quite a few problems that resulted in tickets.