Regarding the use of cocoaPods, the third-party library header file during import does not prompt a solution to the problem. cocoapodsimport

Source: Internet
Author: User

Regarding the use of cocoaPods, the third-party library header file during import does not prompt a solution to the problem. cocoapodsimport

It is estimated that many users use cocoaPods when using Xcode to import third-party libraries in the project. However, when using this third-party library to import header files in the project, after entering # import, does not associate the header file of a third-party library (XXXX. h), which requires manual input. You can follow the steps below to solve this problem:

1. select target (your project target on the left) -- BuildSettings -- User Header search Paths (:)

2. Double-click the blank area following it :(:)

3. the following figure is displayed, and click "+" to add one, and enter "$ (PODS_ROOT)" (no quotation marks). Select: recursive (files will be searched recursively in the corresponding directory ):

In this way, the project can be automatically associated when a third-party library header file is added. There is no test in the swift project, and it is estimated that it can also be implemented.

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.