Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS app crashing every other launch, can't find error
    primarykey
    data
    text
    <p>First time I launch the app, everything seems to run fine. I'll hit the stop button, do some work and when I go to launch it again, it seems to crash before it can even load anything. Press stop, hit Run again, and it works fine. Until I repeat the process. </p> <p>This is where xcode is highlighting the error with "Thread 1:signal SIGABRT". Obviously nothing useful here. </p> <pre><code>int main(int argc, char *argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([PokerAppDelegate class])); } } </code></pre> <p>The debug console shows nothing besides (lldb) (So I suppose its stopping, not crashing at this point) So, when I perform a <code>BT</code> this is what I get:</p> <pre><code>(lldb) bt * thread #1: tid = 0x1c03, 0x9a258a6a libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGABRT frame #0: 0x9a258a6a libsystem_kernel.dylib`__pthread_kill + 10 frame #1: 0x99ea1b2f libsystem_c.dylib`pthread_kill + 101 frame #2: 0x04a7057b libsystem_sim_c.dylib`abort + 140 frame #3: 0x01dc0b4e GraphicsServices`GSRegisterPurpleNamedPort + 348 frame #4: 0x01dc069f GraphicsServices`_GSEventInitialize + 123 frame #5: 0x01dc0c1f GraphicsServices`GSEventInitialize + 36 frame #6: 0x000163f9 UIKit`UIApplicationMain + 600 frame #7: 0x00001d0d Guitar Chord Poker HD`main(argc=1, argv=0xbffff32c) + 141 at main.m:16 frame #8: 0x00001c35 Guitar Chord Poker HD`start + 53 (lldb) </code></pre> <p>Here's what I have done so far:</p> <ul> <li>Performed a 'Clean' </li> <li>I've reset the simulators and reset my computer</li> <li>I've commented out all the code in the view controller, still crashes</li> <li>I've commented out all the code in the app delegate, still crashes</li> <li>BUT....I've run the app on a device outside of Xcode, and it seems to work perfectly fine.</li> <li>(EDIT) I've deleted/reinstalled xcode, and all content(Simulators, Docs) from the various cache folders (This stops xcode from automatically reinstalling the old ones after a new download). Still can't find where command line tools is kept though. Still crashes. </li> </ul> <p>Despite all this, apps still crash every second/other launch. </p> <p>Thing is I had no issues until the most recent Xcode update. Could it be an Xcode bug? </p> <p>(EDIT) I am also running the latest developer releases of OSX. Could that be interfering?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    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