Flutter_file_picker: FIle image picker doesn't work on latest IOS 14

Created on 23 Sep 2020  路  6Comments  路  Source: miguelpruivo/flutter_file_picker

file_picker:2.0.1+1

Describe the bug
I have granted photos permission before a pick image files, and after i pick one, i got an error

  • -[FilePickerPlugin picker:didFinishPicking:] [Line 351]
    2020-09-23 13:12:41.697062+0200 Runner[1342:413734] [default] [ERROR] Could not create a bookmark: NSError: Cocoa 257 "The file couldn鈥檛 be opened

Issue details

  1. IOS
  2. 14
  3. jpg
  4. pick a single file type image

Error Log

  • -[FilePickerPlugin picker:didFinishPicking:] [Line 351]
    2020-09-23 13:12:41.697062+0200 Runner[1342:413734] [default] [ERROR] Could not create a bookmark: NSError: Cocoa 257 "The file couldn鈥檛 be opened

Flutter Version details
1.22.0-12.1.pre

bug iOS wip

All 6 comments

Related to #406.

@lecicdjuro this should be fixed with 2.0.1+2. Would you mind give it a try and see if it's working for you?

@miguelpruivo The issue is still present. The first pick works ok, and also every next if you choose the same file, but if i choose some other item from the picker, I get an error message
ERROR] Could not create a bookmark: NSError: Cocoa 257 "The file couldn鈥檛 be opened because you don鈥檛 have permission to view it." }

@lecicdjuro yes, there鈥檚 still an issue with it for iOS 14. I鈥檓 investigating.

Hey y'all, could you please give it a try pointing to:

file_picker:
    git:
      url: https://github.com/miguelpruivo/flutter_file_picker
      ref: fix/ios14-picker

And let me know if it's working for you?

There are still a few minor issues with the PHPicker on their end (Apple) that have been reported and they're fixing it, but it should be stable enough for it to work.

Specially, that one that you've mentioned @lecicdjuro, check it here.

This should be fixed with 2.0.6.

Feel free to reopen this or report on #407 if you still encounter any issue related to it.

Thank you!

Was this page helpful?
0 / 5 - 0 ratings