1、 Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
2018-04-11 10:40:56.385880+0800 XXX[1997:73994] 當(dāng)主服務(wù)器接收到服務(wù)器重定向時調(diào)用
2018-04-11 10:40:57.924879+0800 XXX[1997:73994] 決定是否在其響應(yīng)已知后允許或取消導(dǎo)航。
2018-04-11 10:40:57.931030+0800 XXX[1997:73994] Frame load interrupted
2018-04-11 10:59:14.214299+0800 XXX[1997:73994] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
/*! @abstract Decides whether to allow or cancel a navigation after its
response is known.
@param webView The web view invoking the delegate method.
@param navigationResponse Descriptive information about the navigation
response.
@param decisionHandler The decision handler to call to allow or cancel the
navigation. The argument is one of the constants of the enumerated type WKNavigationResponsePolicy.
@discussion If you do not implement this method, the web view will allow the response, if the web view can show it.
*/
- (void)webView:(WKWebView *)webView decidePolicyForNavigationResponse:(WKNavigationResponse *)navigationResponse decisionHandler:(void (^)(WKNavigationResponsePolicy))decisionHandler
{
NSLog(@"決定是否在其響應(yīng)已知后允許或取消導(dǎo)航。");
decisionHandler(WKNavigationResponsePolicyAllow);
}
修改為allow 就不報(bào)錯了具體原因不太清楚。