ios 无法向服务 com.apple.WebKit.WebContent 发出信号
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40811887/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Could not signal service com.apple.WebKit.WebContent
提问by Martin Kjellberg
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:
我使用适用于 iOS 的 Shopify Mobile Buy SDK,但无法从他们的付款 Web 视图中获得回调。出于某种原因,警告:
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?
继续出现,我不知道为什么会发生这种情况,如果这是导致此问题的原因,你们中的任何人知道这是什么吗?
采纳答案by user7155717
Set value @"false"
for cookie property @"HttpOnly"
, just like this :
设置@"false"
cookie 属性的值@"HttpOnly"
,就像这样:
NSHTTPCookie *cookieWID = [NSHTTPCookie cookieWithProperties:[NSDictionary dictionaryWithObjectsAndKeys:
@"wid" ,NSHTTPCookieName,
WID,NSHTTPCookieValue,
@"www.google.com",NSHTTPCookieDomain,
@"",NSHTTPCookiePath,
@"false",@"HttpOnly",
nil]];
回答by Mark Leonard
回答by Kevin Ryan
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
如果这个问题发生在任何人的 sim 上,我认为这是 xcode 模拟器缓存中的 JSON 解析问题。通过“在模拟器中,选择iOS模拟器>重置内容和设置”解决。更完整的解决方案可以在这里找到https://gist.github.com/riosc/4539602
回答by Henry Zhang
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
我有类似的问题,只出现在 iOS 10.2 上,太糟糕了。html 无法接收我通过使用 cookie 传递的值