3

Xcode seems to not be able to find the header files on /usr/local/include by default: file not found error.

I know it can be fixed by adding the path in the target -> Build Settings -> Header Search Paths: workaround.

Is it possible to let Xcode treat /usr/local/include as a system header search path? So it can find the headers without adding them to: target -> Build Settings -> Header Search Paths.

  • What does `clang++ -E -v -x c++ /dev/null` show, from Terminal.app? You should have `/usr/local/include` already in your include search path. – Eljay Feb 19 '20 at 20:53
  • 1
    #include <...> search starts here: /usr/local/include. It does show in clang's search list but Xcode seems to fail looking for the folder anyway. – Marcos López Lamas Feb 20 '20 at 13:29
  • XCode 12.0.5 and i can confirm that /usr/local/include is listed with the above clang++ command line but it does not use it – Lothar Aug 03 '21 at 01:13

0 Answers0