无法向服务com.apple.WebKit.WebContent发送信号

30
我使用 Shopify Mobile Buy SDK for iOS,但是无法从他们的付款 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

这个问题一直出现,我不知道为什么会发生这种情况,也不确定它是否导致了这个问题,你们当中有人知道是什么吗?

4个回答

3

您可能需要允许应用程序传输安全性以访问资源。尝试修改您的应用程序的Info.plist,如此处所述。


2

如果任何人在模拟器上遇到此问题,我认为这是由于xcode模拟器缓存中的JSON解析问题所致。通过“在模拟器中选择iOS模拟器>重置内容和设置”来解决。更完整的解决方案可以在这里找到https://gist.github.com/riosc/4539602


0
将值@"false"设置为cookie属性@"HttpOnly",就像这样:
 NSHTTPCookie *cookieWID = [NSHTTPCookie cookieWithProperties:[NSDictionary dictionaryWithObjectsAndKeys:
                             @"wid" ,NSHTTPCookieName, 
                             WID,NSHTTPCookieValue,
                             @"www.google.com",NSHTTPCookieDomain,
                             @"",NSHTTPCookiePath,
                             @"false",@"HttpOnly",
                             nil]];

2
注意,除非cookieValue不是易受攻击的数据,否则不要设置[HttpOnly:false]。 https://blog.codinghorror.com/protecting-your-cookies-httponly/ - Þorvaldur Rúnarsson

0

我遇到了类似的问题,只出现在iOS 10.2上,这太糟糕了。HTML无法使用cookie接收我传递的值。


1
在10.1中也会发生“无法信号化服务com.apple.WebKit.Networking: 113:无法找到指定的服务”的问题,这不仅仅是10.2的问题。 - Anton Tropashko
我在iOS 10.3中得到了相同的日志。你有任何解决方案吗? - pyanfield
我也遇到了iOS 13的同样问题。你有解决方案吗? - Dragisa Dragisic

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接