iOS 10: “[App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction”

前端 未结 6 1536
生来不讨喜
生来不讨喜 2020-11-28 00:41

I sometimes get this message in the logs of Xcode 8b3 when running my app, everything seems to work, but I\'d like to know where this comes from. Google did not help at all.

6条回答
  •  甜味超标
    2020-11-28 00:55

    It comes from +[UIWindow _synchronizeDrawingAcrossProcessesOverPort:withPreCommitHandler:] via os_log API. It doesn't depend from another components/frameworks that you are using(only from UIKit) - it reproduces in clean single view application project on changing interface orientation.

    This method consists from 2 parts:

    1. adding passed precommit handler to list of handlers;
    2. do some work, that depends on current finite state machine state.

    When second part fails (looks like prohibited transition), it prints message above to error log. However, I think that this problem is not fatal: there are 2 additional assert cases in this method, that will lead to crash in debug.

    Seems that radar is the best we can do.

提交回复
热议问题