[英]How can I enable Safari web inspector on WKWebView?
I have a hybrid application that uses the WKWebView to display large amounts of text and this in turn uses Javascript extensively to do text analysis. 我有一个使用WKWebView来显示大量文本的混合应用程序,而该应用程序又广泛使用Javascript进行文本分析。 We're currently facing performance problems and I'd like to use the Safari Inspector the same way I used with the previous version of the application that uses the UIWebView.
我们目前面临性能问题,我想使用Safari Inspector的方式与使用UIWebView的早期版本的应用程序相同。 Problem is, I have enabled the Developer menu in Safari but I can't bind the web inspector on my iPad app.
问题是,我已在Safari中启用“开发人员”菜单,但无法在iPad应用程序上绑定Web检查器。
Given that this used to work with the UIWebView, am I missing something new? 鉴于这曾经与UIWebView一起使用,我是否缺少新的东西? Are there any other settings I need to fiddle with?
我还有其他需要摆弄的设置吗?
Try running the application on the iPad via Xcode. 尝试通过Xcode在iPad上运行该应用程序。 This should whitelist it for inspection (during development only, of course).
这应该将其列入白名单以进行检查(当然,仅在开发过程中)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.