shirsh94 / flutter_doc_scanner

MIT License
5 stars 6 forks source link

Crash on iOS when opening #16

Open titovnick opened 1 month ago

titovnick commented 1 month ago

Hi, the library works fine on Android, but when I try to open it on the iOS simulator it just crashes with ProcessException: Process exited abnormally with exit code -2:

Did you try running it on the Simulator? Thank you!

nblum37 commented 1 month ago

Same issue for us

shirsh94 commented 1 month ago

This also works for iOS, for more details just check the readme file for the iOS configuration setup.

kameshWB commented 1 month ago

I too have the same issue as soon I run the following code. The app is terminating immediately, I tried the example also and that also failed. I did followed the readme file as well.

    dynamic scannedDocuments;
    try {
      scannedDocuments = await FlutterDocScanner().getScanDocuments();
    } catch (e, s) {
      Log.e('Error scanning documents', error: e, stackTrace: s);
    }

Error Logs:

Error: Unable to terminate com.my-app.package on 558A4127-DA9E-4F66-97E6-A7AEF8C73C76:
ProcessException: Process exited abnormally with exit code -2:

  Command: xcrun simctl terminate 558A4127-DA9E-4F66-97E6-A7AEF8C73C76 com.my-app.package
the Dart compiler exited unexpectedly.

I tried on physical devices iPhone SE 2nd Generation ( iOS 17.5.1 ) , iPad 7th Generation (iPadOs 17.5.1) and in multiple stimulators running iOS 17.2

NOTE : My colleague has tested with iPhone 7 (iOS 15.8.2) and it was working fine.