我的 flutter 应用程序使用 Firebase Auth(电话)。我一直看到错误:'Please register custom URL scheme 'com.googleusercontent.apps.602546125958-5lk04ghhdfj5xxxxxxxx'
.
我已将 URL 架构添加到 info.plist,如下所示,但我遇到了同样的错误。
2020-04-29 20:40:05.173962-0400 Runner[395:20944] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Please register custom URL scheme 'com.googleusercontent.apps.602546125958-5lk04ghhdfj5xxxxxxxx' in the app's Info.plist file.'
*** First throw call stack:
(0x1889035f0 0x188625bcc 0x1887f9b28 0x10086cfa8 0x100f056a0 0x102efb3b0 0x102e921bc 0x102eeb9cc 0x102ea2a68 0x102ea4dcc 0x1888821c0 0x188881edc 0x1888815b8 0x18887c5c8 0x18887bc34 0x1929c538c 0x18c9ae22c 0x10082addc 0x188703800)
libc++abi.dylib: terminating with uncaught exception of type NSException
最佳答案
从 .plist 文件中删除您的 URL 类型条目并按照步骤操作,将自动生成 .plist 条目。
这也适用于 Flutter
脚步:
如果要添加超过 1 个 URL 方案,可以单击 URL 类型中的 +。
如果您有任何问题,请发表评论。
乐意效劳!
关于ios - Firebase(电话身份验证)获取 iOS 错误 : register custom URL scheme,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61514076/