PDA

View Full Version : Static Libraries...




ranguvar
Aug 10, 2010, 10:44 AM
Hi,

I'd like to "out-source" parts of my project into a Cocoa Touch Static Library that makes it easy to reuse in other projects. The default Xcode Cocoa Touch Static Library template isn't very useful to me because there's no simple way to create a sample app that I can test the library with.

Is there some way to have a normal iPhone application project and somehow add a Cocoa Touch Static Library target to it, so that each time I build my app, the library gets built as well. It would be cool if I could have a separate Xcode project for the library, though.

Thanks for any help!
-- ranguvar


EDIT: Found this (http://www.clintharris.net/2009/iphone-app-shared-libraries/) blog entry. Sounds pretty much like what I want to do.



Luke Redpath
Aug 10, 2010, 11:06 AM
Did you consider Google?

http://blog.stormyprods.com/2008/11/using-static-libraries-with-iphone-sdk.html
http://www.amateurinmotion.com/articles/2009/02/08/creating-a-static-library-for-iphone.html

http://www.google.com/search?client=safari&rls=en&q=iphone+static+library&ie=UTF-8&oe=UTF-8