10

XCode templates for iPhone static libraries with unit testing

April 9th, 2009 / in IPhone / by keremk

Tags: , , , , , ,

Currently the only way to create re-usable code amongst different projects for the iPhone platform is to create static libraries. 3rd party frameworks (as in Mac OS X) are not supported in the iPhone SDK. Also setting up unit testing, which is a crucial part of building re-usable libraries of course, is not that trivial.

To help building static libraries for the iPhone, I decided to create a project template and file template. The project template includes 2 targets. One is the actual static library itself and the other is a unit test target. The file template simplifies creating unit test classes, by including the necessary header files and boiler plate code. I have included the Google Toolbox for Mac’s iPhone unit testing facilities and the OCMock framework in these templates.

The source code for the templates are checked into my github repository. You can take a look at the instructions to install and use them over there. Continue Reading »

33

Useful open source libraries for IPhone Development

December 21st, 2008 / in IPhone / by keremk

Tags: , , , , , , , , , , , , ,

It’s been almost 3 months since the IPhone SDK’s infamous NDA restrictions were lifted, and there are now a good set of open source libraries available for the IPhone. In this post I will go through the ones that I know of one way or another. If you are aware of more high quality open source projects, please let me know in the comments so that I can update this post. Continue Reading »