【发布时间】:2019-11-15 14:30:47
【问题描述】:
我正在尝试为我的 swift 应用程序设置 Firebase 身份验证登录,我之前在许多其他应用程序上都没有问题,但是由于某种原因,这次我一直收到此错误:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFURLSessionConfiguration_Mutable setTLSMinimumSupportedProtocolVersion:]: unrecognized selector sent to instance 0x121f941b0'
*** First throw call stack:
(0x1c6d2b9f0 0x1c72384fc 0x1c6c306ac 0x1c6d2fd40 0x1c6d3178c 0x103448980 0x103446a4c 0x100bc368c 0x100bc60f0 0x100bc462c 0x100bc297c 0x100bb2b80 0x100bb4428 0x100bb2e3c 0x100bb251c 0x104659874 0x10465ac50 0x104661bc8 0x104662768 0x10466db74 0x1c7578f5c 0x1c757baa0)
libc++abi.dylib: terminating with uncaught exception of type NSException
只有在 iOS13 上的 iPad 上运行时才会发生这种情况,而在运行 iOS 13.2 的 iPhone 上也会发生这种情况,但它似乎无缘无故地自行修复。在模拟器上运行时从未出现过此问题。
使用文档中的代码:
Auth.auth().signIn(withEmail: emailInput.text!, password: passwordInput.text!) { [weak self] user, error in
guard let strongSelf = self else { return }
}
【问题讨论】:
-
检查 emailInput.text 是否为零!和密码Input.text!验证以在您的项目中包含 GoogleService-Info.plist
-
已尝试对电子邮件和密码进行硬编码,因此不存在错误,尝试重新下载 GoogleService-Info 仍然无法正常工作
标签: ios swift firebase firebase-authentication