Since moving to Xcode 9 I observe a strange behaviour while resuming from a breakpoint on Simulator.
My app uses multiple threads significantly, and some breakpoints are set in the code on different threads. Once the app stops on a breakpoint and then is resumed (repeated a couple of times on different breakpoints) it freezes eventually forever, which looks like a deadlock on a main thread:
- UI is unresponsive
(however some UI animations are played) and the callstack shows
__ulock_wait
on the main thread.
In the same time other background threads shows various actions e.g. on logging mechanism (CocoaLumberjack), downloading pictures (Alamofire), etc. This is not happening while testing on the same breakpoints on a device connected to the Xcode or on previous version of Xcode. I've also tested the behaviour on one of many PODs' demo app used in the app with the same result.
Described behaviour brings debugging experience to annoying level and even breaks possibility to debug some part of the code completely. Could anyone confirm a similar, unwanted behaviour?