You are on page 1of 3

[HOWTO] Use Apple SDK to build 1.1.

4 apps

Darkmen [HOWTO] Use Apple SDK to build 1.1.4 apps

Lets use all power of graphic IDE from Apple SDK for 1.1.4 development:

1. Download installation: http://r_apidshare.com/files/102531763/sdk_mod.tgz.html (remove _ )


2. Untgz it somwere for example to homedir. Apears folder: ~/make.sdk
3. Make sure Apple SDK installed to default foilded /Developer
4. Make sure original 1.1.4 filesystem is here: /usr/local/share/iphone-filesystem Otherwise u can change script manually
5. Open terminal on your Mac:

Code:

$ cd ~/make.sdk/
$ ls
Apple Mach-O Linker.xcspec include
GCC 4.0.xcspec keys.sh
Info.plist lib
ProjTempl sdk.sh
SDKSettings.plist sshd_config

Lets start:
Code:

$ ./sdk.sh
(#) 1.1.4 platform SDK creation script for XCode 3.0 -- by Darkmen
Copying Aspen1.2...
Configuring XCode GCC plugin...
Configuring SDK prefs...
Removing old templates...
Copying new templates...
Making SDK filesystem:
-Erasing 1.2 System
-Erasing 1.2 lib
Make sure original 1.1.4 filesystem is here: /usr/local/share/iphone-filesystem/
-Copying 1.1.4 iPhone fileystem...
-Copying dev team 1.1.4 headers...
-Copying dev team libs...
Done!

You will need paswordless SSH login to your iPhone to be able to use Run On Device script
You can do it now:
Code:

$ export IPHONE_IP=192.168.1.6 (please replace with your iPhone's IP address)


$ ./keys.sh
(#) Passwordless SSH login script -- dy Darkmen
WARNING: Dont forget to change iPhone's IP. Default is 192.168.1.6!
Generating RSA keys for SSH paswordless login on iPhone. Please leave default filenames and empty passphrase!
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/darkmen/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/darkmen/.ssh/id_rsa.
Your public key has been saved in /Users/darkmen/.ssh/id_rsa.pub.
The key fingerprint is:
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx darkmen@darkmac.local
Copying public key to iPhone. First login can take 30 seconds. Password: alpine
root@192.168.1.6's password:
id_rsa.pub 100% 403 0.4KB/s 00:00
Copying SSHD config to iPhone. Password: alpine
sshd_config 100% 3248 3.2KB/s 00:00
Restarting SSHD on iPone...
Connection to 192.168.1.6 closed by remote host.
Done!

We DONE!
Start XCode and make New project

26.03.2008 21:55
[HOWTO] Use Apple SDK to build 1.1.4 apps

iPhone (old) is our new SDK for FW 1.1.4


Now select desired template, for example Cocoa Touch SectionList
And switch SDK to Device 1.1.4:

Go menu: Project->Edit ProjectSettings


And change IPHONE_IP value:

26.03.2008 21:55
[HOWTO] Use Apple SDK to build 1.1.4 apps

Now push Build and Untitled application starts on your iPhone. Pressing Stop will close running application.
For command line tools no execution automatic. Script only copy it to iPhone: /usr/local/bin

As result we become SDK with Apple GCC configured to build applications for iPhone 1.1.4

Templates included:
Application

Cocoa Touch SectionList


Cocoa Touch TableView
Cocoa Touch View

Bundle

CFPlugIn Bundle
Generic C++ Plugin

Command Line Utility

C++ Tool
CoreFoundation Tool
Foundation Tool
Standard Tool

Kernel Extension

Generic Kernel Extension


IOKit Driver

Static Library

BSD Static Library

P.S. Credits to dev team for framework headers


Stay tuned

26.03.2008 21:55

You might also like