簡體   English   中英

我正在使用firebase在swift中測試登錄身份驗證,並且獲取錯誤導致輸出幀失敗,狀態為8196

[英]I'm testing login authentication in swift using firebase and getting errors get output frames failed, state 8196

我正在使用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")
            }
        }

    }

在這種方法中,我選擇了一個電子郵件注冊,如果沒有錯誤(錯誤== nil),它將轉到segue引導的位置。

我在第一次嘗試時得到了相同的錯誤代碼。 然后我意識到我創建了if語句錯誤(錯誤!= nil)。 我的代碼中的問題以及為什么我失敗狀態8196是if語句,這就是我解決它的方法。 我希望它可以幫助別人。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM