12

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

Recording interrupted by multitasking and content resizing

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

        }
    })
}

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

Maciej S
  • 792
  • 1
  • 7
  • 16
janosdupai
  • 519
  • 1
  • 5
  • 16

4 Answers4

1

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

  • Can you please share with us their reasoning when they rejected? – Talha Ahmad Khan Oct 15 '18 at 05:15
  • @TalhaAhmadKhan They thought that this error message was related to Network because it was easily reproducible in wifi condition. So they asked me to check the network handling. Removing the animation during recording can reduce the frequency of this bug but it can still happen inconsistently. – user9837656 Oct 15 '18 at 17:53
  • I've done a lot of research on the errors and posted the solution here: https://stackoverflow.com/questions/51440249/replaykit-startcapturewithhandler-not-sending-cmsamplebufferref-of-video-type For now my screen recording feature is bug free. But who knows what comes with the new OS updates – Talha Ahmad Khan Oct 16 '18 at 06:00
  • @TalhaAhmadKhan I agree with you that it might be related to UI prompt because on my side it used to happen when the permission alert ("Allow screen recording in appName") was supposed to be displayed. Unfortunately there is no way to delay the alert display. – user9837656 Oct 17 '18 at 12:17
  • I was also facing same issue and I found a strange solution for this. After permission alert and I restarted device and this error do not come again. – Code Hunter Oct 25 '18 at 09:22
1

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

Ahmed
  • 1,229
  • 2
  • 20
  • 45
  • I have tried this steps. Didnt work for me. In Addition to this two steps I restarted xCode and reboot device. This work for me. – pallavi Apr 30 '19 at 09:29
0

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

Talha Ahmad Khan
  • 3,416
  • 5
  • 23
  • 38
0

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.

gibson
  • 1