Post

Replies

Boosts

Views

Activity

Reply to PHPickerViewController fails to load image
Same problem here. I'm running in a iPhone X with iOS 15.3.1 I have two photos in the same folder. The first fails when result.itemProvider.loadObject(ofClass: UIImage.self) [0] (null) "public.jpeg" : "/private/var/mobile/Containers/Shared/AppGroup/F925A8FA-C8EC-42CB-8990-0370E73A9808/File Provider Storage/photospicker/version=1&uuid=3034711E-F03B-44CD-B180-659775A56EA6&mode=current.jpeg" The second is ok. [0] (null) "public.jpeg" : "/private/var/mobile/Containers/Shared/AppGroup/F925A8FA-C8EC-42CB-8990-0370E73A9808/File Provider Storage/photospicker/version=1&uuid=299A6E28-21CC-440E-8C1B-A05F479081C0&mode=current.jpeg" I have tried also with result.itemProvider.loadFileRepresentation(forTypeIdentifier: representation), with UTType.jpeg.identifier, and the same error. PHPickerResult(itemProvider: <PUPhotosFileProviderItemProvider: 0x281f4a680> {types = ( "public.jpeg" )}, assetIdentifier: Optional("3034711E-F03B-44CD-B180-659775A56EA6/L0/001")) 2022-02-24 23:45:49.484182+0100 App[1344:394073] [claims] Upload preparation for claim 8E1CBDF5-66F2-4453-87A1-2AB03E93F974 completed with error: Error Domain=NSCocoaErrorDomain Code=260 "The file “version=1&uuid=3034711E-F03B-44CD-B180-659775A56EA6&mode=current.jpeg” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///private/var/mobile/Containers/Shared/AppGroup/F925A8FA-C8EC-42CB-8990-0370E73A9808/File%20Provider%20Storage/photospicker/version=1&uuid=3034711E-F03B-44CD-B180-659775A56EA6&mode=current.jpeg, NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/F925A8FA-C8EC-42CB-8990-0370E73A9808/File Provider Storage/photospicker/version=1&uuid=3034711E-F03B-44CD-B180-659775A56EA6&mode=current.jpeg, NSUnderlyingError=0x283fe1290 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
Feb ’22