![]() $ ls -l /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdkĬreate symlink to 10.14 SDK within the main Xcode SDK directory: Here's the path to 10.14 SDK in the command line SDK: I encountered similar error with MacOS10.14 SDK not found from Xcode command line tools, as the main Xcode build had already been updated to 10.15. Meanwhile, on the dev Mac with the 10.14 SDK in both places:ĭevmac:~ root# ls -d /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdkĭevmac:~ root# ls -d /Applications/Xcode.app/Contents/Developer/Platforms/atform/Developer/SDKs/MacOSX10.14.sdk The SDK is right there in the path " Joshua Root" claims it is looked for in, yet xcrun doesn't find it. Mymac:/ root# ls -d /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk Mymac:/ root# xcrun -sdk macosx10.14 -show-sdk-path Mymac:/ root# xcrun -sdk macosx10.15 -show-sdk-path It looks to me like this statement (by " Joshua Root") is incorrect: If the SDK isn't found, it prints the warning. MacPorts looks for MacOSX10.14.sdk in /Library/Developer/CommandLineTools/SDKs, and if it's not there it looks in /Applications/Xcode.app/Contents/Developer/Platforms/atform/Developer/SDKs, and if it's not there it asks xcrun to find it by running xcrun -sdk macosx10.14 -show-sdk-path. Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk Applications/Xcode.app/Contents/Developer/Platforms/atform/Developer/SDKs/MacOSX10.15.sdk (Even though the SDK installed by the Command Line Tools installer is still the version for Mojave.) I think it might be complaining because I have Xcode 11.3.1 on this system, and it installed a Catalina SDK in the Xcode tree instead of a Mojave one. Warnings on this system, even after having done that. This worked, and I was able to install ports like mercurial that previously errored on 10.14.6 due to missing header files. $ sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / Applications/Xcode.app/Contents/Developer/Platforms/atform/Developer/SDKs/MacOSX10.14.sdk Xcode-select: error: command line tools are already installed, use "Software Update" to install updatesĭevmac:~ root# xcrun -sdk macosx10.14 -show-sdk-path Lrwxr-xr-x 1 root wheel 10B Nov 1 18:56 -> MacOSX.sdk Lrwxr-xr-x 1 root wheel 10B Nov 1 18:49 -> MacOSX.sdk I have Xcode installed and the command-line tools and xcrun -sdk macosx10.14 -show-sdk-path finds the SDK in both places mentioned by "Joshua Root":ĭevmac:~ root# ls -ldhF `locate MacOSX10.14` > Attempting to fetch mercurial-5.3_1.darwin_18.x86_64.tbz2 from Įrror: Failed to build mercurial: command execution failedĮrror: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_macports_release_tarballs_ports_devel_mercurial/mercurial/main.log for details.Įrror: Processing of port mercurial failed Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select -install'. Warning: The macOS 10.14 SDK does not appear to be installed. I doubt I did anything wrong when it comes to Xcode installation, yet I am in the same boat. I have two Macs running Mojave 10.14.6 that have this same exact problem. ![]() The responses in this ticket all seem to come from an attitude of "User error", as if the OP has done something wrong. Shows the problem is still there, and impeds me to upgrade any ports. Xcrun: error: unable to lookup item 'Path' in SDK 'macosx10.14' Xcodebuild: error: SDK "macosx10.14" cannot be located. caux% xcrun -sdk macosx10.14 -show-sdk-path Up to there, I didn't get any error message. caux% sudo ln -s /Library/Developer/SavedSDKS/MacOSX10.14.sdk /Applications/Xcode.app/Contents/Developer/Platforms/atform/Developer/SDKs/MacOSX10.14.sdk ![]() caux% sudo ln -s /Library/Developer/SavedSDKS/MacOSX10.14.sdk /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk Xcode-select: note: install requested for command line developer tools caux% sudo rm -rf /Library/Developer/CommandLineTools caux% sudo mv /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk /Library/Developer/SavedSDKS/MacOSX10.14.sdk Caux% sudo mkdir /Library/Developer/SavedSDKS
0 Comments
Leave a Reply. |