veekays / iphonedevonlinux

Automatically exported from code.google.com/p/iphonedevonlinux
0 stars 0 forks source link

3.2 SDK not supported #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Apple has upgraded to 3.2 SDK (available at http://developer.apple.com/)
This breaks compatibility with the tool and cannot work. Also, I am unable
to find a copy of the older SDK so, this makes it impossible to work.

How different is the new SDK? I'm not really good at all this but, would a
simple folder name change work? Here is my output of installing below:

----------------------------------------------------------------------
patrick@patrick-desktop:~/Projects/iphone$ ./toolchain.sh all
Preparing the environment
Toolchain version: 3.1.2
Building in: /home/patrick/Projects/iphone
Environment is ready
Getting the header files...
Retrieving and building dmg2img 1.6.1 ...
--2010-05-12 14:02:59-- 
http://vu1tur.eu.org/tools/download.pl?dmg2img-1.6.1.tar.gz
Resolving vu1tur.eu.org... 80.91.191.101
Connecting to vu1tur.eu.org|80.91.191.101|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/download]
Saving to: `STDOUT'

    [     <=>                               ] 38,025      24.0K/s   in 1.5s    

2010-05-12 14:03:02 (24.0 KB/s) - `-' saved [38025]

~/Projects/iphone/tmp/dmg2img-1.6.1 ~/Projects/iphone/tmp
cc -O2 -Wall -c dmg2img.c
In file included from dmg2img.c:30:
dmg2img.h: In function ‘read_kolyblk’:
dmg2img.h:140: warning: ignoring return value of ‘fread’, declared with
attribute warn_unused_result
In file included from dmg2img.c:32:
mntcmd.h: In function ‘read_gpt_header’:
mntcmd.h:11: warning: ignoring return value of ‘fread’, declared with
attribute warn_unused_result
mntcmd.h: In function ‘read_gpt_entry’:
mntcmd.h:17: warning: ignoring return value of ‘fread’, declared with
attribute warn_unused_result
dmg2img.c: In function ‘main’:
dmg2img.c:220: warning: ignoring return value of ‘fread’, declared with
attribute warn_unused_result
dmg2img.c:285: warning: ignoring return value of ‘fread’, declared with
attribute warn_unused_result
cc -O2 -Wall -c base64.c
cc -O2 -Wall -c adc.c
cc -s -o dmg2img dmg2img.o base64.o adc.o -L. -lz -lbz2
cc -O2 -Wall -s -o vfdecrypt vfdecrypt.c -lcrypto
vfdecrypt.c: In function ‘main’:
vfdecrypt.c:400: warning: ignoring return value of ‘system’, declared with
attribute warn_unused_result
~/Projects/iphone/tmp
dmg2img is ready!
I'm having trouble finding the iPhone SDK. I looked here:
/home/patrick/Projects/iphone/files/iphone_sdk_*.dmg
Do you have the SDK? [Y/n] Y
Please enter the full path to the dmg containing the SDK:
/home/patrick/Projects/iphone/files/iphone_sdk_*.dmg
Trying to mount the iPhone SDK dmg...

dmg2img v1.6.1 is derived from dmg2iso by vu1tur (to@vu1tur.eu.org)

/home/patrick/Projects/iphone/files/iphone_sdk_3.2_final.dmg -->
/home/patrick/Projects/iphone/tmp/iphone_sdk_3.2_final.img

reading property list, 578096 bytes from address 2483936340 ...
partition 0: begin=195, size=430, decoded=284
partition 1: begin=914, size=430, decoded=284
partition 2: begin=1632, size=430, decoded=284
partition 3: begin=2367, size=430, decoded=284
partition 4: begin=3088, size=430, decoded=284
partition 5: begin=3801, size=571443, decoded=384844
partition 6: begin=575527, size=430, decoded=284

decompressing:
opening partition 0 ...         [2] 100.00%  ok
opening partition 1 ...         [2] 100.00%  ok
opening partition 2 ...         [2] 100.00%  ok
opening partition 3 ...         [2] 100.00%  ok
opening partition 4 ...         [2] 100.00%  ok
opening partition 5 ...      [9616] 100.00%  ok

Archive successfully decompressed as
/home/patrick/Projects/iphone/tmp/iphone_sdk_3.2_final.img

You should be able to mount the image [as root] by:

modprobe hfsplus
mount -t hfsplus -o loop
/home/patrick/Projects/iphone/tmp/iphone_sdk_3.2_final.img /mnt

In order to extract iphone_sdk_3.2_final.dmg, I am going to mount it.
This needs to be done as root.
[sudo] password for patrick: 
cat: /home/patrick/Projects/iphone/files/mnt/iPhone
SDK.mpkg/Contents/version.plist: No such file or directory
SDK is version 
Extracting iPhoneSDKHeadersAndLibs.pkg...
531176 blocks
I couldn't find the folder iPhoneOS3.1.2.sdk. Perhaps this is
not the right SDK dmg for toolchain 3.1.2.

-------------------------------------------------------------
Fairly straight-forward, simply not right SDK, as such is not finding
correct folder. Hopefully, this can be resolved! 

BTW, hope I don't come across as demanding or stating obvious (hopefully,
not reported before). I really appreciate the work you guys have done and
the effort all of the devs have put in!

Original issue reported on code.google.com by paddy.me...@gmail.com on 12 May 2010 at 4:54

GoogleCodeExporter commented 8 years ago
OK, changing the toolchain version to 3.2.1 and the mpkg file (line 350s) to 
Xcode and...

gets me this error:

In order to extract iphone_sdk_3.2_final.dmg, I am going to mount it.
This needs to be done as root.
SDK is version 3.2.1
Extracting iPhoneSDKHeadersAndLibs.pkg...
531176 blocks
I couldn't find the folder iPhoneOS3.2.1.sdk. Perhaps this is
not the right SDK dmg for toolchain 3.2.1.

so, think changing folder name won't work? Or am I doing something wrong?

Original comment by paddy.me...@gmail.com on 12 May 2010 at 5:46

GoogleCodeExporter commented 8 years ago
Make the following changes to toolchain.sh
line 28: TOOLCHAIN_VERSION="3.2"
line 357: if [ "${TOOLCHAIN_VERSION}" == "3.2" ] ; then

Basically what you want to do is change all occurrences of 3.2.1 to 3.2. Now 
you can
extract the headers. 

Original comment by kimspenc...@gmail.com on 12 May 2010 at 8:57

GoogleCodeExporter commented 8 years ago
For building 3.1.2 SDK with the 3.2 dmg file (the one available from apple's 
website), you can apply the attached patch (that also fix a little class_dump 
bug)

Original comment by ravomav...@gmail.com on 18 Jun 2010 at 9:27

Attachments:

GoogleCodeExporter commented 8 years ago
Cool, I'll check it out! Thanks.

Original comment by paddy.me...@gmail.com on 18 Jun 2010 at 9:49

GoogleCodeExporter commented 8 years ago
Umm... How do I apply the patch and to what? Only ever seen kernel patch so...

Original comment by paddy.me...@gmail.com on 23 Jun 2010 at 1:05