Project compile link with using Cocoapods

Source: Internet
Author: User

1. In project that uses Cocoapods, the entire compilation link process is roughly: compile each third-party library chain to deliver the. a file, and then pods rely on each third-party library compilation link to generate the. A file compilation link to the LIBPODS.A Static library, Finally, project relies on the LIBPODS.A compilation chain to deliver the executable program.

2.pods generated. A static library will be added to the project's frameworks, there will be a project link problem: Project is compiled on the basis of the LIBPODS.A library linked but the error link can not find the third-party library in the. m file??

The reason is: the LIBPODS.A static library in the frameworks inside the 1.project may not be generated by compiling the link under the current device (real machine or simulator), but project does not make a judgment on the link libpods.a. Causes a class file in a third-party library to be found after a third-party library has been compiled to generate. A files (normally,. m files in a third-party library are compiled to generate. A files, and project is not required to compile the. m file).

Workaround: Build active architecture, build setting, targets, project and pods, Goto, will select NO. (Not only the compilation link is delivered to the current frame of the project)

Project compile link with using Cocoapods

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.