【问题标题】:JSON::ParserError - 416: unexpected token at '"#define RSAPrivateKey_dup GRPC_SHADOW_'JSON::ParserError - 416: '"#define RSAPrivateKey_dup GRPC_SHADOW_' 处出现意外标记
【发布时间】:2020-06-28 09:42:42
【问题描述】:

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

  1. 创建一个新的颤振应用。
  2. 确保在 ios 模拟器中启动 flutter run。效果很好。
  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

我正在使用 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


【解决方案1】:

我已经按照此处列出的说明 [https://github.com/flutter/flutter/issues/41253#issuecomment-536039050] 降级了 cocoapods,然后使用了以下 firebase 包:

firebase_core: ^0.4.0
firebase_analytics: ^3.0.0
firebase_auth: ^0.11.0
cloud_firestore: ^0.11.0+1
cloud_functions: ^0.3.0

看起来它与 cocoapods v1.9.0 发布了一些兼容性

【讨论】:

    猜你喜欢
    • 2022-07-27
    • 1970-01-01
    • 1970-01-01
    • 2020-02-25
    • 1970-01-01
    • 2014-10-06
    • 1970-01-01
    • 1970-01-01
    • 2019-05-22
    相关资源
    最近更新 更多