Xcode6 method of introducing third-party static library engineering

Source: Internet
Author: User

First, introduce the methods to introduce other dependent projects in the current project:

First: Add other project projects to existing engineering practices:

Defined:

Fpro Existing project = = parent Project

CPro Other works = = sub-project


1 Prepare the CPro as a static connection library, which can be passed when compiled separately;

2 drag cpro to Fpro ,

3 Add a static cpro to Target decpendency in the Build Parse of Fpro Dependency of the connection library;

4 in Fpro 's Build Parse , Link Binary ... Add static CPro to the connection library;

5 add cpro header file directory path to header Search path in Fpro's Build Setting;

6 Note that sometimes the *. m file is changed to *.mm file to prevent the Cpp file from being referenced;

7 Note whether enough system libraries have been added: for example:asihttp required:cfnetwork.framework mobilecoreservice.framework wait


Second, when the CPro is compiled for a static library, that is, CPro only contains *.h header files and lib*.a library, you need to modify the "first, 4 steps", as follows:

4 in Fpro 's Build Parse , Link Binary ... Add static CPro to the connection library, but must select the disk LIBCPRO.A, cannot choose the list of libcpro.a;

Xcode6 method of introducing third-party static library engineering

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.