Release build crash on attached device on first launch
I have my iphone project with Login/Password as the first page after default splash screen. When I build & run the project's release configuration on attached iPhone it crashes immediately after (1 sec) the login view show up. No user interaction (user taps) with the app before the crash.
Points to note:
1. The same app doesn't crash every time after the first launch. That is, it work fine when i run it by tapping app icon on device.
2. Debug configuration runs fine all time even at first launch on device.
3. No issues while running the app on simulator in both configuration.
Any pointers about what could be the reason? Please help.
What's the output in the console when it crashes? Post the crash log.
Below is log with Debug mode (App not crashing):
Code:
Sat May 7 19:53:16 unknown installd[4347] <Error>: 2ff66000 verify_signer_identity: APPSYNC bypass enabled
Sat May 7 19:53:16 unknown SpringBoard[30] <Warning>: Killing <SBApplication: 0x1113cf90> com.Safaltek.DanceVideoGenie activate: deactivate: for app installation
Sat May 7 19:53:16 unknown installd[4347] <Error>: 2ff66000 verify_signer_identity: APPSYNC bypass enabled
Sat May 7 19:53:16 unknown SpringBoard[30] <Warning>: Reloading application state for 'com.Safaltek.DanceVideoGenie' as its modification date has changed
Sat May 7 19:53:16 unknown SpringBoard[30] <Warning>: LI:Home: createIconLists: (
"<SBIconListModel: 0x2e9f20>",
"<SBIconListModel: 0x1a847690>"
)
Sat May 7 19:53:17 unknown SpringBoard[30] <Warning>: Reloading and rendering all application icons.
Sat May 7 19:53:17 unknown SpringBoard[30] <Warning>: LI:Home: createIconLists: (
"<SBIconListModel: 0x2e9f20>",
"<SBIconListModel: 0x1a849fc0>"
)
Sat May 7 19:53:19 unknown com.apple.debugserver-48[4352] <Warning>: debugserver-48 for armv6 Copyright (c) 2007-2009 Apple, Inc. All Rights Reserved.
Sat May 7 19:53:19 unknown com.apple.debugserver-48[4352] <Warning>: Connecting to com.apple.debugserver service...
Sat May 7 19:53:19 unknown SpringBoard[30] <Warning>: LI:Lock: disable LS bundle: NowPlayingArtLockScreen
Sat May 7 19:53:19 unknown SpringBoard[30] <Warning>: LI:Lock: _showLockView: hidden: 0, animated: 0, bars: 1
Sat May 7 19:53:19 unknown SpringBoard[30] <Warning>: LI:Scroll: Setting scrolling on reset to 0
Sat May 7 19:53:19 unknown SpringBoard[30] <Warning>: LI:Lock: _showLockView: hidden: 1, animated: 1, bars: 0
Sat May 7 19:53:19 unknown SpringBoard[30] <Warning>: LI:Scroll: Setting scrolling on reset to 0
Sat May 7 19:53:19 unknown SpringBoard[30] <Notice>: MultitouchHID(22c010) uilock state: 1 -> 0
Sat May 7 19:53:19 unknown MobileStorageMounter[4353] <Notice>: (0x3eaf3898) platform_supports_camera_import: Platform is NOT configured for camera import
Sat May 7 19:53:20 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.Safaltek.DanceVideoGenie[0xb54]) Spawned and waiting for the debugger to attach before continuing...
Sat May 7 19:53:20 unknown com.apple.debugserver-48[4352] <Warning>: Got a connection, waiting for debugger instructions for task "(null)".
Sat May 7 19:53:20 unknown kernel[0] <Debug>: lockbot[4344] Builtin profile: debugserver (sandbox)
Sat May 7 19:53:20 unknown kernel[0] <Debug>: set_crc_notification_state 0
Sat May 7 19:53:20 unknown kernel[0] <Debug>: + AppleCLCD[0xc8451000]::interruptOccurred(eventSource 0x817c4280, count 1)punchd[4354] Builtin profile: container (sandbox)
Sat May 7 19:53:20 unknown kernel[0] <Debug>: punchd[4354] Container: /private/var/mobile/Applications/A56F0C55-14F9-43FF-AB78-EAB4CFC20058 [69] (sandbox)
Sat May 7 19:53:23 unknown DanceVideoGenie[4354] <Notice>: MS:Notice: Installing: com.Safaltek.DanceVideoGenie [DanceVideoGenie] (550.52)
Sat May 7 19:53:23 unknown DanceVideoGenie[4354] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Activator.dylib
Sat May 7 19:53:23 unknown DanceVideoGenie[4354] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/libstatusbar.dylib
Sat May 7 19:53:23 unknown DanceVideoGenie[4354] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/sandcastleclient.dylib
Sat May 7 19:53:29 unknown MobileStorageMounter[4353] <Notice>: (0x3eaf3898) idle_timer_callback: Exiting after idle timeout
For my surprise (or may be your surprise), I tried creating a brand new template project without doing anything in the default view controller, not a single line of code nor any change in nibs, still the release build configuration app crashes on first launch over device.