【问题标题】:Could not signal service com.apple.WebKit.WebContent无法向服务 com.apple.WebKit.WebContent 发出信号
【发布时间】:2016-11-25 20:26:35
【问题描述】:

我使用适用于 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

继续出现,我不知道为什么会发生这种情况,如果这是导致此问题的原因,你们中有人知道这是什么吗?

【问题讨论】:

    标签: ios objective-c webkit sfsafariviewcontroller


    【解决方案1】:

    您可能需要允许 App Transport Security 访问资源。尝试按照here 的说明修改您应用的Info.plist

    【讨论】:

      【解决方案2】:

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

      【讨论】:

        【解决方案3】:

        为cookie属性@"HttpOnly"设置值@"false",就像这样:

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

        【讨论】:

        【解决方案4】:

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

        【讨论】:

        • Could not signal service com.apple.WebKit.Networking: 113: 找不到指定的服务也发生在 10.1 中,这不仅仅是 10.2 的问题
        • 我在 iOS 10.3 中得到了相同的日志。你有什么解决办法吗?
        • 我在 iOS 13 上遇到了同样的问题。您找到解决方案了吗?
        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-11-30
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-09-21
        相关资源
        最近更新 更多