Opened 3 years ago

Last modified 3 years ago

#63961 assigned defect

MacVim: fails with "requires a full Xcode installation" although Xcode is installed

Reported by: davidfavor (David Favor) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: MacVim

Description

For example, 100s of ports build/install correctly.

A few fail.

Here's the 1x failure example...

imac> sudo port install MacVim
Error: Port MacVim requires a full Xcode installation, which was not found on your system.
Error: You can install Xcode from the Mac App Store or https://developer.apple.com/xcode/
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port MacVim failed

Be great if someone can let me know how to to fix this.

Thanks.

Change History (6)

comment:1 Changed 3 years ago by reneeotten (Renee Otten)

install Xcode as the error message tells you to do. Some/many ports will build fine with only the CommandLine tools installed, a few don’t and require a full Xcode installation (these typically have use_xcode yes in their Portfile.

comment:2 Changed 3 years ago by davidfavor (David Favor)

1) XCode has been installed, both XCode + command line tools.

2) 100s of ports install correctly, many of which run clang, so XCode is working.

3) Only a few ports fail with this message.

4) What I'm looking for is a fix for the few broken ports.

Note: If there are some xcode commands I can run to verify installation (maybe something's broken in Monterey), please post xcode installation verification commands.

comment:3 Changed 3 years ago by davidfavor (David Favor)

Command line tools path...

imac> xcode-select -p
/Library/Developer/CommandLineTools

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

Owner: set to raimue
Port: MacVim added
Status: newassigned
Summary: MacOS 12.0.1 - Some port installations fail with "requires a full Xcode installation, which was not found on your system"MacVim: fails with "requires a full Xcode installation" although Xcode is installed

Please attach the log. What output do you get from xcodebuild -version?

comment:5 Changed 3 years ago by sstallion (Steven Stallion)

I just stumbled on to this as well. The output of xcodebuild -version seems to be quiet indicative of what happened:

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

In my case, I was setting up a new laptop and installed command line tools before bothering to download the rest of Xcode. I'll post back if I can come up with a solution that doesn't involve a full reinstall.

Version 0, edited 3 years ago by sstallion (Steven Stallion) (next)

comment:6 Changed 3 years ago by sstallion (Steven Stallion)

It looks like switching back to Xcode clears this issue:

$ sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Once finished, MacVim installs as expected. It could be worth adding something to the error message along the lines of:

Error: Port MacVim requires a full Xcode installation, which should be installed using
Error: the Apple App Store. Once installed, the active developer directory should be
Error: set by issuing: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port MacVim failed
Note: See TracTickets for help on using tickets.