Could not signal service com.apple.WebKit.WebContent

孤者浪人 提交于 2019-11-30 00:18:51

问题


I use the Shopify Mobile Buy SDK for iOS and I can't get a callback from their payment web view. For some reason the warnings:

2016-11-25 21:17:25.945267 Drool[3328:799969] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

2016-11-25 21:17:25.977316 Drool[3328:799969] Could not signal service com.apple.WebKit.Networking: 113: Could not find specified service

2016-11-25 21:17:26.105947 Drool[3328:799969] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction

keep showing up and I have no idea why this is happening and if this is the cause of this problem, do any of you know what this is?


回答1:


Set value @"false" for cookie property @"HttpOnly", just like this :

 NSHTTPCookie *cookieWID = [NSHTTPCookie cookieWithProperties:[NSDictionary dictionaryWithObjectsAndKeys:
                             @"wid" ,NSHTTPCookieName, 
                             WID,NSHTTPCookieValue,
                             @"www.google.com",NSHTTPCookieDomain,
                             @"",NSHTTPCookiePath,
                             @"false",@"HttpOnly",
                             nil]];



回答2:


You may need to allow for App Transport Security to access the resource. Try modifying your app's Info.plist as described here.




回答3:


if this issue occurs on a sim for anybody, I think it's an issue with JSON parsing in the cache of the xcode simulators. Solved by "In the simulator, choose iOS Simulator > Reset Content and Settings". A more complete solution can be found here https://gist.github.com/riosc/4539602




回答4:


I had the similar issues, which only appear on iOS 10.2, that is so bad. The html cannot receive the value I passed use cookie



来源:https://stackoverflow.com/questions/40811887/could-not-signal-service-com-apple-webkit-webcontent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!