firebase Flutter构建-获取错误-数据快照平台.验证扩展,断开连接平台.验证扩展

h4cxqtbf  于 2022-12-14  发布在  Flutter
关注(0)|答案(1)|浏览(112)

今天开始收到iOS构建的以下错误。

Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/zm/0n9b6r1d0pv73j14vwr1w5s80000gn/T/flutter_tools.EuJlha/flutter_ios_build_temp_dirqOJbPP/temporary_xcresult_bundle
: Error: Member not found: 'FirebaseAppPlatform.verify'.
../…/src/firebase_app.dart:18
        FirebaseAppPlatform.verify(_delegate);
                            ^^^^^^
: Error: Member not found: 'DataSnapshotPlatform.verifyExtends'.
../…/src/data_snapshot.dart:9
        DataSnapshotPlatform.verifyExtends(_delegate);
                             ^^^^^^^^^^^^^
: Error: Member not found: 'DatabaseEventPlatform.verifyExtends'.
../…/src/database_event.dart:13
        DatabaseEventPlatform.verifyExtends(_delegate);
                              ^^^^^^^^^^^^^
: Error: Member not found: 'OnDisconnectPlatform.verifyExtends'.
../…/src/on_disconnect.dart:27
        OnDisconnectPlatform.verifyExtends(_delegate);
                             ^^^^^^^^^^^^^
: Error: Member not found: 'TransactionResultPlatform.verifyExtends'.
../…/src/transaction_result.dart:12
        TransactionResultPlatform.verifyExtends(_delegate);
                                  ^^^^^^^^^^^^^

我在SO -https://stackoverflow.com/a/74580648/13766036上尝试了其他类似问题中的步骤
仍然存在构建问题。
第一次

6l7fqoea

6l7fqoea1#

更新了我的pubspec.yaml以使用最新的firebase可用包

firebase_auth: 4.2.0
  firebase_core: 2.4.0
  firebase_database: 10.0.7
  firebase_storage: 11.0.7

从pubspec.yaml中删除了firebase包的任何 dependency_overrides
最后完成了以下步骤

flutter clean
flutter pub get
cd ios 
rm -f Podfile.lock
pod install --repo-update
cd ..
flutter run

以上对我起作用了,问题解决了。

相关问题