September 2, 2018


After updating to Mojave, terminal cannot locate /System/Library/Frameworks. When I want to compile an objective-c file which imports CoreFoundation or other frameworks, using the command:

clang -framework CoreFoundation test.m -o test

It prompted the error:

fatal error

<CoreFoundation/CoreFoundation.h> not found



tap brew doctor  on terminal. It suggests run a Mac prefix installer  which  is located on


or try:

xcode-select –install

to update CommandLineTools.


Contributed by Shark

Leave a Reply

Your email address will not be published. Required fields are marked *