A user says my distributed app is freezing up after a few seconds. I don't have access to his phone.
I have no clue how to debug a problem like this from afar.
My only thought is if the user could do something to the app to make it crash...then I woud get a crash log.
But I can't find anyone who can tell me how to make an app crash (other than in code).
Any ideas?
Perhaps I could give him a TestFlight version of the app that contains a timer that would programatically force a crash after 10 seconds?
But I can't find anyone who can tell me how to make an app crash (other than in code).
Back in the day there was a force quit gesture (different from the ‘remove the app from the multitasking UI’ gesture that you’re almost certainly familiar with) but that’s gone by the wayside, alas.
Perhaps I could give him a TestFlight version of the app that contains a timer that would programatically force a crash after 10 seconds?
There’s no guarantee that’ll work; it depends on how badly the app is hung. If you take this path, make sure not to use a run loop based timer, as whatever’s hanging the app may well prevent that from running. Instead, use a Dispatch timer that targets something other than the main queue.
However, they may be better ways:
Pressing the Home button will cause the system to try to suspend the app. If the app is non-responsive, it won’t respond to that suspend request and shortly thereafter it’ll be killed by the watchdog. And that should generate a crash report.
You could ask for a sysdiagnose log. That may contain a spin trace for the hung app.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"