JSON :: ParserError - 416: неожиданный токен в '"#define RSAPrivateKey_dup GRPC_SHADOW_' - PullRequest
0 голосов
/ 17 марта 2020

Шаги, которые я выполнил, чтобы добавить firestore в ios часть флаттера

  1. Создайте новое приложение флаттера.
  2. Убедитесь, что флаттер запускается в симуляторе ios. Он работает нормально.
  3. Добавьте cloud_firestore: 0.9.7 в pubspe c .yaml
  4. , затем запустите приложение, что приведет к ошибке.

Файл Pod.lock не создается

Вот мой pubspe c .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)

1 Ответ

1 голос
/ 18 марта 2020

Я понизил версию cocoapods, следуя инструкциям, перечисленным здесь [https://github.com/flutter/flutter/issues/41253#issuecomment -536039050] , а затем использовал следующий пакет 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

...