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