Posts

Post not yet marked as solved
1 Replies
1.8k Views
Seeing a iOS 11 only crash on the line when nil out a timer. Did not see this in iOS 10.if (timerIsSuspended) { dispatch_resume(_myTimer); //balance suspend and resume calls}dispatch_source_cancel(_myTmer);_myTimer = nil; //EXC_BREAKPOINT / EXC_ARM_BREAKPOINT in _dispatch_queue_xref_disposeSaw an old thread from 2015 where we should actually call resume after cancel. Is this now enforced in iOS 11?https://forums.developer.apple.com/message/46175#46175Or wait to nil the timer in a cancellation handler? This code is in dealloc.
Posted
by skamchee2.
Last updated
.