My App was rejected earlier today because it crashes on an iPhone before the application can launch properly. Oddly enough, I can't reproduce the effect on my debugger. I am assuming that this is because the problem only occurs the first time the app launches, which doesn't happen when Xcode compiles the app. (I coded my app to perform a method when the app launches, and if it's the second time the app launches, it does the method in background instead of foreground.) This is the crash log from Apple.
I looked up the exception code and it seems to indicate that the app took too long to start. Does anyone have a suggestion? Thank you all in advance.
Code:
Incident Identifier: 711FEC0C-7933-411E-ADF5-0EC9289ABFD0
CrashReporter Key: d4365cbed4fa63fb6536c6c6925416357a62e6e7
Hardware Model: iPhone3,1
Process: EIS SC [1292]
Path: /var/mobile/Applications/10CA1577-9D5A-4047-8C17-661A66342688/EIS SC.app/EIS SC
Identifier: EIS SC
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-01-16 16:28:35.033 -0800
OS Version: iPhone OS 5.0.1 (9A405)
Report Version: 104
Exception Type: 00000020
Exception Codes: 0x8badf00d
Highlighted Thread: 0
Application Specific Information:
com.eis.eissc failed to launch in time
Elapsed total CPU time (seconds): 5.370 (user 5.370, system 0.000), 26% CPU
Elapsed application CPU time (seconds): 0.807, 4% CPU
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x362a0010 0x3629f000 + 4112
1 libsystem_kernel.dylib 0x362a0206 0x3629f000 + 4614
2 CoreFoundation 0x3436941c 0x342dc000 + 578588
3 CoreFoundation 0x34368154 0x342dc000 + 573780
4 CoreFoundation 0x342eb4d6 0x342dc000 + 62678
5 CoreFoundation 0x342eb39e 0x342dc000 + 62366
6 CFNetwork 0x323fde0c 0x32398000 + 417292
7 Foundation 0x35ceb4b6 0x35cdb000 + 66742
8 Foundation 0x35d0f366 0x35cdb000 + 213862
9 Foundation 0x35d40184 0x35cdb000 + 414084
10 Foundation 0x35d84c70 0x35cdb000 + 695408
11 EIS SC 0x000cb2f4 0xbf000 + 49908
12 EIS SC 0x000c0be8 0xbf000 + 7144
13 EIS SC 0x000c0534 0xbf000 + 5428
14 UIKit 0x377767e4 0x3773b000 + 243684
15 UIKit 0x377703b6 0x3773b000 + 218038
16 UIKit 0x3773e91a 0x3773b000 + 14618
17 UIKit 0x3773e3b8 0x3773b000 + 13240
18 UIKit 0x3773dd26 0x3773b000 + 11558
19 GraphicsServices 0x30b70dec 0x30b6c000 + 19948
20 CoreFoundation 0x3436954c 0x342dc000 + 578892
21 CoreFoundation 0x343694ee 0x342dc000 + 578798
22 CoreFoundation 0x3436833c 0x342dc000 + 574268
23 CoreFoundation 0x342eb4d6 0x342dc000 + 62678
24 CoreFoundation 0x342eb39e 0x342dc000 + 62366
25 UIKit 0x3776f450 0x3773b000 + 214096
26 UIKit 0x3776c73c 0x3773b000 + 202556
27 EIS SC 0x000c03be 0xbf000 + 5054
28 EIS SC 0x000c0368 0xbf000 + 4968
I looked up the exception code and it seems to indicate that the app took too long to start. Does anyone have a suggestion? Thank you all in advance.