UIImagePickerControllerReferenceURL is deprecated starting iOS 11. The docs say to use PHPickerViewController, but that is only available starting iOS 14. What should I use for projects that fall in between, i.e. that a project that requires iOS 13?
Try using UIImagePickerController.InfoKey.phAsset instead of UIImagePickerControllerReferenceURL. This is available from iOS 11