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

[Xcode 16 Beta] Override evaluateJavaScript error when build #2201

Closed
GabriellArthur opened this issue Jun 27, 2024 · 9 comments
Closed

[Xcode 16 Beta] Override evaluateJavaScript error when build #2201

GabriellArthur opened this issue Jun 27, 2024 · 9 comments

Comments

@GabriellArthur
Copy link

GabriellArthur commented Jun 27, 2024

Check the Showcase page to see an open list of Apps built with Flutter and Flutter InAppWebView.

If you are using the Flutter InAppWebView plugin and would like to add your App there,
follow the instruction on the Submit App page!

Captura de Tela 2024-06-27 às 15 50 47

ios WKWebView [Override evaluateJavaScript]

Copy link

👋 @GabriellArthur

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

@suhailzoft
Copy link

Same issue here

@GabriellArthur
Copy link
Author

I want to remove the override and remove some calls from it, so it may be breaking for you but for me it is working
https://github.com/GabriellArthur/flutter_inappwebview

@shubhamsinghmutualmobile

I want to remove the override and remove some calls from it, so it may be breaking for you but for me it is working https://github.com/GabriellArthur/flutter_inappwebview

This worked for me, thank you! 👏 Maybe you can raise a PR and see if it gets accepted?

@lucas-sesti
Copy link

Same issue here, hope they accept your PR.

@channoori
Copy link

In iOS 18.0 beta, the closure of the evaluateJavaScript method was changed in the iOS 18.0 beta, causing the error, so it seems that only the method needs to be changed in the override

Before
public override func evaluateJavaScript(_ javaScriptString: String, completionHandler: ((Any?, Error?) -> Void)? = nil)

After
open override func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@MainActor (Any?, (any Error)?) -> Void)? = nil)

@hwr12
Copy link

hwr12 commented Jul 16, 2024

@GabriellArthur
Thanks for the fork version but I am getting this error also.
Any idea on how to fix this?
IntelliJ IDEA-2024 07 16 14 33-003960

@hwr12
Copy link

hwr12 commented Jul 16, 2024

@GabriellArthur Thanks for the fork version but I am getting this error also. Any idea on how to fix this? IntelliJ IDEA-2024 07 16 14 33-003960

Fixed it. It was because I didn't update the xcodebuild cli version to the latest 16

@frapeti
Copy link

frapeti commented Jul 19, 2024

why is this closed

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

7 participants