Automatically detect macOS SDK path
jacob-carlborg opened this issue · 1 comments
jacob-carlborg commented
Currently DStep assumes that header files are available in /usr/include
or any of the other standard Unix paths. By default Xcode will not install anything in those path, instead the SDK path can be obtained using xcrun --show-sdk-path
.
Robert-M-Muench commented
Which gives something like:
| => xcrun --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
and from there one can find .../usr/include