/usr/include missing on macOS Catalina (with Xcode 11)

by mkl   Last Updated October 09, 2019 13:12 PM - source

Follow up to the same problem on Mojave.

After upgrading to macOS Catalina, none of the C headers can be found in /usr/include. The reason for this may be found in the Xcode 10 release notes (previous version):

The Command Line Tools package installs the macOS system headers inside the macOS SDK. Software that compiles with the installed tools will search for headers within the macOS SDK provided by either Xcode at:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk

or the Command Line Tools at:

/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk

[...] As a workaround, an extra package is provided which will install the headers to the base system. In a future release, this package will no longer be provided. [...]

(See the link to the question above for details on this suggested workaround.)

Apparently Apple made good on their threat with Xcode 11. How can one install the C headers to /usr/include on macOS Catalina using Xcode 11?



Related Questions


Samsung SSD with Catalina or Mojave

Updated October 05, 2019 10:12 AM

Xcode cannot run using the selected device?

Updated April 12, 2015 00:05 AM

Xcode 7 develop for iOS without developer account

Updated July 05, 2016 08:05 AM