Recording interrupted by multitasking and content resizing

i0S Swift Issue

Question or problem in the Swift programming language:

A try to start a screen recording with RPScreenRecorder. I got the following error:

func startRecording() {
    let recorder = RPScreenRecorder.shared()
    recorder.startRecording(handler: { (error) in
        if let unwrappedError = error {
        } else {


Before iOS 12.0 everything worked fine. From the update I get the error above.

How to solve the problem:

Solution 1:

My app has been rejected from App store for the same reason. So far the only workaround is to reboot the device.

Solution 2:

I had a similar problem and here is how I solved it.
go to project then targets then capability switch on Background mode then enable audio and VOIP. It should work

Solution 3:

I’ve done a lot of research on the errors and posted the solution Here.

For now my screen recording feature is bug free. But who knows what comes with the new OS updates

Solution 4:

We’ve been rejected same issue several times.

But we found a senario to re-produce as bellow,
We reported it on Resolution Center in App Store Connect, then passed.

  1. connect iOS(12.4) device to host launched XCode 10.3
    (regardless of opened related project)
  2. cold boot iOS device.
  3. launch app and start recording video ASAP(until 30sec after booted)

Now iOS13, we don’t face this error at the above senario.

Hope this helps!