create / update a symbolic link for /usr/include to detect files:
sudo ln -sf /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include /usr/include
The specified path can be found by searching stdio.h
find /Applications/Xcode.app -path '*/usr/include/stdio.h'
I need to do this with every Xcode / MacOS SDK update, today it happened with the Xcode 7 update.
After installing the command line tools, they cannot be reinstalled using xcode-select , so the path may not be updated when updating the Mac App Store.
Uninstalling and reinstalling xcode-select --install and then running xcode-select --install may update the path, but this is overkill.
Some posts also mention xcode-select --switch /Application/Xcode.app , but I'm out of luck with it.
Tarun
source share