【发布时间】:2020-06-28 09:42:42
【问题描述】:
我将firestore添加到flutter的ios部分的步骤
- 创建一个新的颤振应用。
- 确保在 ios 模拟器中启动 flutter run。效果很好。
- 将 cloud_firestore: 0.9.7 添加到 pubspec.yaml
- 然后运行应用程序,这会导致错误。
Pod.lock 文件没有被创建
这是我的 pubspec.yaml
name: dili_platform
description: A new Flutter application.
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cloud_firestore: 0.9.7
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
dev_dependencies:
flutter_test:
sdk: flutter
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
uses-material-design: true
我正在使用 Xcode 版本 11.2 (11B52)
【问题讨论】:
-
你能不能试试
cloud_firestore: ^0.13.4+2也告诉sudo gem which cocoapods的结果 -
sudo gem which cocoapods的结果是
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods.rb -
我尝试了
cloud_firestore: ^0.13.4+2,但仍然得到相同的结果
标签: xcode firebase flutter google-cloud-firestore cocoapods