Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Nothing I tried would fix this (tried both compilers, both debuggers, etc.) After upgrading XCode for the iOS 5 update, no stack traces seemed to work.</p> <p>However, I have found an effective work-around - creating my own exception handler (which is also useful for other reasons). First, create a function that will handle the error and output it to the console (as well as whatever else you want to do with it):</p> <pre><code>void uncaughtExceptionHandler(NSException *exception) { NSLog(@"CRASH: %@", exception); NSLog(@"Stack Trace: %@", [exception callStackSymbols]); // Internal error reporting } </code></pre> <p>Next, add the exception handler to your app delegate:</p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { NSSetUncaughtExceptionHandler(&amp;uncaughtExceptionHandler); // Normal launch stuff } </code></pre> <p>That's it!</p> <p>If this doesn't work, then there are <strong>only two possible reasons</strong>:</p> <ol> <li>Something is overwriting your <code>NSSetUncaughtExceptionHandler</code> call (there can be only one handler for your entire app). For example, some 3rd party libraries set their own uncaughtExceptionHandler. So, try setting it at the END of your <code>didFinishLaunchingWithOptions</code> function (or selectively disabling 3rd party libraries). Or better yet, set a symbolic break point on <code>NSSetUncaughtExceptionHandler</code> to quickly see who is calling it. What you may want to do is to modify your current one rather than adding another one.</li> <li>You're not actually encountering an exception (for example, <code>EXC_BAD_ACCESS</code> is <strong>not</strong> an exception; credit to @Erik B's comments, below)</li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload