RxWebKit
RxWebKit copied to clipboard
Build and error on Xcode14
static let decidePolicyNavigationResponse = #selector(WKNavigationDelegate.webView(_:decidePolicyFor:decisionHandler:) as ((WKNavigationDelegate) -> (WKWebView, WKNavigationResponse, @escaping(WKNavigationResponsePolicy) -> Void) -> Void)?)
static let decidePolicyNavigationAction = #selector(WKNavigationDelegate.webView(_:decidePolicyFor:decisionHandler:) as ((WKNavigationDelegate) -> (WKWebView, WKNavigationAction, @escaping(WKNavigationActionPolicy) -> Void) -> Void)?)
Xcode Version: 14
RxWebKit: 2.0.0
build and show "Type of expression is ambiguous without more context" error message

@eebrian123tw93 like this just do it :
static let decidePolicyNavigationResponse = #selector(WKNavigationDelegate.webView(_:decidePolicyFor:decisionHandler:) as (WKNavigationDelegate) -> ((WKWebView, WKNavigationResponse, @escaping (WKNavigationResponsePolicy) -> Void) -> Void)?)
static let decidePolicyNavigationAction = #selector(WKNavigationDelegate.webView(_:decidePolicyFor:decisionHandler:) as (WKNavigationDelegate) -> ((WKWebView, WKNavigationAction, @escaping (WKNavigationActionPolicy) -> Void) -> Void)?)
I think this is already in master, so we "just" need a release
I tried the above solution but it does not build on Xcode < 14.
Are there any solutions which build on both versions?
Try the master branch of the repo2022. szept. 29. dátummal, 10:41 időpontban Werner Kratochwil @.***> írta: I tried the above solution but it does not build on Xcode < 14.
Are there any solutions which build on both versions?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
Thanks, found it. Here is the solution for all that don't want to search:
#if swift(>=5.7)
static let decidePolicyNavigationResponse = #selector(WKNavigationDelegate.webView(_:decidePolicyFor:decisionHandler:) as (WKNavigationDelegate) -> ((WKWebView, WKNavigationResponse, @escaping(WKNavigationResponsePolicy) -> Void) -> Void)?)
static let decidePolicyNavigationAction = #selector(WKNavigationDelegate.webView(_:decidePolicyFor:decisionHandler:) as (WKNavigationDelegate) -> ((WKWebView, WKNavigationAction, @escaping (WKNavigationActionPolicy) -> Void) -> Void)?)
#else
static let decidePolicyNavigationResponse = #selector(WKNavigationDelegate.webView(_:decidePolicyFor:decisionHandler:) as ((WKNavigationDelegate) -> (WKWebView, WKNavigationResponse, @escaping(WKNavigationResponsePolicy) -> Void) -> Void)?)
static let decidePolicyNavigationAction = #selector(WKNavigationDelegate.webView(_:decidePolicyFor:decisionHandler:) as ((WKNavigationDelegate) -> (WKWebView, WKNavigationAction, @escaping(WKNavigationActionPolicy) -> Void) -> Void)?)
#endif
Pretty Good! Waiting RxWebKit 2.0.1 on cocopods https://github.com/CocoaPods/Specs/tree/master/Specs/1/a/c/RxWebKit
please, release this 2.0.1 version, really looking forward to this fix 🙂 thanks in advance
on which date do you have a plan to release the version 2.0.1 on Cocoapods? we are waiting for the fix
You mean, 2.0.2 correct? 2.0.1 does not include the fix AFAIK I am waiting for it, too
When can we expect a fix release for Xcode 14?
we don't found v2.0.1 on cocopods please release v2.0.1 on cocopods https://github.com/CocoaPods/Specs/tree/master/Specs/1/a/c/RxWebKit
use this line in podfile
pod 'RxWebKit', :git => 'https://github.com/RxSwiftCommunity/RxWebKit.git'