Create iPhone Library / Infrastructure

Are there any tutorials that describe how to create a library or is it an iPhone framework? I have several methods that are shared between applications. They will be better maintained as a library.

+6
iphone cocoa-touch cocoa
source share
3 answers

There is a lot of information on the Internet that can help with this, like this .

+2
source share

Put your code in a static library (as Roger pointed out from his link). However, consider using the Xcode cross-project link to β€œimport” this static library into all other projects that need it. I posted a tutorial explaining how to do this (and why I think this is better than creating a "bold" universal binary): http://www.clintharris.net/2009/iphone-app-shared-libraries/

+3
source share

A newer (and more powerful) way to make a "single library file that covers both the simulator and the device":

Build a live static library (device + simulator) with Xcode and SDK 4+

(I wrote one of the posts mentioned in the accepted answer, which was valid for Xcode3 at the time, but Apple intentionally broke it with later versions and did not offer an alternative. So, we ended up with the SO / answer question above)

0
source share

All Articles