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

Unable to launch given example program in MacOS 12.7.5 #2469

Closed
1 of 2 tasks
siara-cc opened this issue Dec 20, 2024 · 4 comments
Closed
1 of 2 tasks

Unable to launch given example program in MacOS 12.7.5 #2469

siara-cc opened this issue Dec 20, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@siara-cc
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

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
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!
@siara-cc siara-cc added the bug Something isn't working label Dec 20, 2024
@pichillilorenzo
Copy link
Owner

Unfortunately, the Xcode version used (14.2) is too old, you need to update it.

@siara-cc
Copy link
Author

Unfortunately I can't upgrade because my mac is Intel and Apple no longer supports upgrades to the OS or Xcode!

@siara-cc
Copy link
Author

I am using your plugin for Android though on Play Store. Thanks for making this!

Copy link

github-actions bot commented Jan 5, 2025

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants