How to begin programming for the iPhone OS

August 9, 2009 by Skylar
Filed under: iPhone Development 

The following is a work in progress. If there is anything that is unclear, or that I am missing; or if there is anything that I am just plain wrong about, please let me know in the comments. Thanks!

Programming for the iPhone or the iPod touch.  It’s one of those topics that interest many of you out there.  But for many, the topic is just too shrouded in mystery.  There just isn’t a whole lot of documentation on what you will need to get started.  I’m going to attempt to fill in some gaps and try to help you all understand.

What you’ll need:

  • First of all, you’ll need a computer*. An Intel Macintosh computer running OS X (>10.5) is highly recommended. Using any other platform will require more work on your end.
  • An iPhone OS compiler.
    • For most people, this will be the actual iPhone SDK, which can be downloaded directly from Apple’s iPhone developer site.Note however, that this SDK can only be used on Intel based Macintosh computers running OS X (>10.5).
    • If you are running a Linux system, you will need to build the toolchain yourself. The toolchain is a collection of tools, compilers, and linkers that will build and link iPhone applications. Jay Freeman (saurik) has written up a guide for building the toolchain for the iPhone OS 2.x environment.
    • If you are on a Windows machine, you will need to first obtain and install Cygwin, which can be downloaded here: www.cygwin.com. Instructions for setting up Cygwin and a list of required binaries can found at modmyi.com/wiki
    • If you are using your phone as a build platform, then you can follow WiFone’s instructions over at pimpmiphone.info

Once you have the above two set up and ready to go, you will be all set to get up and program.

Some resources you may wish to obtain:

And finally, here are some links to a simple project designed to get you familiar with working with Xcode and Interface Builder (only for the Macintosh):
Getting to Know Xcode/Interface Builder Parts I and II, part III

Comments

One Comment on How to begin programming for the iPhone OS

  1. James on Mon, 10th Aug 2009 2:27 am
  2. Thanks for this, ill have look at the resources you included and try out the projects :)

Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!





Powered by WP Hashcash