Detailed tutorial on calling static Link Library in XCode

Source: Internet
Author: User

XCodeCallStatic Link LibraryThe tutorial is the content to be introduced in this article.Static Link LibraryIntroduced the project. The Objective-C experiment was successful !!

Create a Cocoa Touch Library Project, write the code operation file, and compile it.

A Client project will be created. This project is an app project, which can reference the library project just now and generate the library project. A is added to the link of the Target so that the static library can be referenced), and then enters "Get Info"-> "Generat". Associated dependencies can be cross-compiled in the project ), add the Header file address to Header Search.

In this way, you can use it.

In addition, after the SBJSON library completes the above operations, it also needs to modify "Other linker flags" to "-ObjC" and "-all_load" for me to find them for half a night. Now it is incoherent, fortunately, there is a specific article at the end of the article) First, Let's explain it through diagrams.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Summary: DetailsXCodeCallStatic Link LibraryI hope this article will help you with the introduction of this tutorial. There is a good introduction, which is very detailed:

Http://www.amateurinmotion.com/articles/2009/02/08/creating-a-static-library-for-iphone.html

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.