You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried a simple Getting started use case and I am getting error:
Expected Behavior
Should work without build errors
Steps with code example to reproduce
Steps with code example to reproduce
flutter create inapp_webview --platforms=android,ios,macos,linux,windows
flutter pub add flutter_inappwebview
<copy given example main.dart to lib/main.dart>
flutter run -d macos
Stacktrace/Logs
Stacktrace/Logs
Running pod install... 2,014ms
/Users/arun/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/macos/Classes/PrintJob/PrintJobChannelDelegate.swift:20:13: warning: initialization of immutable value 'arguments' was never used; consider replacing with assignment to '_' or removing it
let arguments = call.arguments as? NSDictionary
~~~~^~~~~~~~~
_
/Users/arun/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/macos/Classes/PrintJob/PrintJobSettings.swift:207:13: warning: variable 'realOptions' was never mutated; consider changing to 'let' constant
var realOptions: [String: Any?] = toMap()
~~~ ^
let
/Users/arun/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/macos/Classes/Types/URLCredential.swift:14:25: warning: comparing non-optional value of type '[Any]' to 'nil' always returns true
if certificates != nil {
~~~~~~~~~~~~ ^ ~~~
/Users/arun/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/macos/Classes/InAppWebView/InAppWebView.swift:144:17: error: cannot find 'isInspectable' in scope
isInspectable = settings.isInspectable
^~~~~~~~~~~~~
/Users/arun/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/macos/Classes/InAppWebView/InAppWebView.swift:147:25: warning: 'clearCache' is deprecated: Use InAppWebViewManager.clearAllCache instead.
if settings.clearCache {
^
/Users/arun/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/macos/Classes/InAppWebView/InAppWebView.swift:148:17: warning: 'clearCache()' is deprecated: Use InAppWebViewManager.clearAllCache instead.
clearCache()
^
/Users/arun/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/macos/Classes/InAppWebView/InAppWebView.swift:184:43: error: value of type 'WKPreferences' has no member 'shouldPrintBackgrounds'
configuration.preferences.shouldPrintBackgrounds = settings.shouldPrintBackgrounds
~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~
/Users/arun/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/macos/Classes/InAppWebView/InAppWebView.swift:682:63: warning: 'clearCache' is deprecated: Use InAppWebViewManager.clearAllCache instead.
if newSettingsMap["clearCache"] != nil && newSettings.clearCache {
^
/Users/arun/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/macos/Classes/InAppWebView/InAppWebView.swift:683:13: warning: 'clearCache()' is deprecated: Use InAppWebViewManager.clearAllCache instead.
clearCache()
^
/Users/arun/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/macos/Classes/InAppWebView/InAppWebView.swift:752:17: error: cannot find 'isInspectable' in scope
isInspectable = newSettings.isInspectable
^~~~~~~~~~~~~
/Users/arun/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/macos/Classes/InAppWebView/InAppWebView.swift:755:43: error: value of type 'WKPreferences' has no member 'shouldPrintBackgrounds'
configuration.preferences.shouldPrintBackgrounds = newSettings.shouldPrintBackgrounds
~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~
/Users/arun/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/macos/Classes/InAppWebView/InAppWebView.swift:2210:38: warning: 'onFindResultReceived(activeMatchOrdinal:numberOfMatches:isDoneCounting:)' is deprecated: Use FindInteractionChannelDelegate.onFindResultReceived instead.
webView.channelDelegate?.onFindResultReceived(activeMatchOrdinal: activeMatchOrdinal, numberOfMatches: numberOfMatches, isDoneCounting: isDoneCounting)
^
/Users/arun/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/macos/Classes/InAppWebView/InAppWebViewSettings.swift:111:57: error: value of type 'InAppWebView' has no member 'isInspectable'
realSettings["isInspectable"] = webView.isInspectable
~~~~~~~ ^~~~~~~~~~~~~
/Users/arun/.pub-cache/hosted/pub.dev/flutter_inappwebview_macos-1.1.2/macos/Classes/InAppWebView/InAppWebViewSettings.swift:112:84: error: value of type 'WKPreferences' has no member 'shouldPrintBackgrounds'
realSettings["shouldPrintBackgrounds"] = configuration.preferences.shouldPrintBackgrounds
~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~
** BUILD FAILED **
Flutter version
3.27.1
Operating System, Device-specific and/or Tool
macOS 12.7.5, XCode 14.2
Plugin version
6.1.5
Additional information
No response
Self grab
I'm ready to work on this issue!
The text was updated successfully, but these errors were encountered:
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.
Is there an existing issue for this?
Current Behavior
I tried a simple
Getting started
use case and I am getting error:Expected Behavior
Should work without build errors
Steps with code example to reproduce
Steps with code example to reproduce
Stacktrace/Logs
Stacktrace/Logs
Flutter version
3.27.1
Operating System, Device-specific and/or Tool
macOS 12.7.5, XCode 14.2
Plugin version
6.1.5
Additional information
No response
Self grab
The text was updated successfully, but these errors were encountered: