颤振和 Xcode 构建问题

时间:2021-02-25 11:17:47

标签: xcode firebase flutter firebase-authentication

你好,我已经在 linux 上创建了我的 flutter 项目,现在我通过将它推送到 GitHub 然后将它克隆到我的 make 来将它移到 Mac 以避免任何可能出错的事情,但现在我得到的只是这个错误,我不知道为什么!

** BUILD FAILED **


Xcode's output:
↳
    /Users/fahmisawalha/development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.20.0+1/ios/Classes/FLTFirebaseAuthPlugin.m:54:35: error: unknown type name 'FIRAuthStateDidChangeListenerHandle'
      NSMutableDictionary<NSString *, FIRAuthStateDidChangeListenerHandle> *_authChangeListeners;
                                      ^

1 个答案:

答案 0 :(得分:1)

尝试这样做

flutter clean
rm -Rf ios/Pods
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec


 Then for reproduce Podfile follow this command

rm ios/Podfile

您的项目终于准备好了

flutter run