Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: App crashes when pressing record in Instruments

Regardless of the template I pick in Instruments (Allocations, Leaks, Activity Monitor) - the app crashes right away when pressing record. There is NO stack trace or any warning whatsoever - and after that the Instruments sometimes freezes and needs to be forcibly shut down.

I'm using XCode 6.3.2.

I should also add that this is happening on my device.

like image 974
etayluz Avatar asked Aug 06 '15 18:08

etayluz


People also ask

Why does my app keep crashing iOS?

When your apps keep crashing on your iPhone, updating them may just be the trick to solving it. To quickly check whether a specific app has an update, go to the App Store's Search tab to find the app. If an update is available, you'll see an Update button instead of the usual Open button. Tap on it to update the app.


2 Answers

I found a workaround. After installing app to phone via XCode, I kill the app. Then I go to Instruments and select the app in Instruments and press the record. This launches the app on the phone and the Instruments work!

Also, the proper way to launch Instruments is by pressing CMD-I in XCode. I was opening it from the developer tools which is wrong.

like image 64
etayluz Avatar answered Oct 17 '22 17:10

etayluz


If you got to 'Window -> Devices and Simulators' you can look at the crash logs on the device in question.

like image 28
CMash Avatar answered Oct 17 '22 15:10

CMash