我正在使用firebase测试swift中的登录身份验证,并获取错误获取输出帧失败,状态8196。这是日志我得到
2018-11-19 11:14:42.259565+0530 Loginpage[9509:563668] - <AppMeasurement>[I-ACS036002] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
2018-11-19 11:14:42.285775+0530 Loginpage[9509:563581] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform.
2018-11-19 11:14:42.398664+0530 Loginpage[9509:563677] 5.12.0 - [Firebase/Analytics][I-ACS023007] Analytics v.50300000 started
2018-11-19 11:14:42.398946+0530 Loginpage[9509:563677] 5.12.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled
2018-11-19 11:14:42.875018+0530 Loginpage[9509:563677] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x7fe0c1a01780] get output frames failed, state 8196
2018-11-19 11:14:42.875221+0530 Loginpage[9509:563677] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x7fe0c1a01780] get output frames failed, state 8196
2018-11-19 11:14:42.875850+0530 Loginpage[9509:563677] TIC Read Status [1:0x0]: 1:57
2018-11-19 11:14:42.876003+0530 Loginpage[9509:563677] TIC Read Status [1:0x0]: 1:57
2018-11-19 11:14:47.237996+0530 Loginpage[9509:563581] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/kanagarajunatesan/Library/Developer/CoreSimulator/Devices/05C5E353-956C-43E9-AD48-5B1AD759ECC5/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-11-19 11:14:47.239077+0530 Loginpage[9509:563581] [MC] Reading from private effective user settings.
2018-11-19 11:14:52.620636+0530 Loginpage[9509:563668] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x7fe0bed28ef0] get output frames failed, state 8196
2018-11-19 11:14:52.620812+0530 Loginpage[9509:563668] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x7fe0bed28ef0] get output frames failed, state 8196
2018-11-19 11:14:52.621483+0530 Loginpage[9509:563668] TIC Read Status [2:0x0]: 1:57
2018-11-19 11:14:52.621723+0530 Loginpage[9509:563668] TIC Read Status [2:0x0]: 1:57
我只是假设您可能在闭包中使用if语句。if语句可以是这样的
@IBAction func logInPressed(_ sender: AnyObject) {
Auth.auth().signIn(withEmail: emailTextfield.text!, password: passwordTextfield.text!) { (user, error) in
if error == nil {
print("Sucessfully loged in!")
self.performSegue(withIdentifier: "goToUserDetailVC", sender: self)
}
else {
print("Cannot log in the user")
}
}
}
在这种方法中,我选择一个电子邮件注册,如果没有错误(error==nil(,它将转到segue引导的位置。
我在第一次尝试时得到了相同的错误代码。然后我意识到我创建的if语句是错误的(error!=nil(。我的代码中的问题以及我为什么会得到失败状态8196是if语句,这就是我解决它的方法。我希望它能帮助其他人。