Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > Applications & Development > iPhone Developer Exchange

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-14-2008, 09:46 PM
Darkmen's Avatar
Darkmen
Status: Offline
Member
 
Join Date: Aug 2007
Posts: 61
Rep Power: 7
Darkmen is on a distinguished road
Lightbulb [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:
0. Close XCode and make sure its not running
1. Download installation:
-For SDK v1 http://r_apidshare.com/files/102531763/sdk_mod.tgz.html (remove _ )
-For SDK v2 http://r_apidshare.com/files/1030589...2_mod.tgz.html (remove _ )
-For SDK v3 http://r_apidshare.com/files/1081397...3_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:
Quote:
$ ./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:
Quote:
$ 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

iPhone (old) is our new SDK for FW 1.1.4
Now select desired template, for example Cocoa Touch SectionList
And switch active SDK to Device 1.1.4:

Go menu: Project->Edit ProjectSettings
And change IPHONE_IP value:

Now push Build and Untitled application starts on your iPhone. Pressing Stop will close application running.
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 and libs
Stay tuned

Last edited by Darkmen; 04-21-2008 at 12:28 AM. Reason: SDK beta 3 added
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 04-15-2008, 04:44 AM
bikedude880's Avatar
bikedude880
Status: Offline
The one and only :)
 
Join Date: Sep 2006
Location: Lost in the insanity
Posts: 30
Rep Power: 0
bikedude880 is on a distinguished road
Default

Excellently written Darkmen! Looking forward to seeing apps be designed by this
__________________
Quote:
<Ramm> The MINIMUM requirements are a Pentium 4 and half a brain <-- going in my signature
In response to: Mac OS X on P3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 04-15-2008, 05:49 PM
f41qu3's Avatar
f41qu3
Status: Offline
IRC Netadmin
Team of Hackint0sh
 
Join Date: Nov 2006
Posts: 1,520
Rep Power: 10
f41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud off41qu3 has much to be proud of
Default

Good how-to

Do try it tonight.

Cheerz,
__________________
"the truth is out there"

hack1 = Mac OS X Snow Leopard 10.6.2 Build 10C531
hack2 = Mac OS X Server Snow Leopard 10.6.1 Build 10C504
iBook G3 DualUSB = Mac OS X Jaguar 10.2.8 Build 6R73
MacBook 403LL/A = Mac OS X Snow Leopard 10.6.2 Build 10C531
iPhone 3G = iPhone OS 3.1.2 Build 7D11 Baseband 05.11.07 Bootloader 05.09 [G2M3S2] ClaroBR 5.0
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #4 (permalink)  
Old 04-15-2008, 08:11 PM
DrDaxxy
Status: Offline
Junior Member
 
Join Date: Apr 2008
Posts: 5
Rep Power: 0
DrDaxxy is on a distinguished road
Default

2 quick questions:
1. This does work for iPod touch, right?
2. What's the difference between this SDK and the SDK you get on Apple's site?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 04-15-2008, 11:43 PM
Darkmen's Avatar
Darkmen
Status: Offline
Member
 
Join Date: Aug 2007
Posts: 61
Rep Power: 7
Darkmen is on a distinguished road
Default

Quote:
Originally Posted by DrDaxxy View Post
2 quick questions:
1. This does work for iPod touch, right?
2. What's the difference between this SDK and the SDK you get on Apple's site?
1.Yes
2.By defaults you can compile for 1.2\2.0 only
With the mod you can do it for 1.1.4
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 04-17-2008, 01:06 AM
igerard
Status: Offline
Junior Member
 
Join Date: Apr 2008
Posts: 1
Rep Power: 0
igerard is on a distinguished road
Default

Thanks a lot

I made a try tonight, and it does work with the beta 3, I am not sure what is not working, the template work, compile and launch

very good trick

I put a link for each folder of headers related to a framework to be able to read them in Xcde when I add a framework to my project.


Code:
#!/bin/sh

FrameworksPath="/Developer/Platforms/Toolchain.platform/Developer/SDKs/Toolchain.sdk/System/Library/Frameworks"
HeadersPath="/Developer/Platforms/Toolchain.platform/Developer/SDKs/Toolchain.sdk/usr/include"

for ff in `ls ${FrameworksPath}`
  do nf=`basename $ff .framework`
  #echo $FrameworksPath/$ff
  if test -d $HeadersPath/$nf
     then
		c="sudo ln -s $HeadersPath/$nf $FrameworksPath/$ff/Headers"
		echo $c
		$c
  else 
     echo --$nf
  fi
done


I will investigate the others headers later, I am studying the iPhone API...

Regards

Last edited by igerard; 04-17-2008 at 07:54 AM. Reason: better script
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #7 (permalink)  
Old 04-18-2008, 08:05 PM
notinkansas
Status: Offline
Junior Member
 
Join Date: Apr 2008
Posts: 2
Rep Power: 0
notinkansas is on a distinguished road
Default

Darkmen, big, big thanks for this. I've been trying to get this to work for a while, and it seems you've solved the header file / SDK mess. The script works fine as well, except that it should be run when doing "Build&Run" rather than everytime I "Build". I haven't managed to get debugging to work, which is supposedly supported in 2.0. Anyways, many thanks to you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 04-20-2008, 01:33 AM
riruilo
Status: Offline
Junior Member
 
Join Date: Apr 2008
Posts: 17
Rep Power: 0
riruilo is on a distinguished road
Question

Hi everybody.

I did it all but when I compile I get an error about gcc4.0.0 has not been found.
Which XCode version do you have? 3 o 3.1 beta? because I have 3.0 but iphone sdk installation replaces it by 3.1 beta. Maybe that is my problem, I dont know.
What I dont understand is this:
"(#) 1.1.4 platform SDK creation script for XCode 3.0 -- by Darkmen"
But iphone sdk installs xcode 3.1

Any idea/suggestion?

Thank you very much.

Last edited by riruilo; 04-20-2008 at 01:36 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 04-20-2008, 04:30 PM
dead
Status: Offline
Junior Member
 
Join Date: Jan 2008
Posts: 3
Rep Power: 0
dead is on a distinguished road
Default

Just tried the scripts for the beta 3 and they worked fine. I was able to create, compile and deploy the template to my iPhone.

But I have a question: there is any way to create the interface through Interface Builder and compile it to 1.1.4?

riruilo, I didn't understand what you said.
For this to work you must have the iphone SDK aka XCode 3.1, and it must be on /Developer and the latest version say it right:
(#) 1.1.4 platform SDK creation script for XCode 3.1 beta 3 -- by Darkmen
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #10 (permalink)  
Old 04-20-2008, 11:37 PM
riruilo
Status: Offline
Junior Member
 
Join Date: Apr 2008
Posts: 17
Rep Power: 0
riruilo is on a distinguished road
Question

Just a silly question.

After installing sdk beta 3, I went to /usr/local/share/iphone-filesystem but there were nothing.
Due to that, script fails.
So, how/where can I find/get original 1.1.4 filesystem??


Thanks a lot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +2. The time now is 03:22 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105