-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
ios 18 version get error #2279
Comments
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 Following these steps can save you, me, and other people a lot of time, thanks! |
i've been facing same issue after upgrading to MacOS sequoia and upgrading Xcode. Please if anyone knows the solution please let me know. |
Experiencing the same issue after upgrading to MacOS sequoia and upgrading Xcode 16.0. |
I have same error
|
Same here |
Same here |
Xcode16.0 has error,when debug running |
For fast fix you can replace in 1432 line InAppWebView (flutter_inappwebview_ios-1.0.13/ios/Classes/InAppWebView/InAppWebView.swift) public override func evaluateJavaScript(_ javaScriptString: String, completionHandler: ((Any?, Error?) -> Void)? = nil) { to public override func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@MainActor @Sendable (Any?, (any Error)?) -> Void)? = nil) { |
I put this modified method, written a simple script, you can try to solve this problem https://github.com/ke112/fixios18 |
Yes this is working, Thank you |
This working, Thanks you. |
Duplicate of #2278 |
… method from its superclass pichillilorenzo#2278 pichillilorenzo#2279
love you. thank you. |
I have the same error, any final solution? the proposal solution is very dangerous, because we are editing the library inside in .pubcache and this is always rewrite with pub get o when you do a flutter clean |
For temporary solution you can use my fork with fix this problem. dependency_overrides:
# TODO: Recheck once flutter_inappwebview version >6.0.0 is released
flutter_inappwebview_ios:
git:
url: https://github.com/IncM/flutter_inappwebview
path: flutter_inappwebview_ios
ref: cbc214c7b2cf5fd7996ff2e9e25d203946b74bc3 in your pubspec.yaml |
Same issue. Updated XCode and game over :D |
Yesterday I upgraded my Mac and Xcode, same issue appeared... |
public override func evaluateJavaScript(_ javaScriptString: String, completionHandler: (@mainactor @sendable (Any?, (any Error)?) -> Void)? = nil) { It worked for me. Thank you! |
I encountered the same error after updating Xcode. Swift Compiler Error (Xcode): Method does not override any method from its superclass Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)' Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)' Please Let me know anyone if you find any solution. |
This comment was marked as spam.
This comment was marked as spam.
Perhaps easier solution is to install previous version of xcode 15.4 using xcodes. |
If you come across the same error, I've found a solution for you! You can check it out by visiting this link:- |
Released new version 6.1.0 with the fix, thanks. |
Hello everyone! I opened an issue #2327 related to a new problem like this. I ask that you consider upvoting or interacting so that the maintainers can see this as soon as possible. Remember that these problems can happen to you - as is happening to me. :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue. |
khanarif@Khans-MacBook-Pro gpspro % flutter build ios
Building com.gomax.gpspro for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: Y59JP677FD
Running pod install... 21.0s
Running Xcode build...
Xcode build done. 51.2s
Failed to build iOS app
Swift Compiler Error (Xcode): Method does not override any method from its superclass
/Users/khanarif/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/InAppWebView/InAppWebView.
swift:1431:25
Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/khanarif/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/InAppWebView/InAppWebView.
swift:1035:20
Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/khanarif/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/InAppWebView/InAppWebView.
swift:1038:16
Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/khanarif/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/InAppWebView/InAppWebView.
swift:1047:20
Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/khanarif/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/InAppWebView/InAppWebView.
swift:1050:16
Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/khanarif/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/InAppWebView/InAppWebView.
swift:1327:25
Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/khanarif/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/InAppWebView/InAppWebView.
swift:1912:8
Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/khanarif/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/InAppWebView/InAppWebView.
swift:2859:22
Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/khanarif/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/InAppWebView/InAppWebView.
swift:2870:22
Swift Compiler Error (Xcode): Ambiguous use of 'evaluateJavaScript(_:completionHandler:)'
/Users/khanarif/.pub-cache/hosted/pub.dev/flutter_inappwebview_ios-1.0.13/ios/Classes/InAppWebView/InAppWebView.
swift:2964:17
Encountered error while building for device.
khanarif@Khans-MacBook-Pro gpspro %
The text was updated successfully, but these errors were encountered: