简体   繁体   English

Firebase Xcode 导入 cloud_firestore 未找到

[英]Firebase Xcode import cloud_firestore not found

Hello I'm firebase for the first time but when I run my program me this error does anyone know what might be wrong?您好,我是第一次使用 firebase,但是当我运行我的程序时,这个错误有人知道可能是什么问题吗?

("Olá eu estou firebase pela primeira vez, mas quando eu executar o meu programa me este erro alguém sabe o que pode estar errado?") (“Olá eu estou firebase pela primeira vez, mas quando eu executar o meu programa me este erro alguém sabe o que pode estar errado?”)

major bug: not found cloud_firestore主要错误:未找到 cloud_firestore

altered error:更改错误:

Xcode's output:
↳
    /Users/indumonta/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.5+1/ios/Classes/FirebaseCorePlugin.m:13:17: warning: property 'dictionary' requires method 'dictionary' to be defined - use @dynamic or provide a method implementation in this category [-Wobjc-property-implementation]
    @implementation FIROptions (FLTFirebaseCorePlugin)
                    ^
    /Users/indumonta/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.5+1/ios/Classes/FirebaseCorePlugin.m:10:46: note: property declared here
    @property(readonly, nonatomic) NSDictionary *dictionary;
                                                 ^
    1 warning generated.
    /Users/indumonta/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.6.3/ios/Classes/CloudFirestorePlugin.m:351:26: error: unknown receiver 'FIRSetOptions'; did you mean 'FIROptions'?
                    options:[FIRSetOptions merge]
                             ^~~~~~~~~~~~~
                             FIROptions
    In module 'FirebaseCore' imported from /Users/indumonta/AndroidStudioProjects/firebase/ios/Pods/Headers/Public/Firebase/Firebase.h:15:
    /Users/indumonta/AndroidStudioProjects/firebase/ios/Pods/FirebaseCore/FirebaseCore/Sources/Public/FIROptions.h:25:12: note: 'FIROptions' declared here
    @interface FIROptions : NSObject <NSCopying>
               ^
    /Users/indumonta/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.6.3/ios/Classes/CloudFirestorePlugin.m:351:40: error: no known class method for selector 'merge'
                    options:[FIRSetOptions merge]
                                           ^~~~~
    /Users/indumonta/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.6.3/ios/Classes/CloudFirestorePlugin.m:350:17: error: no visible @interface for 'FIRDocumentReference' declares the selector 'setData:options:completion:'
          [document setData:call.arguments[@"data"]
           ~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/indumonta/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.6.3/ios/Classes/CloudFirestorePlugin.m:440:76: error: unknown receiver 'FIRSetOptions'; did you mean 'FIROptions'?
          [batch setData:call.arguments[@"data"] forDocument:document options:[FIRSetOptions merge]];
                                                                               ^~~~~~~~~~~~~
                                                                               FIROptions
    In module 'FirebaseCore' imported from /Users/indumonta/AndroidStudioProjects/firebase/ios/Pods/Headers/Public/Firebase/Firebase.h:15:
    /Users/indumonta/AndroidStudioProjects/firebase/ios/Pods/FirebaseCore/FirebaseCore/Sources/Public/FIROptions.h:25:12: note: 'FIROptions' declared here
    @interface FIROptions : NSObject <NSCopying>
               ^
    /Users/indumonta/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.6.3/ios/Classes/CloudFirestorePlugin.m:440:90: error: no known class method for selector 'merge'
          [batch setData:call.arguments[@"data"] forDocument:document options:[FIRSetOptions merge]];
                                                                                             ^~~~~
    /Users/indumonta/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.6.3/ios/Classes/CloudFirestorePlugin.m:440:14: error: no visible @interface for 'FIRWriteBatch' declares the selector 'setData:forDocument:options:'
          [batch setData:call.arguments[@"data"] forDocument:document options:[FIRSetOptions merge]];
           ~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/indumonta/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.6.3/ios/Classes/CloudFirestorePlugin.m:270:7: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
          transactions[transactionId] = transaction;
          ^
          self->
    /Users/indumonta/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.6.3/ios/Classes/CloudFirestorePlugin.m:277:29: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                                transactionResults[transactionId] = doTransactionResult;
                                ^
                                self->
    /Users/indumonta/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.6.3/ios/Classes/CloudFirestorePlugin.m:284:14: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
          return transactionResults[transactionId];
                 ^
                 self->
    /Users/indumonta/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.6.3/ios/Classes/CloudFirestorePlugin.m:298:37: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
          FIRTransaction *transaction = transactions[transactionId];
                                        ^
                                        self->
    /Users/indumonta/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.6.3/ios/Classes/CloudFirestorePlugin.m:322:37: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
          FIRTransaction *transaction = transactions[transactionId];
                                        ^
                                        self->
    /Users/indumonta/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.6.3/ios/Classes/CloudFirestorePlugin.m:331:37: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
          FIRTransaction *transaction = transactions[transactionId];
                                        ^
                                        self->
    /Users/indumonta/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.6.3/ios/Classes/CloudFirestorePlugin.m:340:37: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
          FIRTransaction *transaction = transactions[transactionId];
                                        ^
                                        self->
    10 warnings and 6 errors generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11.

Run these commands in your terminal:在终端中运行这些命令:

flutter clean

then:然后:

flutter build ios

Go to the ios directory in your root folder and run pod install and this problem will be solved if it tells you pod is not recognized or something like that run brew install ruby Go 到根文件夹中的 ios 目录并运行pod install如果它告诉您 pod 无法识别或类似运行brew install ruby ,则此问题将得到解决

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM