iPhone Coding: Leopard-compatible Binary Toolchain Installer

Looking to compile software for the iPhone and iPod touch under Leopard? There are two approaches: You can download the latest toolchain svn from Google Code or you can use a legacy toolchain installer that just happens to work under Leopard.
Last night, Nicholas "Drudge" Penree pointed me towards a copy of Elliot Kroo's legacy 0.04 toolchain installer. This installer dates back to the "bad old days" of arm-apple-darwin-cc, before the better gcc version appeared. On the other hand, a working solution is a working solution so I'm not complaining.
After downloading, I mounted the disk image, ran the installer and then the "ooh shiny" program. To make this work, I had to install a copy of the iPhone disk as /usr/local/arm-apple-darwin/heavenly. There are various methods for getting a copy of your 1.1.1 disk floating around the net up to and including decrypting the install dmg from Apple. Google for details if you're unsure how to do this.
Next, since this is a VERY legacy install, I had to edit my .arm-cc-specs and fuss with them until they matched my system.
Finally, I grabbed a copy of my old libarmfp.dylib file and put everywhere I could think of until I got some existing projects to compile. I believe my final places to put it were /usr/local/arm-apple-darwin/heavenly/usr/lib/ and /usr/local/local.toolchain/heavenly/usr/lib but you'll have to hunt around on your own system to see where it fits. You'll be looking to put it in the same folder that has the working gcc_s_v6.1 library.
After this, I ended up with a working--albeit legacy--toolchain running under Leopard. I'll download and compile the new toolchain at some point but this gives me some much-appreciated breathing space before I need to do that.
Share
Looking to compile software for the iPhone and iPod touch under Leopard? There are two approaches: You can download the latest toolchain...
Add a Comment
Hi,
I have written a HOWTO for building a fully working 1.1.2 toolchain (or previous versions) under Leopard - get it at:
http://groups.google.com/group/jiggyapp-devel/web/iphone_leopard_toolchain_howto.rtf
It is a full step-by-step guide that includes downloading all the tools, firmware files, decryption utils, plus all the workarounds that fix the build process and the extra commands necessary to fix the holes in the documentation on other sites.
Hope it helps.
Cheers,
DamHack
Erica,
I got the new Toolchain working on my Leopard. There are two minor steps you have to preform to get it to build. It's working great for me. I can blow away my Tiger backup now.
odcctools Fix (comment 14)
http://code.google.com/p/iphone-dev/issues/detail?id=31
LLVM-GCC Fix (comment 8):
http://code.google.com/p/iphone-dev/issues/detail?id=92
It was my first migration of toolchains for iBlackjack, and I love it. Seems much snappier.
Hot Apps on TUAW
Deals of the Day
more deals- Verizon Leather Sleeve for Tablets for $4 + free shipping
- Wicked Jaw Breaker Noise-Isolating In-Ear Headphones for $6 + free shipping
- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



2 Comments