iPhone 12 Pro TrueDepth Camera Crash

Hi all,

I'm working on an App that relies on the TrueDepth to obtain depth information through avCaptureSession. Throughout the process, I programmatically turn the TrueDepth camera on/off by setting avCaptureSession to run/stop when the program switch to different views. This has been working fine on my iPhone 11 Pro Max, iPhone X and iPhone XR. Yet, after purchasing the new iPhone 12 Pro, the same program occasionally crashes when switching in these views.

Have anyone else experienced the same problem?

Thanks in advance.
iPhone 12 Pro TrueDepth Camera Crash
 
 
Q