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

Arm*_*udi 1 xcode cocoapods firebase flutter google-cloud-firestore

我将 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, 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)

Ans*_*kki 9

运行这两个命令:

rm -rf ~/.cocoapods/repos/Spec_Lock
rm -rf ~/.cocoapods/repos/trunk/
Run Code Online (Sandbox Code Playgroud)

然后pod install

来源