In a certain (consistent) point when my app is running, I consistently get the xcode error message
Terminated due to memory error.
I had similar issue in Xcode 11.3 wherein camera was getting calling every-time we press on try again button. If these is done multiple times then crash happens.
This was fixed when we disabled Zombie objects. Below are steps:
Now, run your project. It should work fine.