繁体   English   中英

使用 Cocoapods 添加到项目时出现 Firebase 错误

[英]Firebase Error While Adding To Project Using Cocoapods

首先,我想让你知道我之前有几次用户 Firebase Firestore 并且没有遇到过这样的错误......我已经一步一步正确地遵循了这个过程,因为它不起作用,我也尝试添加firebase 到现有项目,它仍然给我错误。 下面是我得到的错误:

2020-05-21 09:32:15.775788+0530 Job App[61230:1180572] [GoogleDataTransport][I-GDTCOR001006] (/Users/tejas/Desktop/Files/Coding/Main Projects/Job App/Pods/GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/GDTCOREvent.m:59): There was an error saving the new counter value to disk.

请记住,这个错误只会在我第一次在模拟器上运行应用程序时弹出,然后当我重新运行它时,这个错误就消失了。 尽管出现此错误,我的应用程序甚至也没有崩溃,并且构建始终成功。 这是我的应用信息:

在此处输入图像描述

这是我的应用程序委托中的代码

import Firebase

@UIApplicationMain

class AppDelegate: UIResponder, UIApplicationDelegate {

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool
    {
        // Override point for customization after application launch.
        FirebaseApp.configure()
        return true
    }

我的 GoogleService-Info.plist 文件具有正确的捆绑 ID:

在此处输入图像描述

这是我的 GoogleService-Info.plist 的文件检查器:

在此处输入图像描述

这是我的 podfile 中的代码:

# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'

target 'Job App' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Job App
pod 'lottie-ios'
pod 'Firebase/Firestore'
end

这是我从 Firebase 应用程序设置向导收到的消息:

在此处输入图像描述

这些是 pods 文件夹下的 pod:

在此处输入图像描述

它会持续加载很长时间,我确定出了点问题...

pod update并确保 GoogleDataTransport pod 的版本为 6.1.1。

这个问题在几周前得到了修复。 https://github.com/firebase/firebase-ios-sdk/issues/5421

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM