为什么 UITextfield 在控制台中抛出这么多错误?
[Assert] View <(null):0x0> does not conform to UITextInput protocol
Run Code Online (Sandbox Code Playgroud)
使用标准 UITextField 在 iOS 14(在物理设备上运行)上键入任何 UITextField 时发生,无需修改。
即使您关闭所有自动更正并将特征内容类型设置为未指定,它仍然会在键入时抛出许多这些断言失败。
然后,当用户没有 iCloud 钥匙串时,密码字段会抛出以下内容。(顺便说一句,这个错误确实减慢了用户的速度,当它抛出这个异常时会中断他们的输入)
[AutoFill] Cannot show Automatic Strong Passwords for app bundleID: com.testing.TestProject due to error: iCloud Keychain is disabled
[KBDAnalyticsLog] -[TIAnalyticsService _registerEventSpec:withCompletionHandler:]_block_invoke TIAnalyticsEventSpec with name 'thirdPartyKeyboards' is already registered.
[KBDAnalyticsLog] -[TIAnalyticsService _registerEventSpec:withCompletionHandler:]_block_invoke TIAnalyticsEventSpec with name 'thirdPartyKeyboards' is already registered.
API error: <_UIKBCompatInputView: 0x10520fd90; frame = (0 0; 0 0); layer = <CALayer: 0x283eb0e00>> returned 0 width, assuming UIViewNoIntrinsicMetric
API …Run Code Online (Sandbox Code Playgroud)