Installing the iPhone Developer Toolchain: A simple How-To

Yesterday, stepping into iPhone development got a lot easier. "Kroo", an iPhone developer, put together this Binary Toolchain Installer for Intel Macs. Instead of taking two days to download, debug and compile, installation takes a few minutes. Download a copy and install and you're set to start programming.
You'll need to copy your iPhone files to your Macintosh for the toolchain (and the toolchain installation) to work. You can either use a tool like scp -r and connect to your hacked iPhone or you can copy the file system from one of the iTunes restore software dmgs--google for details. Rename the root of the iPhone file system "heavenly" and place it into /usr/local/arm-apple-darwin. Then run the installer.
One more thing: All the makefiles I have posted here at TUAW use the old toolchain. To use my makefiles with this new toolchain, you'll need to update the Makefile header as such.
Looking for a little hand-holding? Head over to irc.osx86.hu and connect to #iphone-uikit.


![TUAW [Cafepress]](http://www.blogsmithmedia.com/www.tuaw.com/media/tuaw-cafepress-promo.png)


Reader Comments (Page 1 of 2)
Alex Polson said 3:03PM on 9-11-2007
Thanks Erica! Now I don't have any more excuses to not buy an iPhone. I can't wait to get developing.
Reply
spathiwa said 2:47PM on 9-11-2007
Thanks for putting this together, Kroo! I've been procrastinating installing the new tool chain and you just made it a whole lot easier. You rock.
Reply
Robert said 2:38PM on 9-11-2007
With the day job taking up way too much time, this is exactly what I need to get going... lookout SplashID! :-)
Reply
Christ G. said 2:46PM on 9-11-2007
Well, at least you posted the toolchain. I was about to delete this site from my RSS reader when I started to read the unintelligible "iPhone Coding" posts. It takes that extra bit of geek arrogance to assume that iPhone owners are all fluent in Objective-C. You guys ride the iPhone way too hard anyway. If you are going to continue posting to the 0.0001% of iPho'wners who code, perhaps you should start another site.
Reply
starlabs said 2:50PM on 9-11-2007
Actually I consider these posts very helpful. I'm considering developing for the iPhone myself... so Erica, keep it up! :)
Reply
Dave said 2:56PM on 9-11-2007
Gah! Just when I'd finished rebuilding the toolchain from svn, too. I noticed the new toolchain install docs on google code have a path to the 10.4u SDK in the config--does that mean it'll work under Leopard now? Any way to get this package working on Leopard?
Reply
Robert said 3:02PM on 9-11-2007
Chris G: I think not clicking the link would have taken less time and been a more effective use of your time.
Reply
james r said 3:22PM on 9-11-2007
Can anybody recommend where to post suggestions for iphone/ipod-touch apps. I think somebody is gonna need to put together an offline browsing app as soon as people figure out there's not nearly as many free wifi spots as they thought there was when they bought the touch. Also, what about a security app that phones home if your device gets stolen. Any suggestions, comments?
Reply
Sahil said 3:29PM on 9-11-2007
I've started using this site for my app endeavours... http://www.iphonedevdocs.com/index.php
So far it's really expansive and simply awesome!!!
Reply
Will said 3:58PM on 9-11-2007
Thank you. Thank you. Thank you. I've been waiting so long to get this thing working.
Reply
Rich S. said 4:40PM on 9-11-2007
Thanks - I was waiting for a post like this.
Now off to play with objC instead of doing actual work.
Reply
Tom said 10:09PM on 9-11-2007
PPC!
Reply
MobileGuy said 4:43PM on 9-11-2007
Christ G: "Well, at least you posted the toolchain. I was about to delete this site from my RSS reader"
Why don't you just take your crying somewhere else?
For those that are interested in this, it's postitively great news.
I don't think there is any geek arrogance going on, and if there is, who cares. Don't like it? leave. Geez.
Reply
Tankko said 5:05PM on 9-11-2007
>>You can either use a tool like scp -r and connect to your hacked iPhone...
Can you elaborate on this? Do you copy the *whole* file system, or just a certain part? Would you mind posting the exact scp command?
and when you say:
>>Rename the root of the iPhone file system "heavenly" and place it into /usr/local/arm-apple-darwin.
Does that mean the root of the iphone file system us placed in: /usr/local/arm-apple-darwin/heavenly
I know this seem obvious to some, but the exact commands will be very helpful.
Reply
Will said 7:50PM on 9-11-2007
Just google "iphone 38 DMG decrypt." I'm not sure how much I say on TUAW. Maybe I'm wrong, but some of the process my be illegal. I just give you a few hints. There's I file in nateture's called decrypt. Use that to decrypt the the restore file iTunes downloads when you need to restore. Rename it heavenly.dmg and put it in that directory.
Reply
Will said 7:52PM on 9-11-2007
Boy, that was horrible. I must have been drunk. Sorry. Hopefully you can gleam its meaning.
Reply
Dave said 8:30PM on 9-11-2007
Nope, neither seems to work under Leopard. Damn!
Reply
Fritz Laurel said 9:03PM on 9-11-2007
Hey Erica, maybe you could flag these as "iPhone Development" posts with its own category so non-developers can distinguish/sort regular iPhone posts from dev posts.
Personally, I like the dev posts. Keep 'em coming.
Cheers,
FL
Reply
tankko said 12:00AM on 9-12-2007
Will:
It seems that I can copy right off the iphone, so I would not need to do anything "fishy" with the .dmg file. Since I have rcp working off my iphone already, I'm just trying to find out the exact thing I need to copy off. Based on the post, I can only assume I am to copy the entire root directory, but that includes 8G of music and movies.
Reply
Troykapoika said 1:41AM on 9-12-2007
I would really like to have wget on the iPhone. Will this allow me to compile it?
Reply