Page 1 of 5 12345 LastLast
Results 1 to 10 of 41
Discuss [HowTo] Use Apple SDK to build 1.1.4 apps at the iPhone Developer Exchange - Hackint0sh.org; Lets use all power of graphic IDE from Apple SDK for 1.1.4 development: 0. Close ...
  1. #1
    Professional Array Darkmen's Avatar

    Join Date
    Aug 2007
    Posts
    61
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    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:
    $ ./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:
    $ 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



  2. #2
    The one and only :) Array bikedude880's Avatar

    Join Date
    Sep 2006
    Location
    Lost in the insanity
    Posts
    29
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Excellently written Darkmen! Looking forward to seeing apps be designed by this
    <Ramm> The MINIMUM requirements are a Pentium 4 and half a brain <-- going in my signature
    In response to: Mac OS X on P3

  3. #3
    IRC Netadmin
    Team of Hackint0sh
    Array f41qu3's Avatar

    Join Date
    Nov 2006
    Posts
    1,572
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    Good how-to

    Do try it tonight.

    Cheerz,
    If you just want to support hackint0sh.org with a donation click here.

    Twitter: @f41qu3 @hackint0sh @hmbt_org @iphone_dev

  4. #4
    Newbie Array

    Join Date
    Apr 2008
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    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?

  5. #5
    Professional Array Darkmen's Avatar

    Join Date
    Aug 2007
    Posts
    61
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    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


  6. #6
    Newbie Array

    Join Date
    Apr 2008
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    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

  7. #7
    Newbie Array

    Join Date
    Apr 2008
    Posts
    2
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    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.

  8. #8
    Rookie Array

    Join Date
    Apr 2008
    Posts
    17
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    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.

  9. #9
    Newbie Array

    Join Date
    Jan 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    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

  10. #10
    Rookie Array

    Join Date
    Apr 2008
    Posts
    17
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    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


 

 
Page 1 of 5 12345 LastLast

LinkBacks (?)


Similar Threads

  1. [AppStore][HowTo] Delete Apps I have Installed?
    By th3joker in forum AppStore Software
    Replies: 2
    Last Post: 07-13-2008, 11:23 PM
  2. [iPhone SDK] Can use Apple SDK Beta4 for Build 1.1.4 apps?
    By DarKMenTaL in forum iPhone Developer Exchange
    Replies: 0
    Last Post: 05-14-2008, 07:12 AM
  3. Replies: 3
    Last Post: 01-19-2008, 05:01 PM
  4. HowTo Write Native Apps
    By linear in forum General
    Replies: 0
    Last Post: 10-28-2007, 09:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 09:02 AM.
twitter, follow us!