xcode camera error with input file images

The app is a webview where there is a form where an input file image is loaded. The problem is that when selecting an image from the camera, the app crashes. If you can upload images from Photo LIbrary and Choose File