iOS development adds a project to another project

Source: Internet
Author: User
Tags owncloud

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.

Related Article

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.