Monday, July 11, 2022
HomeiOS Developmentios - Cannot copy picture to property folder on actual machine flutter

ios – Cannot copy picture to property folder on actual machine flutter


After I choose a picture from gallery on iPhone, i wish to copy it into the property/pictures folder and show it afterwards.
On Simulator every part works positive. However on actual machine I get the next error:

Runner[44762:20816132] [VERBOSE-2:ui_dart_state.cc(198)] Unhandled Exception: FileSystemException: Can not copy file to '../../property/pictures/image_picker_39C262A3-37A8-4167-8A9A-809C05C6DA67-44762-000025ACD7154E4A.jpg', path="/non-public/var/cell/Containers/Knowledge/Utility/4691143F-EC0F-470D-B7EC-88A9BCF021F8/tmp/image_picker_39C262A3-37A8-4167-8A9A-809C05C6DA67-44762-000025ACD7154E4A.jpg" (OS Error: No such file or listing, errno = 2)
#0      _File.copy.<nameless closure> (dart:io/file_impl.dart:328:9)
#1      _rootRunUnary (dart:async/zone.dart:1434:47)
#2      _CustomZone.runUnary (dart:async/zone.dart:1335:19)
<asynchronous suspension>
#3      _ProductInputPageState.getFromGallery (bundle:outfitcreator/pages/product_input_page.dart:451:9)
<asynchronous suspension>

I put the folder into the pubspec.yaml.

flutter:
  property:
    - property/pictures/

Do you may have any suggestion learn how to encounter this?

Thanks very a lot!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments