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