Crash when built with xCode

You must Login before you can answer or comment on any questions.

I can run in the simulator, run on the device when pushed to the phone through iTunes. But, when I build with xCode and distribute with Hockey, the app installs but crashes immediately on launch. I have symbolicated my device log down to an eval error, but can't dive any deeper. Community people have suggested it's possible this is JS Syntax problems. I am not sure what it is. I just want to know how to investigate this and future errors further so that I can see what is actually going on.

This has me dead in the water.

  • Titanium Studio 2.1.1.201208091713
  • Titanium SDK 2.1.1.GA
  • Only module used is the Ti.Cloud included with Studio
    Thread 5 name:  KrollContext<kroll$1>
    Thread 5 Crashed:
    0   libsystem_kernel.dylib          0x3623b32c 0x3622a000 + 70444
    1   libsystem_c.dylib               0x32d87208 0x32d3a000 + 315912
    2   libsystem_c.dylib               0x32d80298 0x32d3a000 + 287384
    3   libc++abi.dylib                 0x35d3df64 0x35d37000 + 28516
    4   libc++abi.dylib                 0x35d3b346 0x35d37000 + 17222
    5   libobjc.A.dylib                 0x37d2c350 0x37d23000 + 37712
    6   libc++abi.dylib                 0x35d3b3be 0x35d37000 + 17342
    7   libc++abi.dylib                 0x35d3b44a 0x35d37000 + 17482
    8   libc++abi.dylib                 0x35d3c81e 0x35d37000 + 22558
    9   libobjc.A.dylib                 0x37d2c2a2 0x37d23000 + 37538
    10  SampleApp                      0x0009295c -[KrollInvocation invoke:] (KrollContext.mm:122)
    11  SampleApp                      0x00093c34 -[KrollContext invokeOnThread:method:withObject:callback:selector:] (KrollContext.mm:978)
    12  SampleApp                      0x000903cc -[KrollBridge evalFile:callback:selector:] (KrollBridge.mm:480)
    13  SampleApp                      0x00090b7a -[KrollBridge didStartNewContext:] (KrollBridge.mm:604)
    14  CoreFoundation                  0x358e41f4 0x358cc000 + 98804
    15  SampleApp                      0x0009446e -[KrollContext main] (KrollContext.mm:1147)
    16  Foundation                      0x35414a7a 0x35404000 + 68218
    17  Foundation                      0x354a858a 0x35404000 + 673162
    18  libsystem_c.dylib               0x32d4872e 0x32d3a000 + 59182
    19  libsystem_c.dylib               0x32d485e8 0x32d3a000 + 58856
— asked 10 months ago by Alfred Chiesa
4 Comments
  • It says the KrollContext is crashing which almost guaranteed is a Javascript error, ... The only way to debug this I know of is to throw some Ti.API.info right at the beginning of your app.js, just to see where it gets too.

    — commented 10 months ago by Josiah Hester

  • When running app through xcode and device is connected to mac, you can check the console log under "All Output". It will show all Ti.API.info statements.

    http://developer.appcelerator.com/question/139145/best-way-to-get-log-of-app-from-device

    — commented 10 months ago by swaroopa aennam

  • The only error line I see is this:

    Aug 16 19:03:26 unknown Sample App[5064] <Error>: *** Terminating app due to uncaught exception of class '__NSCFString'

    — commented 10 months ago by Alfred Chiesa

  • Show 1 more comment

Your Answer

Think you can help? Login to answer this question!