我正在使用firebase在swift中测试登录身份验证,并且获取错误导致输出帧失败,状态为8196

问题描述 投票:3回答:1

我正在使用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
swift firebase-authentication xcode10 ios12
1个回答
0
投票

我假设你可能在闭包中使用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")
            }
        }

    }

在这种方法中,我选择了一个电子邮件注册,如果没有错误(错误== nil),它将转到segue引导的位置。

我在第一次尝试时得到了相同的错误代码。然后我意识到我创建了if语句错误(错误!= nil)。我的代码中的问题以及为什么我失败状态8196是if语句,这就是我解决它的方法。我希望它可以帮助别人。

© www.soinside.com 2019 - 2024. All rights reserved.