2016-11-25 52 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