Doug Daniels Dev Blog ramblings from another game developer

3May/090

Building iPhone XCode Projects with Maven 2 and Hudson

I'm a Java developer who recently began doing some iphone development, and was pleasantly surprised to find out that Apple's XCode supports a command-line build tool called xcodebuild. xcodebuild will compile, run unit tests, sign and package your iphone or Mac OS X application with one simple execution of:

xcodebuild -alltargets

This can be easily integrated into an ANT build.xml script which allows to to then integrate into a Maven pom.xml which will allow you to manage your entire project from generating documentation and project website documents as well as publishing your application's build artifacts to release servers.

I setup a SVN + Apache server on one of my mac minis using Macports following these instructions.

http://www.sonzea.com/articles/subversion-trac.html

sudo /opt/local/apache2/bin/apachectl -k restart

Then I setup Nexus a local maven respository for deploying applications and managing third-party repositories and releases and Hudson a continuous integration server as a Mac OS X server daemon through launchd configuration.

The result is a nice development pipeline that blends well with my Java development experience and when I start developing more advanced applications I'll be be able to manage the build of Java servers and clients (Google's Android clients) as well as iphone (XCode objective-c projects).

In summary I setup the following development processes:

Next steps...

  • Continue research into high performance networking with a lean towards Java and iPhone
  • Apache MINA - High performance Java networking library
  • Apache Thrift - Facebook framework for creating language independent network protocols includes RPC client/server for a bunch of programming languages
  • Google's protobuf - Google framework for
  • Project Darkstar (and Dimdwarf))
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.