I'm playing with Photo library on iOS device. I try to write PHAssetResource
to a local file. Sometimes it works sometimes it doesn't and I get an error Error: Unable to locate resource <PHInternalAssetResource: 0x1740e8900> type=photo size={3264, 2448} fileSize=3185088 uti=public.jpeg filename=IMG_6683.JPG assetLocalIdentifier=BF00A76D-AC8E-4481-BC45-3E18D80C656D/L0/001
.
It happens for PHAssets
that are not on local device. I set isNetworkAccessAllowed
of PHAssetResourceRequestOptions
to true and check progress and it reports that downloading stop on 0,5 and thorw above error.
I wonder what happened. I can't find any explanation in docs.