View Full Version : [iPhone SDK] Run SDK-Apps with jailbroken 1.1.4
xian07
03-07-2008, 03:11 AM
hey guys....
just tried the first hello world...
runs fine in the simulator, but as i don't have a certificate (and only a jailbroken phone) i can't transfer the app via the "official" way to the phone.
building it on the mac and transferring via ssh doesn't work. the app just crashes...
any ideas?
Former Bender
03-07-2008, 03:13 AM
Can you launch it using SSH and see what it says ? also by checking the crash log.
xian07
03-07-2008, 03:19 AM
says:
dyld: Symbol not found: _OBJC_CLASS_$_NSAutoreleasePool
Referenced from: /Applications/firsttest.app/./firsttest
Expected in: /System/Library/Frameworks/Foundation.framework/Foundation
Trace/BPT trap
so maybe we'll have to wait for 2.0.0 firmware
xian07
03-07-2008, 03:21 AM
from crashlog:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AutoSubmitted</key>
<true/>
<key>SysInfoCrashReporterKey</key>
<string>ba0f2a9cc49e9d0b4d8b04a110203196a2f55288</string>
<key>bug_type</key>
<string>109</string>
<key>description</key>
<string>Incident Identifier: CCA23607-EB8C-4075-A036-38D50092676A
CrashReporter Key: ba0f2a9cc49e9d0b4d8b04a110203196a2f55288
Process: firsttest [153]
Path: ./firsttest
Version: N/A (N/A)
Code Type: 0000000C (Native)
Effective UID: 0
Parent Process: sh [149]
Date/Time: 2008-03-07 02:17:26.629 +0100
OS Version: OS X 1.1.4 (4A102)
Report Version: 101
Exception Type: EXC_BREAKPOINT
Exception Codes: 0x00000001, 0xe7ffdefe
Crashed Thread: 0
Dyld Error Message:
Symbol not found: _OBJC_CLASS_$_NSAutoreleasePool
Referenced from: /Applications/firsttest.app/./firsttest
Expected in: /System/Library/Frameworks/Foundation.framework/Foundation
</string>
<key>displayName</key>
<string>firsttest</string>
<key>name</key>
<string>firsttest</string>
<key>os_version</key>
<string>OS X 1.1.4 (4A102)</string>
<key>system_ID</key>
<string></string>
<key>version</key>
<string>N/A (N/A)</string>
</dict>
</plist>
so there seem to be some frameworks missing in current firmware
Former Bender
03-07-2008, 03:22 AM
I thought it was included in the SDK ?
xian07
03-07-2008, 03:34 AM
well there are updated frameworks included in the sdk, but as me no being a specialist it is somehow difficult, to get everything sorted out :)
it has a small disk-image included (about 4mb) which i suppose is installed when you use your iphone with the xcode-environment.
but as i've no officially activated phone, that doesn't work
KRAYZIE
03-07-2008, 03:35 AM
does anyone think that the 2.0 beta software will eventually just leak onto torrent sites so that we can put it on our phones?
seems pretty predictable to me.
dagamer34
03-07-2008, 03:40 AM
does anyone think that the 2.0 beta software will eventually just leak onto torrent sites so that we can put it on our phones?
seems pretty predictable to me.
Sticking beta firmware on your phone unless it is explicitly for development purposes is an extremely bad idea, and I'd rather not have a bunch of crazy nutcases download it then come to hackint0sh asking to have their phone fixed because they were to impatient to wait for bugs to be fixed.
xian07
03-07-2008, 03:41 AM
well, as far as i know, the last ones didn't leak either...
the software will only go out to selected companys... they'll be pretty restrictive and cautious
Former Bender
03-07-2008, 03:54 AM
Can you post the app you have build ?
I haven't finished to download the SDK and i'd like to give a try.
lordimac
03-07-2008, 03:57 AM
Link removed
Do not post apps compiled on your computer it contains your user account name.
Apple can track you down if your account name is your real name.
Official Codesample from Apple compiled with XCode 3.1 (iPhone SDK). Works with Simulator but not with Jailbreaked 1.1.4. Starts but crashes
Former Bender
03-07-2008, 04:01 AM
Thanks, i'm gonna give a look.
Former Bender
03-07-2008, 04:03 AM
Hey your app is an Intel build !
tmac9010
03-07-2008, 04:05 AM
when i uploaded it it didnt crash right away it stays open for like 30-45 sec and this is the screen http://bgarber2010.googlepages.com/Photo12.jpg
xian07
03-07-2008, 04:07 AM
Can you post the app you have build ?
I haven't finished to download the SDK and i'd like to give a try.
Link removed
Do not post apps compiled on your computer it contains your user account name.
Apple can track you down if your account name is your real name.
lordimac
03-07-2008, 04:26 AM
Here is antother one, compiled as Release. The first File was compiled as Debug.
Link removed
And look at this Simulator Screenshot and recognize the "Hello" in the Blue Box ;) This Hello doesn't show on my iPhone with Jailbreaked 1.1.4.
http://img292.imageshack.us/img292/1715/screencaptureao0.png
But i think its the Compiler, because you can compile it for the Simulator (Debug/Release) and for a Device (Debug/Release), but I cant compile it for an Device.
edit: OK,. i figured out how I can compile for the Device, but it doesn't work. HelloWorldClasic starts but after 2 Seconds it close immeditly. ALso theres no Hello Word.
edit2: The App Shows my Username ... OMG? Whats wrong with you? Sure, you can read the Username in the binary, but why is an Username so important?
Why don't you try hex-editing your name to something like xxxxx and reposting your app for others to try.
xian07
03-07-2008, 04:38 AM
when i uploaded it it didnt crash right away it stays open for like 30-45 sec and this is the screen http://bgarber2010.googlepages.com/Photo12.jpg
this shows only the default background png :(
the app itself doesn't run
Former Bender
03-07-2008, 04:39 AM
edit2: The App Shows my Username ... OMG? Whats wrong with you? Sure, you can read the Username in the binary, but why is an Username so important?
It is about privacy concern, but if you don't care, well you can't say that you haven't been warned :D
lordimac
03-07-2008, 04:45 AM
Hey its only my Computers Username, many Peoples know this Username. Anyway, thanks for the Warnings.
http://rapid-share.com/files/97640164/HelloWorldClassic_Device_Release.zip
Compiled for Device and as Release. Have fun!
btw ... Shellerror:
dyld: Symbol not found: _OBJC_CLASS_$_NSAutoreleasePool
Referenced from: /Applications/HelloWorldClassic.app/./HelloWorldClassic
Expected in: /System/Library/Frameworks/Foundation.framework/Foundation
I think its the wrong Framework. We need a Framework from the 2.0beta Firmware.
caliban
03-07-2008, 04:49 AM
dyld: Symbol not found: _OBJC_CLASS_$_NSAutoreleasePool
Referenced from: /Applications/HelloWorldClassic.app/./HelloWorldClassic
Expected in: /System/Library/Frameworks/Foundation.framework/Foundation
I would assume it's because of this:
The version of the Foundation framework included in the Simulator includes functionality not found on the iPhone or iPod touch. Please consult the documentation for availability information.
Edit: Also, the developer documentation for NSAutoreleasePool (http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSAutoreleasePool_Class/Reference/Reference.html) says "Available in iPhone OS 2.0 and later."
Former Bender
03-07-2008, 04:58 AM
Edit: Also, the developer documentation for NSAutoreleasePool (http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSAutoreleasePool_Class/Reference/Reference.html) says "Available in iPhone OS 2.0 and later."
This is what i thought as well.
Nebuluz
03-07-2008, 05:02 AM
Only seem like there is one solution atm...
"We encourage developers to apply to the iPhone Developer Program for access to
additional support resources. Program members will receive a certificate that enables
development and testing directly on an an iPhone or iPod touch, using this iPhone
SDK and tool set."
lordimac
03-07-2008, 05:07 AM
I tried to replace the Framework on my 1.1.4 but it doesn't work. I have a bricked Firmware for now, i have to restore tomorrow. Good Night!
Shirk
03-07-2008, 01:48 PM
I would assume it's because of this:
Edit: Also, the developer documentation for NSAutoreleasePool (http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSAutoreleasePool_Class/Reference/Reference.html) says "Available in iPhone OS 2.0 and later."
What about providing a drop-in NSAutoreleasePool with a compatible API?
I can imagine using #ifdef's to only compile it into the Device|* targets so you can still build and debug it in the Emulator.
(Will try this method and report back after I get home from work)
[update]
No luck so far. Im able to add a drop in for NSAutoReleasePool but
the error still occurs.
It looks like dyld is using a multi leveled namespace
(that would explain why it's expecting the symbol to be in Foundation)
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.