【问题标题】:Error acquiring assertions, what is that?获取断言时出错,那是什么?
【发布时间】:2021-12-22 10:36:01
【问题描述】:

我正在调试这个 iPhone 应用程序,它基本上是一个票务管理器,在 webkit 视图中运行,从网站加载内容。有时会出现一个电话图标,您可以单击该图标并呼叫该用户。

当我点击时,我看到了这个错误:

[assertion] 获取断言时出错:

你们有什么线索吗?

【问题讨论】:

  • 我刚刚遇到了同样的问题,目前还不知道如何解决它:P
  • 看我的回答...

标签: ios wkwebview entitlements


【解决方案1】:

我在 iOS 15.1 中遇到了同样的问题,我尝试在应用程序中播放 youtube 视频,我已添加隐私列表

<config-file overwrite="true" parent="NSMicrophoneUsageDescription" target="*-Info.plist">
            <string>need microphone access to record sounds</string>
        </config-file>
        <config-file overwrite="true" parent="NSCameraUsageDescription" target="*-Info.plist">
            <string>need camera access for recording</string>
        </config-file>

【讨论】:

  • 在我的例子中,我在 info.plist 中添加了 NSMicrophoneUsageDescription、NSCameraUsageDescription,RBSServiceErrorDomain 消息仍然出现。否则,给Webkit添加Camera/Microphone的权限,这里有点奇怪。
猜你喜欢
  • 2013-12-15
  • 2014-06-07
  • 2010-12-06
  • 2017-12-12
  • 2020-01-22
  • 1970-01-01
  • 2013-02-25
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多