fluttercommunity / flutter_webview_plugin

Community WebView Plugin - Allows Flutter to communicate with a native WebView.
https://pub.dev/packages/flutter_webview_plugin
Other
1.48k stars 932 forks source link

ios 13.3 Simulator: crashes when withLocalUrl: true #791

Open fedotxxl opened 4 years ago

fedotxxl commented 4 years ago

I used webview scaffold widget with withLocalUrl: true. It crashes app:

*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff23c7127e __exceptionPreprocess + 350
    1   libobjc.A.dylib                     0x00007fff513fbb20 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff23c91fd4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
    3   CoreFoundation                      0x00007fff23c75c4c ___forwarding___ + 1436
    4   CoreFoundation                      0x00007fff23c77f78 _CF_forwarding_prep_0 + 120
    5   Foundation                          0x00007fff257a819b -[NSURL(NSURL) initFileURLWithPath:] + 68
    6   Foundation                          0x00007fff257a8b54 +[NSURL(NSURL) fileURLWithPath:] + 45
    7   flutter_webview_plugin              0x000000010f48cc8e -[FlutterWebviewPlugin navigate:] + 590
    8   flutter_webview_plugin              0x000000010f48c2d9 -[Flutt<…>

After changing withLocalUrl: false app works as expected. Info.plist contains NSAppTransportSecurity according to readme

RowgerGo commented 3 years ago

this bug in my app too。how can you resolve this ?