Problems with not finding Framework header files on Mojave 10.14.6

Ryan Schmidt ryandesign at macports.org
Sat Feb 22 16:53:22 UTC 2020



On Feb 22, 2020, at 03:29, Greg Earle wrote:

> --
> Force re-install the header files:
> 
> $ sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
> --
> 
> Neither my work dev system or my work desktop system (both Mojave) had the headers installed under /System/Library/Frameworks like they were supposed to be.  I guess the Command Line Tools installer didn't put them there.  No idea why not.

That pkg installs the headers in /usr/include. In macOS 10.13, the command line tools installed the headers in /usr/include automatically. In 10.14 and later, they do not, and installing them is deprecated. MacPorts should work on 10.14 and later without the headers in /usr/include. You should not have needed to install them. Installing them may have bypassed the warning you saw, but that only masks whatever the real problem was (e.g. perhaps the MacOSX10.14.sdk not existing in your Xcode application bundle).



More information about the macports-users mailing list