PDA

View Full Version : [iPhone SDK] XCode 3.1 for 1.1.4


trumi
03-16-2008, 02:24 AM
Is there an easy way to use the tools of XCode 3.1 and the iPhone SDK with the includes and libraries from the 1.1.4 firmware?

I've developed an app with the SDK and would like to run it on my 1.1.4 iPhone.

grabberslasher
03-16-2008, 11:56 PM
Is there an easy way to use the tools of XCode 3.1 and the iPhone SDK with the includes and libraries from the 1.1.4 firmware?

I've developed an app with the SDK and would like to run it on my 1.1.4 iPhone.

It is possible to manually create yourself a new Platform for use in Xcode for 1.1.4. I did this myself, populating it with my custom toolchain I use for iPhone development and tweaked the configuration settings and project templates to compile code that will work on 1.1.4.

I'm not going to provide any guidance as to how to do this, because if you're seriously developing applications for iPhone you should be able to manage it on your own (and plus, I can't even remember all the steps I took).

Once complete, however, it works perfectly in Xcode and is as simple to use as the Aspen compiler.

http://img266.imageshack.us/img266/3199/sdkhk6.jpg (http://img266.imageshack.us/my.php?image=sdkhk6.jpg)

http://img155.imageshack.us/img155/3166/fslc3.jpg (http://img155.imageshack.us/my.php?image=fslc3.jpg)

trumi
03-17-2008, 10:15 AM
Maybe you could give me some hints what you did (as far as you remember :)).

So let me ask some Questions:

Do you really use 1.1.4? Where did you get the header files for 1.1.4?

Is the LittleBear1.1.4.sdk just the file system of the iPhone?

Can you please show the subtree of this directory or send it to me (at least the header files)? I've also tried to use class-dump, but I'm not shure if it really worked, because If I try to make the tool chain it fails in the last make (as for many others).

Have you tried to use the compiler delivered with XCode 3.1? Wouldn't this make the other tool chain obsolete?

many thanks
trumi

grabberslasher
03-17-2008, 02:26 PM
Maybe you could give me some hints what you did (as far as you remember :)).

So let me ask some Questions:

Do you really use 1.1.4? Where did you get the header files for 1.1.4?

Is the LittleBear1.1.4.sdk just the file system of the iPhone?

Can you please show the subtree of this directory or send it to me (at least the header files)? I've also tried to use class-dump, but I'm not shure if it really worked, because If I try to make the tool chain it fails in the last make (as for many others).

Have you tried to use the compiler delivered with XCode 3.1? Wouldn't this make the other tool chain obsolete?

many thanks
trumi
I just used the Header files from the standard toolchain, nothing special. I basically took my entire /usr/local tree and moved it to /Developer/Platforms/LittleBear1.1.4.sdk/Developer/usr

The hard bit is going through the GCC.xcspec etc and tweaking it to work right.

Yes the LittleBear1.1.4.sdk is the filesystem of the iPhone.

trumi
03-17-2008, 03:45 PM
I just used the Header files from the standard toolchain, nothing special. I basically took my entire /usr/local tree and moved it to /Developer/Platforms/LittleBear1.1.4.sdk/Developer/usr


But the headers of the tool chain do not include all of the UIKit classes of 1.1.4 e.g. UIViewController. It is included in 1.1.4 (and I think in 1.1.3) but not in 1.1.2 and prior.

Darkmen
03-21-2008, 10:33 AM
HI
Can u post your GCC.xcspec here?

Darkmen
03-21-2008, 12:14 PM
OK forget it
solved

PmgR
03-21-2008, 09:16 PM
Darkmen, can you post details on what you did exactly.

PmgR

Darkmen
03-22-2008, 09:26 PM
BTW
I can use apple gcc compiler instead of dev-team's toolchain (for 1.1.4 framework)
Its more stable

Darkmen
03-22-2008, 11:25 PM
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5470) (Aspen 5470.3)
Copyright (C) 2005 Free Software Foundation, Inc.

And this is much better. Toolchain generates only ARM code and original SDK's gcc can do THUMB (wich is works faster)

http://img399.imageshack.us/img399/6825/sdk0eu9.png (http://imageshack.us)

http://img291.imageshack.us/img291/7313/sdk1vk6.png (http://imageshack.us)

Tested offcourse:)

jeanmaikel
03-23-2008, 07:46 PM
HI,
I have have done what u suggested ie duplicating the aspen platform as toolchain
and replacing the frameworks with the 1.14 , it was possible to switch platforms
for devices but could not get it working with header link problem (tried to put a header link in each framework) and also after several switches from 1.2 to 1.1.4 I could not get armV6 back , have to reinstall sdk
So what did u more precisely ?
Is it also possible to get the simulator working for "<1.2 coding"?
Thanks

PmgR
03-24-2008, 10:33 PM
Drakmen,

Yes, please post detailed instructions how you got this to work for compililng 1.1.4 aps. It will be usefule to a lot of us.

PmgR

Darkmen
03-25-2008, 06:26 PM
Almost finished complete installation script
With SDK mod, GCC config and set of project templates with on-device execution after build.

Stay in touch

iPhoneFrank
03-25-2008, 08:43 PM
Almost finished complete installation script
With SDK mod, GCC config and set of project templates with on-device execution after build.

Stay in touch

Very interesting. Please keep us informed.

bigcheese
03-25-2008, 10:27 PM
*sign*
very interesting :)
i am looking forward for the installation script :)

iTarek
03-25-2008, 11:30 PM
*sign*
Very cool, I am waiting..

Yogijalla
03-26-2008, 03:31 PM
There you go:

http://www.onlamp.com/pub/a/onlamp/2008/03/25/the-apple-sdk-apis-apple-didnt-want-you-to-know-about.html

jeanmaikel
03-26-2008, 04:21 PM
very interesting article for using the old APIS with the SDK or building a toolchain using the 1.2 firmware that let u get non signed 1.2 applications,

but we are waiting for a script from Darkmen on how to get the
SDK build for the 1.14 because for the moment u can't use edge on the phone with 1.2 firmware

Darkmen
03-26-2008, 04:57 PM
The manual is ready
http://hackint0sh.org/forum/showthread.php?t=35403

iDaemon
03-26-2008, 06:18 PM
appreciating your work!
http://www.hackint0sh.org/forum/images/icons/icon14.gifhttp://www.hackint0sh.org/forum/images/icons/icon14.gifhttp://www.hackint0sh.org/forum/images/icons/icon14.gif
Thanks a lot!!!

will try it out soon ...

greez / _iD

iPhoneFrank
03-26-2008, 10:13 PM
The manual is ready
http://hackint0sh.org/forum/showthread.php?t=35403

This is awesome. I never thought it is possible. Many, many thanks