Opened 3 years ago

Closed 3 years ago

#63720 closed defect (invalid)

MacPorts fails to realize macOS 12 SDK is already installed

Reported by: petertorelli (Peter Torelli) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: sdk12 monterey Cc:
Port:

Description

I updated my OS to Monterey, Xcode to 13.1 and downloaded the latest MacPorts (2.7.1) from the link on this site.

Following the migration steps on this site I encouter the following error (I replaced the batch re-install command with just a single request to install autoconf).

% sudo port install autoconf
Warning: The macOS 12 SDK does not appear to be installed. Ports may not build correctly.
Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.
% xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
% xcodebuild -showsdks
DriverKit SDKs:
	DriverKit 21.0.1              	-sdk driverkit21.0.1

iOS SDKs:
	iOS 15.0                      	-sdk iphoneos15.0

iOS Simulator SDKs:
	Simulator - iOS 15.0          	-sdk iphonesimulator15.0

macOS SDKs:
	macOS 12.0                    	-sdk macosx12.0

tvOS SDKs:
	tvOS 15.0                     	-sdk appletvos15.0

tvOS Simulator SDKs:
	Simulator - tvOS 15.0         	-sdk appletvsimulator15.0

watchOS SDKs:
	watchOS 8.0                   	-sdk watchos8.0

watchOS Simulator SDKs:
	Simulator - watchOS 8.0       	-sdk watchsimulator8.0

Change History (3)

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

Can you confirm that /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk actually exists? If it does not, please see ProblemHotlist#reinstall-clt.

comment:2 Changed 3 years ago by petertorelli (Peter Torelli)

Thank you Joshua. That fixed it. I thought I had done everything required.

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

Resolution: invalid
Status: newclosed

Yes, it's unfortunate that Apple has still not fixed that bug.

Note: See TracTickets for help on using tickets.