Reputation: 1005
I tried this on a few devices, I have an iOS app that crashes when my phone is not connected via XCode.
Steps I follow:
1) Open XCode Project, connect phone to Mac
2) Launch app through XCode
3) App fully works
4) Unplug cable
5) Click again on app Icon -> crash after spashscreen
Would anyone have any idea where I could look to figure out this problem ? As its only occuring while unplugged, I have no logs.
PS: Also I have submitted this app to the App store (as I didn't notice before) and Apple accepted it. Which means their process didn't even find this problem.
Upvotes: 7
Views: 3070
Reputation: 590
Just for future reference, I had a problem like this, somewhere in my hap I had a CFRelease( NULL); and that caused the crash.
Upvotes: 0
Reputation: 18875
Had the same problem. It's the way you terminate the debugging process. Just add another step:
1) Open XCode Project, connect phone to Mac
2) Launch app through XCode
3) App fully works
4) STOP the application (from XCode)
5) Unplug cable
6) Click again on app Icon -> crash after spashscreen
Upvotes: 6
Reputation: 3123
You can look at the logs that were recorded when the app crashed by plugging it back into your Mac, opening Xcode, going to the Organizer (CMD+SHIFT+2
) and looking at the Console for your device. Hopefully here you should be able to see what's causing the crash.
Upvotes: 4