Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
I';m使用firebase在swift中测试登录身份验证并获取错误get output frames failed,状态8196_Swift_Firebase Authentication_Xcode10_Ios12 - Fatal编程技术网

I';m使用firebase在swift中测试登录身份验证并获取错误get output frames failed,状态8196

I';m使用firebase在swift中测试登录身份验证并获取错误get output frames failed,状态8196,swift,firebase-authentication,xcode10,ios12,Swift,Firebase Authentication,Xcode10,Ios12,我正在使用firebase在swift中测试登录身份验证,并获得错误get output frames failed,状态8196。 这是我的日志 我明白了 2018-11-19 11:14:42.259565+0530登录页面[9509:563668]-[I-ACS036002]分析屏幕报告已启用。调用+[FIRAnalytics setScreenName:setScreenClass:]设置屏幕名称或覆盖默认屏幕类名。要禁用屏幕报告,请在Info.plist中将标志FirebaseScre

我正在使用firebase在swift中测试登录身份验证,并获得错误get output frames failed,状态8196。 这是我的日志 我明白了

2018-11-19 11:14:42.259565+0530登录页面[9509:563668]-[I-ACS036002]分析屏幕报告已启用。调用+[FIRAnalytics setScreenName:setScreenClass:]设置屏幕名称或覆盖默认屏幕类名。要禁用屏幕报告,请在Info.plist中将标志FirebaseScreenReportingEnabled设置为NO(布尔值)
2018-11-19 11:14:42.285775+0530登录页面[9509:563581]libmobilegestart mobilegestart.c:890:MGIsDeviceOneOfType在此平台上不受支持。
2018-11-19 11:14:42.398664+0530登录页面[9509:563677]5.12.0-[Firebase/Analytics][I-ACS023007]Analytics v.50300000已启动
2018-11-19 11:14:42.398946+0530登录页面[9509:563677]5.12.0-[Firebase/Analytics][I-ACS023008]要启用调试日志记录,请设置以下应用程序参数:-FIRAnalyticsDebugEnabled
2018-11-19 11:14:42.875018+0530登录页[9509:563677][BoringSSL]nw_协议_BoringSSL_获取输出_帧(1301)[C1.1:2][0x7fe0c1a01780]获取输出帧失败,状态8196
2018-11-19 11:14:42.875221+0530登录页面[9509:563677][BoringSSL]nw_协议_BoringSSL_获取输出_帧(1301)[C1.1:2][0x7fe0c1a01780]获取输出帧失败,状态8196
2018-11-19 11:14:42.875850+0530登录页面[9509:563677]TIC读取状态[1:0x0]:1:57
2018-11-19 11:14:42.876003+0530登录页面[9509:563677]TIC读取状态[1:0x0]:1:57
2018-11-19 11:14:47.237996+0530登录页面[9509:563581][MC]systemgroup.com.apple.configurationprofiles的系统组容器路径为/Users/kanagarajunaesan/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登录页面[9509:563581][MC]从私人有效用户设置读取。
2018-11-19 11:14:52.620636+0530登录页面[9509:563668][BoringSSL]nw_协议_BoringSSL_获取输出帧(1301)[C2.1:2][0x7fe0bed28ef0]获取输出帧失败,状态8196
2018-11-19 11:14:52.620812+0530登录页[9509:563668][BoringSSL]nw_协议_BoringSSL_获取输出帧(1301)[C2.1:2][0x7fe0bed28ef0]获取输出帧失败,状态8196
2018-11-19 11:14:52.621483+0530登录页面[9509:563668]TIC读取状态[2:0x0]:1:57
2018-11-19 11:14:52.621723+0530登录页面[9509:563668]TIC读取状态[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语句,这就是我解决它的方法。我希望它能帮助别人

有什么最新消息吗?你解决了吗?
@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")
            }
        }

    }