Because many functions of UIImagePickerViewController will removed in future release(new version iOS14). You should using PHPickerViewController
Please refer below link for more details:
https://stackoverflow.com/questions/50207748/image-picker-viewcontroller-app-stuck-nsxpcconnection