I am seeing main thread freezing for a few seconds in my app only on iOS 8 (not on previous iOS versions).
I am using @synchronised (self)
at a number of places and also using RemoteIO setup. My question is how do I debug where exactly is the main thread blocking and get additional information, such as what it is doing at that time ?
I am using Xcode 6 so please tell me the best way to debug.
EDIT: Here is the output from Pause.
As a first step to understand what's happening I would suggest to simply press Pause in debugger while you're having a freeze. It will show you which thread is doing what at that point.
You will either see a task that is still executing, or msg_trap row indicating that there's a lock somewhere.
Post here what you found out.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With