Sharing Compiled Code: Building Static Libraries in XCode for the iPhone

by Peter Cooper on December 3, 2008 · 1 comment

static-linking.png Due to the potential for abuse, dynamic libraries aren’t allowed to be used in iPhone applications that are to be sold on the iPhone App Store. The downside to this is that it makes it harder to share libraries that you develop with other developers without giving up the code.

It’s not impossible to share a binary of some of your code, however! iPhone Developer Brian Stormont has written a tutorial on building static libraries with the iPhone SDK. He had developed a streaming audio library that he was willing to share (without source) with a client and compiled it into a static library so that they could link it directly into their own app.

{ 1 comment… read it below or add one }

1

Jehiah 12.03.08 at 3:07 pm

There are also some great sqlite libraries for the iPhone out there, but they all seem to be distributed as source not as static libraries (the best of which IMHO is fmdb by gus mueller). It’s good to know though that libraries could be distributed either way.

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Older post: Price and Popularity: The iPhone App Store’s Data Show Who’s Making The Most Money

Newer post: CSSiPhone: Inspiration for your iPhone Web App Designs