iOS 10 中的错误:无法从 https://mesu.apple.com/assets/ 复制资产信息的资产类型
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39868842/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error in iOS 10 : Unable to copy asset information from https://mesu.apple.com/assets/ for asset type
提问by Rahul Mayani
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
I'm using xcode 8version with ios 10. If, I use project in ios 9.3its works fine but when same project I used in ios 10error message appears Unable to copy asset information...
我在ios 10 上使用xcode 8版本。如果,我使用项目的ios 9.3其工作正常,但当同样的项目,我所用的ios 10出现错误信息无法复制资产信息..。
采纳答案by Rahul Mayani
回答by guest
Setting OS_ACTIVITY_MODE = disable doesn't resolve the issue but only turn off the logs
设置 OS_ACTIVITY_MODE = disable 不能解决问题,只能关闭日志
To fix the issue:
要解决此问题:
1- In storyboard select the TextView
1- 在情节提要中选择 TextView
2- From Xcode attributes inspector set:
2- 从 Xcode 属性检查器集:
Correction = No
更正 = 否
Spell Checking = No
拼写检查 = 否
3- Fixed
3- 固定
The problem appears to happen because of failure to download assets for spell checking from: http://mesu.apple.com/assets/com_apple_MobileAsset_TextInput_SpellChecker/com_apple_MobileAsset_TextInput_SpellChecker.xml
该问题似乎是由于无法从以下位置下载用于拼写检查的资产:http: //mesu.apple.com/assets/com_apple_MobileAsset_TextInput_SpellChecker/com_apple_MobileAsset_TextInput_SpellChecker.xml
Hope this helps
希望这可以帮助
回答by rptony
Swift 3 Update
斯威夫特 3 更新
@guest answer fixes the problem. But incase if you are creating the UITextView
programmatically.
@guest 回答解决了这个问题。但是,如果您以UITextView
编程方式创建。
textView.spellCheckingType = .no
textView.autocorrectionType = .no