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: UseWarning: cltversion: The Command Line Tools are installed, but MacPorts cannot determine the version.

comment:2 in reply to:  description Changed 4 years ago by jmroot (Joshua Root)

Replying to philgp:

Can an alternative method be used to get the version of Xcode?

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.

comment:3 Changed 4 years ago by jmroot (Joshua Root)

Component: baseports

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

comment:6 Changed 3 years ago by barracuda156

I am getting this problem on Catalina.

Note: See TracTickets for help on using tickets.