Xcode how to introduce another engineering and related error solution in your own project

Source: Internet
Author: User
have been summarizing the development framework of iOS these days, want to build a set of omnipotent development template, this time will inevitably use some useful things in the previous project, so want to introduce another project in their own projects, through groping, finally found a routine, the following experience to share with you, and very much rewrite the author of this article, Gave me a lot of help: http://m.blog.csdn.net/blog/yhc13429826359/38333821 at this time you must have two projects, one is their own project (the first name is text**),       Another project to be introduced (the name of this article is syco**). The first step: Copy your syco** Engineering folder to the engineering root of text**, as shown below:


Step two: Open your own project text**, you can build a folder, then AddFile Select the project file just copied in, and then click Add


Step three: You will see that the project you have just chosen has been added in.

Fourth: This time you will find that in syco** make any changes, no impact on the text**, there are errors, run text** will not complain, because this syco** and text** has not been associated. So how to relate it. Click on Engineering documents in Xcode, targets->build phases->link Binary with libraries Click on the lower left corner +, add libsyco**.a file, so two works can be compiled together.


The fifth step: although can compile, but in text** introduce syco** in the header file or error, said is to find the end file, this is because the header file search path without adding syco** path, in Targets->builde settings-> Search Paths->header Search Paths add syco** corresponding directory "$ (srcroot)/syco**/syco**" will not be an error, but Xcode for the syco** of the class is not automatically prompted, I haven't found the reason yet.


The sixth step: if you add a few new files in syco**, sometimes the error, you need to do some action. Under build phases for the newly added project, open copy Files and click the "+" number in the lower left corner and enter ". h" in the pop-up box. You will see all header files that are not joined to the include file, and then select Add. If you refer to another diagram directly,

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.