[from: http://www.hackint0sh.org/forum/showthread.php?t=38389]
This is the latest update of the Xcode template (version 3.5.2) for iPhone SDK and Open Toolchain API / official SDK API (without cert) in pwned iPhone / iPod Touch firmware 2.0.x / 2.1 / 2.2
This Xcode Template is now updated to version 3.5.2
To install, run these in Mac Terminal (assume you have installed the Xcode in /Developer folder, if not, change it according to your installed directory)
MD5 (42698-ToolChainTemplate_v352.zip) = 5de15c4cc9f7bab7feeafff5f121da36

There are 4 new project templates to build the command line utility for iPhone
C++ Tool (.cpp)
CoreFoundation Tool (.c)
Foundation Tool (.m)
Objective C++ Tool (.mm)
These 4 command line utility templates used wifi ssh connection to install compiled binary in your iPhone, so you need not connect your iPhone via usb port and MobileInstallation patch is not needed.
Requirements & Info:
(1) Default use Open toolchain headers
(2) iPhone and Mac connected to same network (you should change the IPHONE_IP, default is 10.0.2.2 in Project Settings)
(3) Open SSH and Link Indenty Editor installed in iPhone
(4) Mac's ssh key installed in iPhone
(5) Debug / Release build to iPhone folder /private/var/root (no Build & Go) and you should change IPHONE_INSTALL_DIR in the Project Settings
(6) Cannot build to Simulator
If you to need the IPHONE_IP and IPHONE_INSTALL_DIR user settings twice, one for Release and another for Debug.
If you don't want Open ToolChain headers for these command line tool, just remove the Other CC flags settings in the Project Settings, then it will use the official SDK headers. And you have to remove it twice, one for Release and another one for Debug in Project Settings.
If you need Open ToolChain Headers in your Mac
do this (assume you have installed the Xcode in /Developer folder, if not, change it according to your installed directory)
Xcode Template Version 3.5.2 adds a Static Library Template for iPhone
To build the Universary Library for i386 and arm
First build it on "Device" "Release"
Second build it on "Simulator" "Release"
Then the Universary Library binary will be in the project directory
To examine the content of the Universary Library binary, run ./otoolprint.sh in the project folder
Open Tool Chain Application
This template uses open toolchain headers provides a starting point for any application without Interface Builder.
Requirements and Info:
(1) No Interface Builder
(2) Default use open toolchain headers
(3) Cannot build to Simulator
(4) You need to have pwned iPhone / iPod Touch with patched MobileInstallation
(5) You need to have codesign certificate "iPhone Pwned Developer" installed in Mac
(6) You need to have XCode SDK Info.plist Setting removed Provisioning Profile requirement
View-Based Application
This template provides a starting point for an application that uses a single view. It provides a view controller to manage the view, and a nib file that contains the view.
Requirements and Info:
(1) Default use official iPhone SDK headers
(2) You need to have pwned iPhone / iPod Touch with patched MobileInstallation
(3) You need to have codesign certificate "iPhone Pwned Developer" installed in Mac
(4) You need to have XCode SDK Info.plist Setting removed Provisioning Profile requirement
Window-Based Application
This template provides a starting point for any application without Interface Builder and provides a minimal iPhone application with a single view, ready for customizing.
This is a good starting point for your first application. In the UIView subclass, you can implement methods to draw content on the screen and to respond to touches. In a more full-featured application, you typically add a view controller to handle data and to manage rotation.
Requirements and Info:
(1) No Interface Builder
(2) Default use official iPhone SDK headers
(3) You need to have pwned iPhone / iPod Touch with patched MobileInstallation
(4) You need to have codesign certificate "iPhone Pwned Developer" installed in Mac
(5) You need to have XCode SDK Info.plist Setting removed Provisioning Profile requirement
Always reboot iPhone and your Mac after you have changed settings and to troubleshoot
FAQ
If you have "security policy error" after Build & Go. Do these steps
(1) Install a new free app from App Store in iPhone (not sync from iTunes)
(2) Launch that newly purchased free app and then close it.
(3) Reboot your iPhone (that is power off and on again)
(4) Launch the app again that you have Build & Go in Xcode to iPhone.
If you need MobileInstallation Patch (updated to support firmware 2.0 to 2.2)
see post here
http://hackint0sh.org/forum/showpost...3&postcount=14
if you want to know how to remove Provisioning Profile requirement see post #62 below
http://www.hackint0sh.org/forum/show...1&postcount=62
if you want to know how to remove Provisioning Profile requirement for iPhone SDK 2.2 (build 9M2621) see post #125 below
http://www.hackint0sh.org/forum/show...&postcount=125
If you need instruction to have codesign certfifcate "iPhone Pwned Developer" installed in Mac
Here is the nice guide from Apple to create a self-signed identity
http://developer.apple.com/documenta...section_2.html
If you want to know how to install your Mac's ssh key in iPhone
Here it is
In order to avoid typing the password using ssh, you can install the ssh public key of your Mac to your iPhone using the following method
(a) keygen in Mac terminal and type (if you haven't generated it before)
(b) create .ssh directory in iPhone (assume ip address of iPhone is 10.0.2.2) and in Mac terminal and type
then enter iPhone root password (alpine)
(c) copy mac public key to iPhone, and in Mac Terminal type
then enter iPhone root password (alpine)
(d) Edit the file /etc/ssh/sshd_config in iPhone
change these
to
(e)reboot iPhone
<---------- add reputation for me if you like this thread
.
.
.
__________________This is the latest update of the Xcode template (version 3.5.2) for iPhone SDK and Open Toolchain API / official SDK API (without cert) in pwned iPhone / iPod Touch firmware 2.0.x / 2.1 / 2.2
This Xcode Template is now updated to version 3.5.2
To install, run these in Mac Terminal (assume you have installed the Xcode in /Developer folder, if not, change it according to your installed directory)
Code:
curl -O http://www.iphone.org.hk/attach/42698-ToolChainTemplate_v352.zip
unzip -o 42698-ToolChainTemplate_v352.zip -d "/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates"
There are 4 new project templates to build the command line utility for iPhone
C++ Tool (.cpp)
CoreFoundation Tool (.c)
Foundation Tool (.m)
Objective C++ Tool (.mm)
These 4 command line utility templates used wifi ssh connection to install compiled binary in your iPhone, so you need not connect your iPhone via usb port and MobileInstallation patch is not needed.
Requirements & Info:
(1) Default use Open toolchain headers
(2) iPhone and Mac connected to same network (you should change the IPHONE_IP, default is 10.0.2.2 in Project Settings)
(3) Open SSH and Link Indenty Editor installed in iPhone
(4) Mac's ssh key installed in iPhone
(5) Debug / Release build to iPhone folder /private/var/root (no Build & Go) and you should change IPHONE_INSTALL_DIR in the Project Settings
(6) Cannot build to Simulator
If you to need the IPHONE_IP and IPHONE_INSTALL_DIR user settings twice, one for Release and another for Debug.
If you don't want Open ToolChain headers for these command line tool, just remove the Other CC flags settings in the Project Settings, then it will use the official SDK headers. And you have to remove it twice, one for Release and another one for Debug in Project Settings.
If you need Open ToolChain Headers in your Mac
do this (assume you have installed the Xcode in /Developer folder, if not, change it according to your installed directory)
Code:
$ sudo mkdir -p /Developer/SDKs/iPhoneOS.sdk/Versions/iPhoneOS2.0.sdk/
$ svn co http://iphone-dev.googlecode.com/svn/branches/include-1.2-sdk
$ cd include-1.2-sdk
$ ./configure --prefix=/Developer/SDKs/iPhoneOS.sdk/Versions/iPhoneOS2.0.sdk/
$ sudo sh install-headers.sh
Xcode Template Version 3.5.2 adds a Static Library Template for iPhone
To build the Universary Library for i386 and arm
First build it on "Device" "Release"
Second build it on "Simulator" "Release"
Then the Universary Library binary will be in the project directory
To examine the content of the Universary Library binary, run ./otoolprint.sh in the project folder
Open Tool Chain Application
This template uses open toolchain headers provides a starting point for any application without Interface Builder.
Requirements and Info:
(1) No Interface Builder
(2) Default use open toolchain headers
(3) Cannot build to Simulator
(4) You need to have pwned iPhone / iPod Touch with patched MobileInstallation
(5) You need to have codesign certificate "iPhone Pwned Developer" installed in Mac
(6) You need to have XCode SDK Info.plist Setting removed Provisioning Profile requirement
View-Based Application
This template provides a starting point for an application that uses a single view. It provides a view controller to manage the view, and a nib file that contains the view.
Requirements and Info:
(1) Default use official iPhone SDK headers
(2) You need to have pwned iPhone / iPod Touch with patched MobileInstallation
(3) You need to have codesign certificate "iPhone Pwned Developer" installed in Mac
(4) You need to have XCode SDK Info.plist Setting removed Provisioning Profile requirement
Window-Based Application
This template provides a starting point for any application without Interface Builder and provides a minimal iPhone application with a single view, ready for customizing.
This is a good starting point for your first application. In the UIView subclass, you can implement methods to draw content on the screen and to respond to touches. In a more full-featured application, you typically add a view controller to handle data and to manage rotation.
Requirements and Info:
(1) No Interface Builder
(2) Default use official iPhone SDK headers
(3) You need to have pwned iPhone / iPod Touch with patched MobileInstallation
(4) You need to have codesign certificate "iPhone Pwned Developer" installed in Mac
(5) You need to have XCode SDK Info.plist Setting removed Provisioning Profile requirement
Always reboot iPhone and your Mac after you have changed settings and to troubleshoot
FAQ
If you have "security policy error" after Build & Go. Do these steps
(1) Install a new free app from App Store in iPhone (not sync from iTunes)
(2) Launch that newly purchased free app and then close it.
(3) Reboot your iPhone (that is power off and on again)
(4) Launch the app again that you have Build & Go in Xcode to iPhone.
If you need MobileInstallation Patch (updated to support firmware 2.0 to 2.2)
see post here
http://hackint0sh.org/forum/showpost...3&postcount=14
if you want to know how to remove Provisioning Profile requirement see post #62 below
http://www.hackint0sh.org/forum/show...1&postcount=62
if you want to know how to remove Provisioning Profile requirement for iPhone SDK 2.2 (build 9M2621) see post #125 below
http://www.hackint0sh.org/forum/show...&postcount=125
If you need instruction to have codesign certfifcate "iPhone Pwned Developer" installed in Mac
Here is the nice guide from Apple to create a self-signed identity
http://developer.apple.com/documenta...section_2.html
If you want to know how to install your Mac's ssh key in iPhone
Here it is
In order to avoid typing the password using ssh, you can install the ssh public key of your Mac to your iPhone using the following method
(a) keygen in Mac terminal and type (if you haven't generated it before)
Code:
ssh-keygen -t rsa
Code:
ssh root@10.0.2.2 'mkdir -p .ssh'
(c) copy mac public key to iPhone, and in Mac Terminal type
Code:
cat ~/.ssh/id_rsa.pub | ssh root@10.0.2.2 'cat >> .ssh/authorized_keys'
(d) Edit the file /etc/ssh/sshd_config in iPhone
change these
Code:
#StrictModes yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys
Code:
StrictModes no
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
.
.
.
Touch Dial is an easy-to-use application for one touch dial / sms icon on the home screen for iPhone.
This app can read the accelerometer and do phone dial or SMS dial for the same number based on the your setting for Portrait or Landscape Mode of iPhone.
没有评论:
发表评论