port diagnose and xcode
James Secan
james.secan at gmail.com
Sun Mar 13 17:41:03 UTC 2022
I do have the full Xcode package installed (8.2.1) on the El Capitan system, although I have it as an alias in the Applications directory (on a smallish SSD) linking to the actual Xcode files on an internal HD because it requires a lot of disk real estate and I never use Xcode. Would that confuse port diagnose? (I just checked, and if I click on the Xcode alias it works just as one would expect, so the alias linkage is OK.)
Jim
3222 NE 89th St
Seattle, WA 98115
(206) 430-0109
> On Mar 12, 2022, at 6:42 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
>
> On Mar 10, 2022, at 18:40, James Secan wrote:
>
>> In working my way through my recent “phantom ports” issue I ran the command “port diagnose” and was more than a bit surprised by the output line:
>>
>> Error: currently installed version of Xcode, none, is not supported by MacPorts.
>>
>> followed by a list of the version supported under my version of macOS (El Capitan, in this case). Where is port getting this information? I have Xcode 8.2.0 installed, and none of my attempts to install ports have run into any trouble related to Xcode not being installed. I ran "pkgutil -v --pkg-info=com.apple.pkg.CLTools_Executables” which shows that I have 8.2.0 installed, and the appropriate MacOSX.sdk files are in /Library/Developer/CommandLineTools/SDKs. I also tried this on my test Catalina system, with the same result.
>>
>> Is something wrong with my ports setup?
>
>
> Both com.apple.pkg.CLTools_Executables and /Library/Developer/CommandLineTools/SDKs are related to the Xcode command line tools, which are separate from Xcode. So I guess you have the Xcode command line tools installed but do not have Xcode installed. For many ports, this is fine. For those where it is not, they should tell you to install Xcode.
>
More information about the macports-users
mailing list