2016-11-25 20 views
24

我使用适用于iOS的Shopify Mobile购买SDK,我无法从其付款网络视图中获得回叫。出于某种原因,警告:无法指示服务com.apple.WebKit.WebContent

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 

继续显示了,我不知道为什么发生这种情况,如果这是这个问题的原因,做任何你知道这是什么吗?

回答

1

设定值@"false"值,就像这样:

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

小心[HttpOnly:false]除非cookieValue不存在漏洞数据 https://blog.codinghorror.com/protecting-your-cookies-httponly/ –

0

我有类似的问题,只出现在iOS 10.2上,是如此糟糕。在HTML无法接收我通过使用cookie中的cookie财产@"HttpOnly"

+1

无法指示服务com.apple.WebKit.Networking 113:找不到指定的服务发生在10.1以及这不是一个10.2唯一的问题 –

+0

我得到了相同的日志在iOS 10.3中。你有什么解决方案吗? – pyanfield

2

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

0

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