Automatic Filling of header files

Source: Internet
Author: User
Cocoapods has been used for some time to manage the objective-C class library, which is quite convenient. However, there is a small problem. When I input the import keyword in xcode, there is no function to automatically associate the code, and I need to manually complete the file name, which is hard to adapt.

The solution is found on stackoverflow:

Go to the target> \ "build Settings \" tab and find the \ "user header search paths \" setting.

Set this to \ "$ (built_products_dir) \" and check the \ "recursive \" check box.

Now the built target will search the workspace's shared build directory to locate the linkable header files.

Simply put, there are several steps:

  • Select target-> build settings, and find the \ "user header search paths \" setting item.
  • Add a value "$ {srcroot}" and select \ "recursive \". In this way, xcode recursively searches for files in the project directory.

The auto-completion function is ready for use immediately.

Automatic Filling of header files

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.