Thursday, November 27, 2008

iPhone SDK 2.2 header files dump is here

http://ericasadun.com/iPhoneDocs220/

MPTVOutWindow video code demo is here
http://www.appleinsider.com/articles/08/11/26/iphone_2_2_hides_video_out_code_for_third_party_apps.html

and the perl script to generate header files
http://arstechnica.com/journals/apple.ars/2008/11/24/dumping-the-iphone-2-2-frameworks


Alternatively you can classdump in iPhone

(1) Install class-dump in Cydia / apt-get
apt-get install class-dump

(2) run this script in iPhone to generate the header files in current directory
dump.sh: Select all

#/bin/bash
for FRAMEWORKS in Frameworks PrivateFrameworks; do
frameworklib=/System/Library/"${FRAMEWORKS}"
for frameworkpath in "${frameworklib}"/*.framework; do
frameworkdir="$(basename "${frameworkpath}")"
frameworkbin="${frameworkdir%.*}"
if [ -f "${frameworkpath}/${frameworkbin}" ]; then
echo "Framework: ${frameworkbin}"
mkdir -p ${frameworkbin}
class-dump -H -o "${frameworkbin}" "${frameworkpath}/${frameworkbin}"
fi
done
done


(3) If you want to remove all header directories under current directory and start over again run
find . -type d -name '[a-zA-Z]*' -print | xargs rm -rf
.
.
.
.
.

1 comment:

Anonymous said...

Hello!

Could you please post a howto on adding the private frameworks for use with Xcode and the SDK?

I've been googling around but could only found beta 1 age information...

Thanks!