Search Issue Tracker

Fixed in Unity 2018.2



Found in


Issue ID




[iOS][ReplayKit] Recording with ReplayKit fails on iOS 11 latest beta




Priority: 2Necessary for shipping a final release


Severity: 3Workaround is possible

Steps to reproduce:

1. Open attached project
2. Build 'Test' scene for iOS
3. Run on a device with latest iOS 11 beta (15A5341f)
4. Click "Start Recording" and then choose "Record Screen" when the popup appears
5. Notice the recording fails with error:
'startRecordingWindowLayerContextIDs:windowSize:microphoneEnabled:cameraEnabled:broadcast:systemRecording:captureEnabled:listenerEndpoint:withHandler:', dropping incoming message and calling failure block.
Exception: accessing _cachedSystemAnimationFence requires the main thread

Doesn't reproduce with earlier iOS versions (including earlier iOS 11 betas)
Broadcasting seems to work fine.

Comments (9)

  1. D748093f708010d2abc30e5825d27a77?d=mm


    Mar 21, 2018 04:38

    I saw the status "Fixed in future release" from a long time ago (may be 2017.2?) Now they released 2017.4.0f1 and this bug has not fixed yet? What is that future release? 2020? 2030?

  2. 98190935593a1d1dce3a9898e5a6fab3?d=mm


    Nov 09, 2017 08:53

    Problem also exists in Unity 5.6.4p1 / Xcode 9.1 / iOS 11.1 (15B83). Severe on iPhone 6, not so bad on iPad Pro 9 inch. Seems worse on my test devices than I thought previously. Sometimes I don't get the "Error Code=-5804 "Failed during recording" UserInfo={NSLocalizedDescription=Failed during recording}" error code, but then another problem arises: videos are not always saved when we tap save in the preview window.
    In this thread:
    lupidan suggests that it is a problem with Apple and not Unity, so we should probably go here to let Apple know:

  3. 98190935593a1d1dce3a9898e5a6fab3?d=mm


    Oct 24, 2017 11:06

    Have also encountered this issue previously, also before iOS11. Usually it works fine on my own test devices, but once in a while a user will contact me with the issue. Sometimes a restart of the device or a re-install of the app can solve it, but not always.

  4. Bd8b27c07a270dc81f2f370d7f2bfab9?d=mm


    Oct 18, 2017 13:04

    Hi guys. I had the same issue (xCode 9.0, unity 2017.1.0f3). I resolved it by simple phone relaunch

  5. A816fea1d06711990569986d8bbc472a?d=mm


    Oct 17, 2017 15:31

    Still crashing with 2017.2 with iOs 11.

  6. 563f71acb8fe8aee20bfa115d7495c9a?d=mm


    Oct 14, 2017 21:40

    same problem with 2017.2

  7. 77d9bbc821ac561ee2469b26e9a92925?d=mm


    Oct 10, 2017 21:39

    This seems to be open for a while now, any news?

  8. Dc8bdaa8e65233f444689f65a7ccc589?d=mm


    Aug 29, 2017 05:12

    Any new guys? Unity ReplayKit is not working on iOS11 beta 8.

  9. 45c3f1fae55e7e47cc02d4cacf040164?d=mm


    Aug 14, 2017 22:39

    Are you using a 3rd party plugin for ReplayKit use? I’ve tried 2 and have the same issue in iOS 11. No problems in iOS 10...

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.