Why is there an error when loading livePhoto in PHPicker without the photo library premissions?

hello,I am trying to figure out how to get livePhoto、gif and the picture on the icloud in PHPicker without the Photo Library permissions, but I get the error message like this :

2020-07-10 20:38:42.314255+0800 NewsInHouse[1307:315714] error = Error Domain=NSItemProviderErrorDomain Code=-1000 "Cannot load representation of type com.apple.live-photo-bundle" UserInfo={NSLocalizedDescription=Cannot load representation of type com.apple.live-photo-bundle, NSUnderlyingError=0x282049680 {Error Domain=NSCocoaErrorDomain Code=260 "未能打开文件“7B1C8EE4-4A3E-4287-9369-8592943BC4AD.pvt”,因为它不存在。" UserInfo={NSURL=file:///private/var/mobile/Containers/Shared/AppGroup/3343D5E0-FD07-49AB-9131-3DADE85A46DC/File%20Provider%20Storage/7B1C8EE4-4A3E-4287-9369-8592943BC4AD.pvt, NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/3343D5E0-FD07-49AB-9131-3DADE85A46DC/File Provider Storage/7B1C8EE4-4A3E-4287-9369-8592943BC4AD.pvt, NSUnderlyingError=0x2820042d0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}}}
2020-07-10 20:38:42.314914+0800 NewsInHouse[1307:315749] [claims] Upload preparation for claim AE112428-E555-4AE1-91FC-041138DAE978 completed with error: Error Domain=NSCocoaErrorDomain Code=260 "未能打开文件“7B1C8EE4-4A3E-4287-9369-8592943BC4AD.jpeg”,因为它不存在。" UserInfo={NSURL=file:///private/var/mobile/Containers/Shared/AppGroup/3343D5E0-FD07-49AB-9131-3DADE85A46DC/File%20Provider%20Storage/7B1C8EE4-4A3E-4287-9369-8592943BC4AD.jpeg, NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/3343D5E0-FD07-49AB-9131-3DADE85A46DC/File Provider Storage/7B1C8EE4-4A3E-4287-9369-8592943BC4AD.jpeg, NSUnderlyingError=0x2822b4c00 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}


2020-07-10 20:37:24.319653+0800 NewsInHouse[1307:315256] error = Error Domain=NSItemProviderErrorDomain Code=-1000 "Cannot load representation of type public.jpeg" UserInfo={NSLocalizedDescription=Cannot load representation of type public.jpeg, NSUnderlyingError=0x2822990e0 {Error Domain=NSCocoaErrorDomain Code=260 "未能打开文件“20476F3A-AA2D-4F7F-9856-5211A0E6FA34.jpeg”,因为它不存在。" UserInfo={NSURL=file:///private/var/mobile/Containers/Shared/AppGroup/3343D5E0-FD07-49AB-9131-3DADE85A46DC/File%20Provider%20Storage/20476F3A-AA2D-4F7F-9856-5211A0E6FA34.jpeg, NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/3343D5E0-FD07-49AB-9131-3DADE85A46DC/File Provider Storage/20476F3A-AA2D-4F7F-9856-5211A0E6FA34.jpeg, NSUnderlyingError=0x282244c00 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}}}



here is my code:
Code Block
- (void)getPhotoFromResult:(PHPickerResult *)result completions:(void(^)(UIImage *image))completion API_AVAILABLE(ios(14.0)) {
  NSItemProvider *provider = result.itemProvider;
  if ([provider canLoadObjectOfClass:[PHLivePhoto class]]) {
    [provider loadObjectOfClass:[PHLivePhoto class] completionHandler:^(PHLivePhoto *livePhoto, NSError * _Nullable error) {
      if (error) {
        NSLog(@"error = %@",error);
      } else if (livePhoto && completion) {
        NSLog(@"livePhoto = %@",livePhoto);
      } else if (!livePhoto && completion) {
        completion(nil);
      }
    }];
  }
   if ([provider canLoadObjectOfClass:[UIImage class]]) {
    [provider loadObjectOfClass:[UIImage class] completionHandler:^(id image, NSError * _Nullable error) {
      if (error) {
        NSLog(@"error = %@",error);
      } else if (image && completion) {
        completion(image);
      } else if (!image && completion) {
        completion(nil);
      }
    }];
  }
}


We are aware of this issue (64630315) and it will be fixed in a future release.

To workaround the issue for now, you can reset your simulator / device.
I've the same issue in case Low Disk Space. I don't understand, why i cannot load Bytes of the photo from iCloud, I don't want to save it on Disk.
Why is there an error when loading livePhoto in PHPicker without the photo library premissions?
 
 
Q