I have an App that works fine with IOS 10.3. However, when the same App compiled and ran under IOS 11, the Main thread took up 98% of the CPU. Timing profile showed that it is [UITextSelectionView caretBlinkTimerFired]. Half of the cycle spent in showCaret and the other half in hideCaret.
Here is the tree:
Main Thread
start
0x100b2fcde
UIApplicationMain
GSEventRunModal
CFRunLoopRunSpecific
_CFRunLoopRun
_CFRunLoopDoTimer
_DFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION_
_NFFireTimer
-[UITextSelectionView caretBlinkTimerFired:]
48% - [UITextSelectionView showCaret:]
48% -[UITextSelectView hideCaret:]
What should I do to figure out where the problem is?
I don't even need to run the app on real device, the problem can be demonstrated with IOS 10.3 simulator and IOS 11 simulator.
Any help would be greatly appreciated.