Shark Deng

Interactive Designer @Shanju Design in Shanghai

touched caffe / mxnet / python / wordpress / bootstrap / Arduino / Raspberry Pi / webgl / three.js / PIXI / 3dMax

Email

Github

Mojave: CoreFoundation.h not found

2019-11-14 03:59:54

Problem: 

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

 

Solution:

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

/Library/Developer/CommandLineTools

or try:

xcode-select –install

to update CommandLineTools.

 



——By SharkDeng
如果你喜欢我的文章,欢迎红包赞赏

Leave a Reply

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