hi, i have iphone 2g os 3.0. i got example codes from O'Reilly's iphone open app development 2. edition. My app's directory is /Applications/MyExample.app (in the attachments). i compiled codes succesfully and ldid it. also i did this:
Code:
sysctl -w security.mac.proc_enforce=0
sysctl -w security.mac.vnode_enforce=0
permissions
Code:
-rw-r--r-- 1 root wheel 151962 Oct 7 12:24 Default.png
-rw-r--r-- 1 root wheel 752 Oct 7 12:23 Info.plist
-rwxr-xr-x 1 root wheel 14320 Oct 10 13:51 MyExample*
-rw-r--r-- 1 root wheel 409 Oct 7 12:20 MyExample.h
-rw-r--r-- 1 root wheel 1234 Oct 7 12:21 MyExample.m
-rw-r--r-- 1 root wheel 6568 Oct 9 16:33 MyExample.o
-rw-r--r-- 1 root wheel 4264 Sep 28 19:11 icon.png
-rw-r--r-- 1 root wheel 501 Oct 7 12:50 makefile
my app is crashing. i looked from iphone configuration utility's console:
Code:
Wed Oct 7 19:32:11 unknown MyExample[238] <Error>: *** -[UIWindow _setHidden:]: unrecognized selector sent to instance 0x113650
Wed Oct 7 19:32:11 unknown MyExample[238] <Error>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[UIWindow _setHidden:]: unrecognized selector sent to instance 0x113650'
Wed Oct 7 19:32:11 unknown MyExample[238] <Error>: Stack: (\n 808001701,\n 805397928,\n 808005509,\n 807501935,\n 807464352,\n 9600,\n 814683556,\n 814682492,\n 814970032,\n 814968048,\n 814966908,\n 839149932,\n 807750263,\n 807747947,\n 814678868,\n 814672532,\n 8872,\n 8572,\n 8216\n)
Wed Oct 7 19:32:11 unknown UIKitApplication:com.gojohnnyboi.sampleapp[0x9a26][238] <Notice>: terminate called after throwing an instance of '
Wed Oct 7 19:32:11 unknown UIKitApplication:com.gojohnnyboi.sampleapp[0x9a26][238] <Notice>: NSException
Wed Oct 7 19:32:11 unknown UIKitApplication:com.gojohnnyboi.sampleapp[0x9a26][238] <Notice>: '
Wed Oct 7 19:32:12 unknown ReportCrash[239] <Notice>: Formulating crash report for process MyExample[238]
Wed Oct 7 19:32:13 unknown SpringBoard[131] <Warning>: Application 'MyExample' exited abnormally with signal 6: Abort trap
Wed Oct 7 19:32:13 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.gojohnnyboi.sampleapp[0x9a26]) Job appears to have crashed: Abort trap
Wed Oct 7 19:32:13 unknown ReportCrash[239] <Error>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/MyExample_2009-10-07-193211_deniz-777.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
note: MyExample_2009-10-07-193211_deniz-777.plist is in attachments
an other console log:
Code:
Fri Oct 9 19:52:47 unknown MyExample[302] <Error>: *** -[UIWindow _setHidden:]: unrecognized selector sent to instance 0x113440
Fri Oct 9 19:52:47 unknown MyExample[302] <Error>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[UIWindow _setHidden:]: unrecognized selector sent to instance 0x113440'
Fri Oct 9 19:52:47 unknown MyExample[302] <Error>: Stack: (\n 808001701,\n 805397928,\n 808005509,\n 807501935,\n 807464352,\n 9600,\n 814683556,\n 814682492,\n 814970032,\n 814968048,\n 814966908,\n 839149932,\n 807750263,\n 807747947,\n 814678868,\n 814672532,\n 8872,\n 8572,\n 8216\n)
Fri Oct 9 19:52:47 unknown UIKitApplication:com.gojohnnyboi.sampleapp[0xf8f1][302] <Notice>: terminate called after throwing an instance of 'NSException'
what can i do ?