UIImagePickerController no longer returns .mediaURL on some iOS 14.2 devices

Hello, as per title - I am using UIImagePickerController to select videos. Previously I used mediaURL key and it was available even for videos stored on iCloud.

On iOS 14.2, I see that some of the selected videos only have referenceURL (which was deprecated). If I try using that to fetch PHAsset, it triggers permission request.

I have first noticed this behavior for all simulators, but then I was told that this also happens on some devices (ipad mini I believe).

Am I doing something wrong?
It means your app is under the limited library access mode. It's recommended to avoid requesting Photos library access and switch to PHPickerViewController if possible.

Please refer to Handle the Limited Photos Library in your app session for more information.
Thank you for the answer. I am aware of limited photos library, but I was under the impression that to use UIImagePickerController I do not need to get user permission first? I would need permission if I were to build custom picker within the app (and querying all the assets myself), but since UIImagePickerController runs on a separate process, it should return medialURLs to only the assets user has selected. Is this correct? After all I see all the assets in the picker, it's just that urls are missing.

It makes sense that fetching PHAsset prompts for permission, but my main concern is that mediaURL stopped working on some iOS 14 devices. All my physical devices work like before (they return medial URL), but simulators and some ipads that my company has no longer work. All devices are running 14.2.

EDIT: same user, different accounts :)
UIImagePickerController no longer returns .mediaURL on some iOS 14.2 devices
 
 
Q