if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction

3 Solutions Collect From Internet About “if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction”

This message appears when the orientation of the device changes and is probably some issue from Apple side. A radar has been filed for this issue (Radar Number 28250512)
You can ignore the message temporarily, or else, you can disable the logs given by OS by setting the environment variable as described in this answer.

in your Xcode:

Click on your active scheme name right next to the Stop button

Click on Edit Scheme….

in Run (Debug)–>select the Arguments tab

in Environment Variables click +

add variable: OS_ACTIVITY_MODE = disable

In Your Xcode Project Go to the Top of the screen you see Product Click on the Product and you see Bottom third option Scheme click on the Scheme you see Bottom third option Edit Scheme click on the Edit Scheme then First option is Arguments Passed On Launch and and you see + and – button here click on the + button and Write OS_ACTIVITY_MODE and check this and write bottom option close click on close your error will Remove Enjoy. :p