Closed Panerly closed 3 years ago
提交构建版本一直被拒,经检测webviewJavaScriptBridge使用了UIWebView,请问如何更改才可以去除所有使用UIWebView的功能?
你不用pod引入了,直接把源码下载下来,然后把这俩文件删除不就行了WebViewJavascriptBridge.h WebViewJavascriptBridge.m
你不用pod引入了,直接把源码下载下来,然后把这俩文件删除不就行了WebViewJavascriptBridge.h WebViewJavascriptBridge.m
嗯 已经解决了
@Panerly can you write your WebViewJavascriptBridge.m after edit? "Apple will no longer accept submissions of new apps that use UIWebView as of April 30, 2020 and app updates that use UIWebView as of December 2020. Instead, use WKWebView for improved security and reliability." => It kill my day.
大佬 我也遇到了 怎么解决呢
还是希望作者,在原先的库中处理一下,并更新pod源.
我已经重构了这个库. 如果您遇到麻烦,可以尝试使用它. 下载地址: https://github.com/housenkui/JavascriptBridge 它更轻,使用更简单. 只需要一个参数就能让Xcode输出js的console.log. 10分钟之内应该可以完成接入.
@Panerly can you write your WebViewJavascriptBridge.m after edit? "Apple will no longer accept submissions of new apps that use UIWebView as of April 30, 2020 and app updates that use UIWebView as of December 2020. Instead, use WKWebView for improved security and reliability." => It kill my day.
you can try this : https://github.com/housenkui/JavascriptBridge
WVJB Bug Report
Thanks for reporting an issue with WebViewJavascriptBridge.
Do these 4 things and I will fix your problem!
cd
into it and runmake test
. All tests should pass!Tests/WebViewJavascriptBridgeTests/BridgeTests.m
and create a new, failing test which demostrates your issue.That's it!
I will take it from there and promise that I'll fix your problem ASAP.
If you don't do this then I can't help you!
And I probably won't :)
Cheers, @marcuswestin