[MacPorts] #61741: Warning: cltversion: The Command Line Tools are installed, but MacPorts cannot determine the version.

MacPorts noreply at macports.org
Sat Dec 5 01:39:26 UTC 2020


#61741: Warning: cltversion: The Command Line Tools are installed, but MacPorts
cannot determine the version.
---------------------+--------------------
  Reporter:  philgp  |      Owner:  (none)
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:          |
---------------------+--------------------
Description changed by ryandesign:

Old description:

> 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
> (https://trac.macports.org/wiki/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).

New description:

 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).

--

-- 
Ticket URL: <https://trac.macports.org/ticket/61741#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list