# Search for the header file of include <stdio. h> # search for the import <Foundation/nsobjcruntime. h> file in xcode-City

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.