Toolchain is the name of the compiler used for all the apps you see today for the iPhone. Historically, it has been very difficult to setup and get working often requiring several days of work. iPhone developer Saurik has created a version of the toolchain that runs directly on the iPhone. I have taken his toolchain which consists of his ported GCC and odcctools, and added my headers from the Cygwin toolchain that I use to compile my apps. Together, this brings you a one-click compilation environment that runs directly from the iPhone!
Here are the steps to install and start compiling your apps:
1) Install Cydia
2) Install “iPhone 1.1.1 Headers”
3) Copy your apps source code to /tmp or such with ssh and type “make”.
Works for all apps for 1.0.2 - 1.1.4. Will be updated for 2.0 after July 11th.
Here is a sample makefile (this is for BossTool obviously).
Enjoy!
Note: there are no Apple SDK headers present in any of these packages.
1. knight12 June 29th, 2008, 10:58 pm
Is it possible with this, to make an app that will change the snooze time ???? Like, 9 minutes is not always good for snooze !
[Reply]
2. BigBoss June 29th, 2008, 11:08 pm
Sure. This is the same as what everyone is using for all the apps today.
[Reply]
3. mo2abo2a July 4th, 2008, 1:27 am
thank you
[Reply]
4. alice_anto July 26th, 2008, 7:12 am
Hi BigBoss,
is this ‘one click toolchain’ full work on 2.0 jailbrak ?? i have installed it from cydia but when try to comiple i got many errors about duplicate definition…
Is possible to have a little (helloworld or similar) complete project (source and makefile) to check my installation ??
thanks a lot
[Reply]
BigBoss Reply:
July 26th, 2008 at 7:15 am
It is ok if you get those linker errors from Foundation and CoreFoundation conflicting as long as it compiles for you anyway.
[Reply]
alice_anto Reply:
July 26th, 2008 at 1:02 pm
Hi,
just another question: i dont find the ABAddressBook.h on my iphone, where can i find it ??
thanks
[Reply]
5. alice_anto July 26th, 2008, 9:40 am
Great, its work, i had never try to launch seeing the warning
Great work BigBoss, thanks for all
[Reply]
6. Josen August 4th, 2008, 11:32 am
Hi bigboss,
I use the toolchain on my iPhone OS 2.0. Could i need to copy the old header files into iPhone? or i need to copy the new SDK’s header files into iPhone? I try to make my demo and there are so many errors. Could you please have a little sample code and makefile for iPhone OS 2.0?
Thanks very much!
[Reply]