Reproduced from: http://www.th7.cn/Program/IOS/201407/236852.shtml
The methods and steps to add the engineering owncloud IOS Library.xcodeproj to the engineering salesnote.xcodeproj are as follows:
1. Create a folder frameworks instead of a folder with the same name as the project, copy the folder occommunicationlib the owncloud IOS library.xcodeproj project to frameworks.
2. Drag and Drop Engineering documents owncloud IOS Library.xcodeproj to your project.
3. In your project, path:target--> build phases-> target dependencies, click ' + ' to add the file you want to add, as shown below:
4. In your project, path:target--> build phases-> Link binary with libraries, click ' + ' to add the file you want to add, as shown below:
5. In your project, path: Build Settings--> The other Linker Flag add tag "-OBJC"
6. In your project, add header file path, build settings--> header Search Paths
Note: a). The path inside the Header Search path should be the path to the folder where the new entries are added
Ex: "${srcroot}/salesnote/frameworks/occommunicationlib/occommunicationlib"/**
B. If the static library (. A) of the newly added project is red, it is not compiled and generated, as shown in the following figure: Device compilation
7. The project can be compiled.