1. Path of the header file under the foundation framework in xcode:
Nsobjcruntime. h path:/applications/xcode. APP/contents/developer/platforms/iphoneos. platform/developer/sdks/iphoneos. SDK/system/library/frameworks/Foundation. framework/Headers
2. Path of the header file in the include folder in xcode:
Path of stdio. h under include:
Include path in xcode on Mac
/Applications/xcode. APP/contents/developer/platforms/iphoneos. Platform/developer/sdks/iphoneos5.1.sdk/usr/include
3. Check the header file under include in Mac. You can query the file under usr/include in the root directory;
You need to open a hidden system file before querying. Enter a command on the terminal to open the system hidden file:
Defaults write com. Apple. Finder appleshowallfiles Yes
If you disable system hidden files:
Defaults write com. Apple. Finder appleshowallfiles No
4. If there is no include in usr/Under the root directory of Mac, it may be the following:
Problem: After the Mac is upgraded to Yosemite, it suddenly finds that the prompt of the youcompleteme check code of VIM is poor. After troubleshooting, it turns out that the/usr/include folder is missing and all
The header file of C/C ++ is missing. The first time I found this problem, I don't know if/usr/include will be deleted for every Mac upgrade, or if I only delete it when it is incompatible. It's strange.
Solution: on Mac, there is xcode-select, a tool dedicated to the development environment management. You can use it to download the command line development tool (including GCC) and run xcode-select -- install on the terminal.
The command will download and install the command line development tool, and then/usr/include will appear. This tool can also be used to manage multiple xcode versions. For more information, see man xcode-select.
# Search for the header file of include <stdio. h> # search for the import <Foundation/nsobjcruntime. h> file in xcode-City