iOS Development note--xcode implementation of multi-engineering series

Source: Internet
Author: User

One, multi-engineering to our project management benefits

Due to the company's business needs, our company in the development of a gradual birth of three apps. The problem is that there are a lot of functional code in three apps that are generic, which is a bit tricky for our team to manage code. If you use the traditional method to copy a code for each app project, this is also possible, but this is the problem is an app project inside the public code changes, you want to copy a copy to another project, do not have to cover some still not synchronized method. So I think three app projects can be a common reference to a static project? Don't say a word about it is my way to manage multiple project common code, share with you, hope to be useful to you.

Second, the new work area

Xcode-file-new-workpace This creates a new workspace, then creates a new static project Xcode-file-new-project and then selects the following options

The common static project for such a workspace was created as follows:

Create a new app project Xcode-file-new-project and select the following options

The common app project for such a workspace was created as follows:

Third, the configuration of static engineering

Due to the public static engineering, the natural compilation also needs to do some configuration, the configuration is as follows

Configuring the Compilation Directory

Then compile my directory structure as follows:

Here I explain: This products directory seems to represent the compilation directory, because we configured the compilation directory so it is consistent with the compiled directory

Finally configure the installation directory:

Configured to: $ (built_products_dir) This gets the compile directory

The best choice is to compile the static library project:

The best generated. A file directory

Iv. referencing static engineering in app projects

Link Static libraries:

To configure the header file lookup path:

Description: $ (srcroot) This gets the project root directory. /is the top level directory

To configure the query path for the library:

This way you can use the library in the app project.

Hope to be of help to everyone.

iOS Development note--xcode implementation of multi-engineering series

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.