+ Reply
Results 1 to 2 of 2

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: my app that compiled with toolchain, is crashing

is a discussion within the

iPhone / iPod Touch SDK | Development Discussion

forums, a part of the

3rd Party Apps For iPhone | iPod Touch

section;
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
...
  1. #1
    What's Jailbreak?
    Join Date
    Sep 2009
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question my app that compiled with toolchain, is crashing
    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 ?
    Attached Files Attached Files

  2. #2
    Developer NetMage's Avatar
    Join Date
    Aug 2007
    Location
    Virginia
    Posts
    1,296
    Thanks
    72
    Thanked 210 Times in 168 Posts

    The error indicates you are sending a message ( _setHidden: ) that is not defined on the receiving object (of class UIWindow).

    That is like calling an undefined function.

    A quick Google shows a method named setHidden: but not one named _setHidden:

    Try changing _setHidden: to setHidden: and see how that works.
    Starlight Computer Wizardry
    Pocket-sized Development
    Follow me on twitter: @NetMage

  3. The Following User Says Thank You to NetMage For This Useful Post:

    deniz-777 (10-15-2009)

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