微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Flutter (iOS) Firebase Auth 使用电话号码登录:在 Podfile 中添加“pod 'Firebase/Auth'”后出错

如何解决Flutter (iOS) Firebase Auth 使用电话号码登录:在 Podfile 中添加“pod 'Firebase/Auth'”后出错

我正在使用 Firebase Auth Sign in with Phone Number 和 Register with Phone number 方法。它们在 android 上运行良好,但是在 iOS 上实现它们时,我的应用程序崩溃了。在对 Firebase Auth 文档 (https://firebase.google.com/docs/auth/ios/phone-auth) 进行了一些挖掘之后,我尝试在我的 Podfile 中添加这一行:

pod 'Firebase/Auth'

但是我遇到了一个很长的错误,涉及凭据和标签名称——我正在努力识别和解决它。这是完整的(重复/持续)错误

Running pod install...
Running Xcode build...
Xcode build done.                                           60.4s
Failed to build iOS app
Error output from Xcode build:
↳
    objc[73021]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1f37a9160) and /System/Library/PrivateFrameworks/mobiledevice.framework/Versions/A/MobileDevice (0x1162242b8). One of the two will be used. Which one is undefined.
    objc[73021]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1f37a91b0) and /System/Library/PrivateFrameworks/mobiledevice.framework/Versions/A/MobileDevice (0x116224308). One of the two will be used. Which one is undefined.
    2021-05-04 15:44:38.156 xcodebuild[73021:905192] CFURLRequestSethttpcookiestorageAcceptPolicy_block_invoke: no longer implemented and should not be called
    2021-05-04 15:44:40.458 XCBBuildService[73024:905308] Failed to remove: /Users/andrewvillegas/Library/Developer/Xcode/DerivedData/Runner-glrfilgccqgizafzlzobrbgaoqsa/Build/Intermediates.noindex/XCBuildData/08a4bf4e9f6e797d8eb62106a7176b83-manifest.xcbuild: unlink(/Users/andrewvillegas/Library/Developer/Xcode/DerivedData/Runner-glrfilgccqgizafzlzobrbgaoqsa/Build/Intermediates.noindex/XCBuildData/08a4bf4e9f6e797d8eb62106a7176b83-manifest.xcbuild): No such file or directory (2)
    2021-05-04 15:44:40.603 XCBBuildService[73024:905308] Failed to remove: /Users/andrewvillegas/Library/Developer/Xcode/DerivedData/Runner-glrfilgccqgizafzlzobrbgaoqsa/Build/Intermediates.noindex/XCBuildData/08a4bf4e9f6e797d8eb62106a7176b83-desc.xcbuild: unlink(/Users/andrewvillegas/Library/Developer/Xcode/DerivedData/Runner-glrfilgccqgizafzlzobrbgaoqsa/Build/Intermediates.noindex/XCBuildData/08a4bf4e9f6e797d8eb62106a7176b83-desc.xcbuild): No such file or directory (2)
    ** BUILD Failed **


Xcode's output:
↳
    In file included from /Users/andrewvillegas/Developer/Flutter_projects/junior_tacos_app/ios/Pods/gRPC-Core/src/core/ext/filters/client_channel/xds/xds_channel_secure.cc:34:
    /Users/andrewvillegas/Developer/Flutter_projects/junior_tacos_app/ios/Pods/gRPC-Core/src/core/lib/security/credentials/credentials.h:205:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
    typedef struct {
                  ^
                   grpc_credentials_mdelem_array
    /Users/andrewvillegas/Developer/Flutter_projects/junior_tacos_app/ios/Pods/gRPC-Core/src/core/lib/security/credentials/credentials.h:206:21: note: type is not C-compatible due to this default member initializer
      grpc_mdelem* md = nullptr;
                        ^~~~~~~
    /Users/andrewvillegas/Developer/Flutter_projects/junior_tacos_app/ios/Pods/gRPC-Core/src/core/lib/security/credentials/credentials.h:208:3: note: type is given name 'grpc_credentials_mdelem_array' for linkage purposes by this typedef declaration
    } grpc_credentials_mdelem_array;
      ^
    1 warning generated.
    In file included from /Users/andrewvillegas/Developer/Flutter_projects/junior_tacos_app/ios/Pods/gRPC-Core/src/core/ext/transport/chttp2/transport/writing.cc:21:
    In file included from /Users/andrewvillegas/Developer/Flutter_projects/junior_tacos_app/ios/Pods/gRPC-Core/src/core/ext/transport/chttp2/transport/context_list.h:26:
    /Users/andrewvillegas/Developer/Flutter_projects/junior_tacos_app/ios/Pods/gRPC-Core/src/core/ext/transport/chttp2/transport/internal.h:109:15: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
    typedef struct {
                  ^
                   grpc_chttp2_ping_queue
    /Users/andrewvillegas/Developer/Flutter_projects/junior_tacos_app/ios/Pods/gRPC-Core/src/core/ext/transport/chttp2/transport/internal.h:110:52: note: type is not C-compatible due to this default member initializer
      grpc_closure_list lists[GRPC_CHTTP2_PCL_COUNT] = {};
                                                       ^~


Error launching application on iPhone.

我该如何解决这个错误?谢谢你们!! --AV

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。