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