【问题标题】:Error in iOS 10 : Unable to copy asset information from https://mesu.apple.com/assets/ for asset typeiOS 10 中的错误:无法从 https://mesu.apple.com/assets/ 复制资产信息以获取资产类型
【发布时间】:2017-02-13 14:18:22
【问题描述】:
2016-10-05 13:36:21.383340 MyApp[1867:72704] 0x60000015e350 Copy matching assets reply: XPC_TYPE_DICTIONARY  <dictionary: 0x60000015e350> { count = 1, transaction: 0, voucher = 0x0, contents =
    "Result" => <int64: 0x600000226fe0>: 29
}
2016-10-05 13:36:21.385076 MyApp[1867:72704] 0x608000556420 Daemon configuration query reply: XPC_TYPE_DICTIONARY  <dictionary: 0x608000556420> { count = 2, transaction: 0, voucher = 0x0, contents =
    "Dictionary" => <dictionary: 0x6080005566e0> { count = 1, transaction: 0, voucher = 0x0, contents =
        "ServerURL" => <dictionary: 0x608000556790> { count = 3, transaction: 0, voucher = 0x0, contents =
            "com.apple.CFURL.magic" => <uuid: 0x60800024f720> C1234DCC-2276-5214-B6C1-FD9F5191212
            "com.apple.CFURL.string" => <string: 0x608000241ce0> { length = 30, contents = "https://mesu.apple.com/assets/" }
            "com.apple.CFURL.base" => <null: 0x112e42f20>: null-object
        }
    }
    "Result" => <int64: 0x6080004241e0>: 0
}
2016-10-05 13:36:21.385693 MyApp[1867:72704] [MobileAssetError:29] Unable to copy asset information from https://mesu.apple.com/assets/ for asset type com.apple.MobileAsset.TextInput.SpellChecker

我正在使用 xcode 8 版本和 ios 10。如果,我在 ios 9.3 中使用项目,它工作正常,但是当我在 ios 10 中使用的同一项目出现错误消息时 Unable to copy assets information...

【问题讨论】:

  • 我也明白了,但是当键盘打开时。
  • 将我添加到投诉者列表中
  • 我也是。似乎打开了一个浏览器窗口,当我点击该字段时,我看到“完成”和应用内浏览器,如导航
  • 你是在设备还是模拟器上得到这个?
  • @pteofil 在设备和模拟器中都有。

标签: ios objective-c ios10 xcode8 uiimageasset


【解决方案1】:

设置 OS_ACTIVITY_MODE = disable 并不能解决问题,只能关闭日志

解决问题:

1- 在情节提要中选择 TextView

2- 来自 Xcode 属性检查器集:

更正 = 否

拼写检查 = 否

3- 固定

问题似乎是因为未能从以下位置下载资产以进行拼写检查: http://mesu.apple.com/assets/com_apple_MobileAsset_TextInput_SpellChecker/com_apple_MobileAsset_TextInput_SpellChecker.xml

希望对你有帮助

【讨论】:

  • 这样我不会得到错误 - 但也会失去这些输入的自动更正能力(显然)。那么也许有更好的解决方案?为什么下载资产会失败?
【解决方案2】:

我最终得到了以下解决方案。按照步骤操作。

  • Edit Scheme 中设置环境变量。
  • 重新启动 xcode。
  • 清理和构建 xcode。

& 比在我身边完美地工作。

【讨论】:

  • 看看这个 Q/A (stackoverflow.com/q/37800790/2778898)。使用此方法将禁用所有 NSLogs...
  • 这似乎在 iOS10 和 xcode 8 中不起作用。应用后同样的错误。
  • 非常感谢分享这段代码,你度过了美好的一天
  • 虽然这似乎禁用了错误。它所做的只是使诊断静音。它对缓解问题没有任何帮助。在我的情况下,错误是在 UIWebView 中的 焦点期间引发的。进行上述更改实际上确实阻止了错误的发生。但是错误导致的内存泄漏还是会发生。
  • 这并不完全是一个“解决方案”,它所做的只是隐藏错误。
【解决方案3】:

Swift 3 更新

@guest 回答解决了这个问题。但是如果您以编程方式创建UITextView

textView.spellCheckingType = .no
textView.autocorrectionType = .no

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-08-02
    • 2020-11-07
    • 1970-01-01
    • 2021-05-18
    • 2021-10-14
    • 1970-01-01
    • 2017-04-29
    • 1970-01-01
    相关资源
    最近更新 更多