File Provider Extension, importDocumentAtURL:: can't read file at given URL (iOS 11.4.1)

  • I can’t access any of MY files like this bc they have private info info them from someone else.

Add a Comment

Apple Recommended

Replies

You need to call


[fileURL startAccessingSecurityScopedResource];


before accessing the file, and


[fileURL stopAccessingSecurityScopedResource];


once you're done.

``startAccessingSecurityScopedResource``

Um

Hi

Add a Comment

fileURLmyFileURLcopyErrorNSStringcopyErrorMessagecopyError.localizedDescription

I love

I love

thank you

Wow thank you

file:///var/mobile/Containers/Data/Application/0C43235D-B792-47DB-B7FD-CC4E7E1A6D32/Library/Caches/GBTNetworkFileCacheDirectory/GBTAttachmentCache.MTEzOTY5MDIwODM3MTMwNzU2NDA3/6D91F705-B6B0-415A-81ED-E96AC78CE0B8/Burratta-Espuma-2.pdf