找不到模块“ cloud_firestore”(颤振)

时间:2020-06-16 19:49:54

标签: swift xcode firebase flutter dart

使用Xcode'module'cloud_firestore'找不到应用程序时,出现此错误。 [在此处输入图像描述] [1]我将Cocoapods更新为1.9.3,并将flutter更新为1.17.3,但仍无法正常工作,我正在打开file.xcworkspace。

此外,这些是我依赖项的版本:

  flutter:
    sdk: flutter
  flutter_screenutil: ^1.0.2
  intl: ^0.16.1
  charts_flutter: ^0.8.1

  flutter_picker:
    git: git://github.com/yangyxd/flutter_picker.git
  flutter_cupertino_data_picker: ^0.8.6
  firebase_core: ^0.4.3+1
  #firebase_analytics: ^5.0.9
  firebase_auth: ^0.15.1 
  provider: ^4.0.4
  flutter_spinkit: ^4.1.2
  cupertino_icons: ^0.1.2
  cloud_firestore: ^0.12.10
  firebase_database: ^3.1.3 


  [1]: https://i.stack.imgur.com/ZPc71.png

2 个答案:

答案 0 :(得分:2)

来自this

对于在“存档”或尝试发布到Apple Store时遇到问题的任何人:

确保在Xcode中关闭所有项目 打开“ Runner.xcworkspace”而不是runner.xcodeproj 您必须确保Runner.xcodeproj与工作空间不会同时打开。

这还假设您在归档之前已经成功运行并构建了

答案 1 :(得分:0)

更新Firestore版本:

cloud_firestore: ^0.13.6