Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on iOS 12 #230

Closed
anderscheow opened this issue Nov 8, 2018 · 6 comments
Closed

Crash on iOS 12 #230

anderscheow opened this issue Nov 8, 2018 · 6 comments

Comments

@anderscheow
Copy link

anderscheow commented Nov 8, 2018

*** First throw call stack:
(
	0   CoreFoundation                      0x0000000109a381bb __exceptionPreprocess + 331
	1   libobjc.A.dylib                     0x0000000108fd6735 objc_exception_throw + 48
	2   CoreFoundation                      0x0000000109a56f44 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
	3   CoreFoundation                      0x0000000109a3ced6 ___forwarding___ + 1446
	4   CoreFoundation                      0x0000000109a3eda8 _CF_forwarding_prep_0 + 120
	5   Runner                              0x0000000104a52930 -[FlutterWebviewPlugin initWebview:] + 2832
	6   Runner                              0x0000000104a517fe -[FlutterWebviewPlugin handleMethodCall:result:] + 254
	7   Flutter                             0x000000010574d75b __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 115
	8   Flutter  <…>

This is the code:

class WebViewPage extends StatelessWidget {
  final String url;
  final String title;

  WebViewPage({this.url, this.title});

  @override
  Widget build(BuildContext context) {
    return new WebviewScaffold(
      url: url,
      appBar: AppBar(
        title: Text(title),
      ),
    );
  }
}
@dinhha
Copy link
Contributor

dinhha commented Nov 8, 2018

I also face this crash issue when upgrade to Flutter 0.10.2 beta.
It works well on Flutter 0.10.0

@klavergne
Copy link

Same on Flutter 0.10.3.

@anderscheow
Copy link
Author

@klavergne You can revert Flutter to 0.10.2 or below if you want this plugin to work

@klavergne
Copy link

@anderscheow That works, but I wonder when it will be supported on the later versions of Flutter.

@dinhha
Copy link
Contributor

dinhha commented Nov 14, 2018

You can try on my fork. I fixed it
dinhha@aca88cb

@slightfoot
Copy link
Member

Fixed as of v0.3.0+2. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants