|
@@ -41,7 +41,7 @@ Now build and run - e.g. by pressing Cmd-r - or click on the triangle at the top
|
|
|
|
|
|

|
|
|
|
|
|
-If Xcode complains about missing header files (different mac versions may or may not install all headers),
|
|
|
+If you're on MacOS Mojave and Xcode complains about missing header files (different mac versions may or may not install all headers),
|
|
|
you can force-install them with the following command:
|
|
|
|
|
|
```bash
|
|
@@ -53,3 +53,12 @@ If you get an error about that file not existing, you probably simply don't have
|
|
|
```bash
|
|
|
$ xcode-select --install
|
|
|
```
|
|
|
+
|
|
|
+On MacOS Catalina the include paths changed, `/usr/include` doesn't exist anymore.
|
|
|
+You'll need to manually set the `CPATH` variable to specify the location of the header files:
|
|
|
+
|
|
|
+```
|
|
|
+export CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
|
|
|
+```
|
|
|
+Note: the default terminal switched to zsh on MacOS Catalina. All your exported variables have to move to ~/.zshrc
|
|
|
+
|