Video Capture not working in IOS

I’ve been working on a project that captures video and uploads it to server…but whenever I am testing on IOS device app crashes without any error message.