错误IOS 10 - 无法从https://mesu.apple.com/assets/复制资产类型com.apple.MobileAsset.TextInput.SpellChecker的资产信息

时间:2017-04-14 21:21:42

标签: ios swift firebase firebase-realtime-database

我有一套UITextfield供用户注册。 我的应用程序构建成功,但每当我尝试在电子邮件文本字段中输入@时,它会显示下面的消息,并且无法注册用户,无法单击注册按钮。 有谁知道发生了什么?以及如何解决这个问题?

2017-04-14 15:41:26.949699-0400 Oja[72824:36708711] 0x6080003484b0 Copy matching assets reply: XPC_TYPE_DICTIONARY  <dictionary: 0x6080003484b0> { count = 1, transaction: 0, voucher = 0x0, contents =
"Result" => <int64: 0x608000222e40>: 29
}
2017-04-14 15:41:26.951188-0400 Oja[72824:36708711] 0x600000150e30 Daemon configuration query reply: XPC_TYPE_DICTIONARY  <dictionary: 0x600000150e30> { count = 2, transaction: 0, voucher = 0x0, contents =
"Dictionary" => <dictionary: 0x600000345800> { count = 1, transaction: 0, voucher = 0x0, contents =
    "ServerURL" => <dictionary: 0x600000344db0> { count = 3, transaction: 0, voucher = 0x0, contents =
        "com.apple.CFURL.magic" => <uuid: 0x600000043000> C3853DCC-9776-4114-B6C1-FD9F51944A6D
        "com.apple.CFURL.string" => <string: 0x6000000553c0> { length = 30, contents = "https://mesu.apple.com/assets/" }
        "com.apple.CFURL.base" => <null: 0x114b17f40>: null-object
    }
}
"Result" => <int64: 0x600000037360>: 0
}
2017-04-14 15:41:26.951649-0400 Oja[72824:36708711] [MobileAssetError:29] Unable to copy asset information from https://mesu.apple.com/assets/ for asset type com.apple.MobileAsset.TextInput.SpellChecker

2 个答案:

答案 0 :(得分:4)

我以编程方式解决了这个问题。我添加了

tf.autocorrectionType = .no 

停止拼写检查。

 let emailTextField: UITextField = {
    let tf = UITextField()
    tf.placeholder = "Email Address"
    tf.translatesAutoresizingMaskIntoConstraints = false
    tf.addTarget(self, action: #selector(handleTextInputchange), for: .editingChanged)
    tf.autocorrectionType = .no
    return tf
}()

答案 1 :(得分:1)

只需将文本字段的自动更正和拼写检查设置为否 而且你很高兴去 直截了当,没有bs,没有静音的NSlog信息,快速修复。