Application failed to resume in time

前端 未结 2 1735
滥情空心
滥情空心 2021-02-04 21:57

I encounter a \"failed to resume in time\" crash (which I assume to be watchdog related) on a very specific scenario: Only when resuming from background, and only when doing it

2条回答
  •  伪装坚强ぢ
    2021-02-04 22:48

    find in which thread you app is crashing put that thread in dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ dispatch_async(dispatch_get_main_queue(), ^{ // run that crashing thread here. }); });

提交回复
热议问题