FromtheNE
Aspiring developer
Profile
Posts: 47
Reg: Sep 02, 2012
MA
3,220
11/25/12 06:27 AM (13 years ago)

Crash on startup only with device

Hello - I am updating my app that's in the app store to include the socialize action bar. I have it fully integrated and working great with the simulator on all software versions/devices. However, when I archive and test on my iPhone4 it crashes at start-up every time. The crash log for one of these instances shows the following at the top: Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x00000000, 0x00000000 Crashed Thread: 0 I tried excluding directories as in the post below with no luck. I also tried product>clean, deleting derived data, old archives, resetting the simulator, restarting, etc. with no luck. I'm not experienced enough with Xcode to make more sense of the crash log and I don't want to start changing code at random. http://stackoverflow.com/questions/5458573/xcode-4-failure-to-symbolicate-crash-log If anyone has had similar issues or has any other suggestions or help please let me know. thanks!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/25/12 11:05 AM (13 years ago)
SIGBART is super hard to debug. It's almost always related to a call to "release" on an object. Releasing memory. If you're not a developer this could be confusing. I have zero experience with Socialize but understand the concept. I don't see anything in the post you referenced about Socialize. That post covers some good but generic concepts about crashing and the like. TONS of stuff can cause this. Some ideas: How hard is it to remove Socialize to see if it stops crashing? Can you get your home or splash screen to load? Do have a newer or older device to test on? May help determine if it's an iOS version issue? Not sure what else to offer without knowing tons more about your project. Nearly impossible in a forum. Maybe re-fetch your code from your bt control panel to make sure it compiles and runs without Socialize then go step-by-step until you can reproduce the crash at will. This may help pinpoint the trouble.
 
FromtheNE
Aspiring developer
Profile
Posts: 47
Reg: Sep 02, 2012
MA
3,220
like
11/25/12 06:49 PM (13 years ago)
David - thanks for the response. I dug up the link I referenced from a google search related to the SIGABRT crash that only occurred on device and not simulator. The crash occurs right after the splash screen loads. After reading some more there may be an issue with the linkers and socialize framework and I will try your suggestions and hope to pinpoint the issue. Also the crash report shows language and references to libsystem_kernel.dylib and libsystem_c.dylib in all of the threads, not sure if that helps. thanks
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/25/12 09:46 PM (13 years ago)
Ah, yup, on device but not on simulator..makes sense that you landed on that Stack Overflow discussion. I think because the Splash Screen loads, but then it crashes, you'll end up finding something with the plugin that is used as the home screen. Keep in mind that if you have a tabbed app, all the home screens (one for each tab) will initialize when the app launches so you may need to go one-by-one until it doesn't crash.
 
FromtheNE
Aspiring developer
Profile
Posts: 47
Reg: Sep 02, 2012
MA
3,220
like
11/26/12 04:54 AM (13 years ago)
David - thanks I got it. I re-read the socialize documentation before starting from scratch in case I made an error. I added the -ObjC and -all_load flags in other linkers, but they also required the -fobjc-arc if the app is not arc-enabled. I had this under release in Build Settings, but not in the "all SDK" subdirectory under release settings. thanks for the help -
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.