swift-sdk icon indicating copy to clipboard operation
swift-sdk copied to clipboard

Type 'WKWebView' does not conform to protocol 'WebViewProtocol'

Open santomegonzalo opened this issue 1 year ago • 1 comments

This is something really weird.

The WebViewProtocol has evaluateJavaScript but then the extension is not using it at all. This drives to the following error: Type 'WKWebView' does not conform to protocol 'WebViewProtocol'

anybody has any idea whats going on?

Screenshot 2024-10-15 at 15 37 11

santomegonzalo avatar Oct 15 '24 14:10 santomegonzalo

Upgrading to version 6.5.6 fixed that issue for me.

aethe avatar Oct 15 '24 21:10 aethe

Please upgrade to a version from 6.5.6 or higher. Note that you should ensure the following steps are completed:

  1. Upgrade the version and confirm that the file Package.resolved includes the version you want to upgrade to.

    For example, for version 6.5.7, the revision should be the latest commit for that version.

{
  "originHash" : "11b591344128590141e320d0bce4d4a31a2e7b0e204bd91279890771a1b81dc2",
  "pins" : [
    {
      "identity" : "swift-sdk",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/iterable/swift-sdk",
      "state" : {
        "revision" : "885d25589ca1be2ccc5ce54bcf885941bfc3bd25",
        "version" : "6.5.7"
      }
    }
  ],
  "version" : 3
}
  1. Re-install the Pod files and ensure that Iterable-iOS-SDK has been upgraded.

cunguyendev avatar Nov 01 '24 20:11 cunguyendev

Any idea when react-native-sdk will use this version? Or is there a way for me to override it? https://github.com/Iterable/react-native-sdk/blob/2f877995c574441fbdc982014cc61baf847e4847/Iterable-React-Native-SDK.podspec#L26

jakekreider avatar Nov 14 '24 15:11 jakekreider

@jakekreider this will be handled by an upcoming React Native SDK version :)

jena-chakour avatar May 12 '25 15:05 jena-chakour