Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
Discuss [iPhone SDK] Running SDK compiled apps without a certificate at the iPhone Developer Exchange - Hackint0sh.org; Aspen simulator works only on Intel Macs - which means it is dependent (together with ...
  1. #11
    Rookie Array

    Join Date
    Nov 2007
    Posts
    29
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Aspen simulator works only on Intel Macs - which means it is dependent (together with its frameworks) to x86 processors (when compiling in Xcode, there is an option - compile for ARM(the iPhone processor) or Aspen simulator (x86 processor)).

    The point is: when you replace original frameworks on your iPhone with those copied from SDK folder, they won't work (and will render your iPhone unable to boot), because they're compiled for different processor architecture.

    If I am wrong, then someone please correct me

    Cheers!


  2. #12
    Newbie Array

    Join Date
    Jul 2006
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Just look at your Developers/Platform folder....
    There are 2:
    AspenSimulator
    Aspen

    AspenSimulator contains frameworks and Apps compiled for x86 and Aspen contains binarys for ARM...

    cYa ~Neo
    "Welcome to the Anus Invasion... Sum Fartie 1... E Ca Hai..." by Stevo32 :-D

  3. #13
    Newbie Array

    Join Date
    Mar 2008
    Posts
    7
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Okay, i am toying around with the SDK now, and found some strange and interesting stuff. When i try to build a new framework-clean binary, using the "Debug" build configuration, Xcode spits out:

    "Codesign error: no certificate for identifier "iPhone Developer" was found in your keychain"

    And the build "fails", however, the binary is actually produced. There is little difference between the release build (which builds without any errors) and the debug build. I looked at them both in a hex editor (unfortunately i don't have an ARM disassembler ), and there is practically no difference, apart from some extra code i would guess, that allows breakpoints, and GDB to connect to the process and such.

    Now here comes the fun part, the binary is actually running perfectly on the iPhone. There is no encryption, whatsoever. It is a perfectly fine ARM6 binary, that can be executed without problems. Of course this was to be suspected, but you never know

    So, that leaves us at having to find simple way to load the 1.2 frameworks from the SDK dynamically when a SDK compiled application is loaded.

    By the way, does someone know an ARM disassembler for OS X?

    Just to sum up: A binary compiled using the official SDK can run on 1.1.4

    Cheers!

  4. #14
    Newbie Array

    Join Date
    Mar 2008
    Posts
    7
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Oh, and if anyone knows some good resources on how OS X/iPhone handles frameworks, please give me a shout. I'm pretty shure it must be relatively simple to make a seperate copy of the 1.2 frameworks and binaries that the a pre 1.2 iphone can use for running SDK compiled apps.

  5. #15
    Rookie Array

    Join Date
    Mar 2008
    Posts
    13
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I assume they are handled just like any other dynamically loaded library. Not sure this applies to the iPhone, but you can change the path's for OS X.

    From "man dyld" :

    DYLD_FRAMEWORK_PATH
    This is a colon separated list of directories that contain
    frameworks. The dynamic linker searches these directories
    before it searches for the framework by its install name. It
    allows you to test new versions of existing frameworks. (A
    framework is a library install name that ends in the form
    XXX.framework/Versions/YYY/XXX or XXX.framework/XXX, where XXX
    and YYY are any name.)

    For each framework that a program uses, the dynamic linker looks
    for the framework in each directory in DYLD_FRAMEWORK_PATH in
    turn. If it looks in all the directories and can't find the
    framework, it searches the directories in DYLD_LIBRARY_PATH in
    turn. If it still can't find the framework, it then searches
    DYLD_FALLBACK_FRAMEWORK_PATH and DYLD_FALLBACK_LIBRARY_PATH in
    turn.

    Is it possible to do a static link when compiling from xcode? I would guess not

    rad
    Last edited by radical; 03-13-2008 at 11:58 PM.


  6. #16
    Rookie Array

    Join Date
    Oct 2007
    Posts
    27
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Lightbulb

    Quote Originally Posted by nfotx View Post
    Just to sum up: A binary compiled using the official SDK can run on 1.1.4
    This is a great piece of information. I have 1.1.3 on my Touch and the sample app that I have built doesn't run.

    Questions:
    - do I need to upgrade at 1.1.4 to run my own apps?
    - where do you get the exe? Under the build folder by default 2 folders are produced and only one seems to have the .app file.

    thx for your post, it shed some light in my dark brain.

  7. #17
    Advanced Array

    Join Date
    Feb 2008
    Posts
    31
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default partial success

    Quote Originally Posted by radical View Post
    I assume they are handled just like any other dynamically loaded library. Not sure this applies to the iPhone, but you can change the path's for OS X.

    From "man dyld" :
    ...
    Is it possible to do a static link when compiling from xcode? I would guess not
    rad
    I can report a partial success using the specified environment variables.
    I copied the files from Aspen1.2.sdk/System/Library und Aspen1.2.sdk/usr/lib to
    /var/root/Aspen/{Library,usr}. In addition I hat do symlink all *.dylb's in the Frameworks to usr/lib because dyld was unable to locate them inside the frameworks.
    Then I did the following:
    Code:
    # export DYLD_FRAMEWORK_PATH=/var/root/Aspen/Library
    # export DYLD_LIBRARY_PATH=/var/root/Aspen/usr/lib                                  
    # /Applications/hello.app/hello                                                           
    dyld: Symbol not found: ___kCFVolatileDomainCallBacks
      Referenced from: /System/Library/Frameworks/Foundation.framework/Foundation
      Expected in: /var/root/Aspen/Library/Frameworks/CoreFoundation.framework/CoreFoundation
    
    zsh: trace trap  /Applications/hello.app/hello
    As you can see dyld gets past the ObjC part but encounters some relocation error in the core Frameworks.
    This may also be a result of my quick-hack-style testing attempt but at least it looks like running 1.2.0 apps with a seperate library and framework root is not totally impossible
    iPhone week 49 FW 2.0.0 DevTeam
    BL 4.6 Geohot unlocked -> BL 3.6
    1.1.2ootb -> 1.1.1 -> 1.1.2 -> 1.1.3 soft -> stuck in recovery -> 1.1.1 -> 1.1.2 -> ziphone ->1.1.4 -> Pwned -> 1.1.4 -> Pwned 2.0
    Carrier: Yes Epuls - Germany
    Calls in/out : Yes
    SMS in/out : Yes
    Voicemail SMS: Yes
    WIFI: Yes
    EDGE/GPRS: Yes
    Youtube: Yes
    Working tether-DNS: Yes

    See the little "thumbs up" on the left? CLICK IT!

  8. #18
    Rookie Array

    Join Date
    Mar 2008
    Posts
    23
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    nfotx, are you planning to write a little tutorial? I also know this is pushing it, but did the debug build run properly with the debugger on the computer?

  9. #19
    Rookie Array

    Join Date
    Oct 2007
    Posts
    27
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Thumbs up

    True, a mini tutorial would be just great!
    I'm comfortable with code, but totally new to the mac development world. However your post has very good hints!

  10. #20
    Respected Professional Array

    Join Date
    Sep 2007
    Posts
    695
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    55

    Default

    Quote Originally Posted by nfotx View Post
    Also, in a vain attempt, i tried replacing the frameworks on the iPhone with the ones from the SDK, no luck
    This may somehow work. A lot of the frameoworks are now in PrivateFrameworks but symlinked to Frameworks, and I assume you didn't do the symlink nor chmod 777 the new frameworks


 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Get source code from compiled apps?
    By tharkay in forum iPhone Developer Exchange
    Replies: 1
    Last Post: 07-05-2010, 04:01 PM
  2. Submit iphone apps to the appstore compiled in a hackintosh?
    By dipswitch in forum AppStore Software
    Replies: 3
    Last Post: 07-26-2009, 10:39 PM
  3. [iPhone SDK] Apps Work w/o Certificate on 2.0 + Pwnage
    By elpopo in forum iPhone Developer Exchange
    Replies: 39
    Last Post: 04-17-2009, 02:52 PM
  4. Replies: 15
    Last Post: 02-28-2009, 01:57 PM

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 02:39 PM.
twitter, follow us!