Arm*_*udi 1 xcode cocoapods firebase flutter google-cloud-firestore
我将 firestore 添加到 flutter 的 ios 部分的步骤
未创建 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
Run Code Online (Sandbox Code Playgroud)
我使用的是 Xcode 版本 11.2 (11B52)
运行这两个命令:
rm -rf ~/.cocoapods/repos/Spec_Lock
rm -rf ~/.cocoapods/repos/trunk/
Run Code Online (Sandbox Code Playgroud)
然后pod install
。
归档时间: |
|
查看次数: |
1504 次 |
最近记录: |