小编Arm*_*udi的帖子

JSON::ParserError - 416:“#define RSAPrivateKey_dup GRPC_SHADOW_”处出现意外标记

我将 firestore 添加到 flutter 的 ios 部分的步骤

  1. 创建一个新的颤振应用程序。
  2. 确保 flutter run 在 ios 模拟器中启动。效果很好。
  3. 将 cloud_firestore: 0.9.7 添加到 pubspec.yaml
  4. 然后运行该应用程序,这会导致错误。

未创建 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, …
Run Code Online (Sandbox Code Playgroud)

xcode cocoapods firebase flutter google-cloud-firestore

1
推荐指数
1
解决办法
1504
查看次数