简体   繁体   中英

Firebase Error While Adding To Project Using Cocoapods

Firstly, I would like to let you know that I have user Firebase Firestore several times before and have not faced such an error... I have followed the process correctly step by step and, because it was not working, I also tried to add firebase to an existing project and it has still given me errors. Below is there error which I get:

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.

Keep in mind that this error only pops up the first time I run the app on the simulator, then when I rerun it this error is gone. My app also doesn't even crash and the build always succeeds despite this error. Here is my app information:

在此处输入图像描述

Here is the code in my app delegate

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
    }

My GoogleService-Info.plist file has the correct bundle ID:

在此处输入图像描述

Here is the file inspector of my GoogleService-Info.plist:

在此处输入图像描述

Here is the code inside my 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

Here is the message I get from the Firebase App Setup Wizard:

在此处输入图像描述

These are the pods under the pods folder:

在此处输入图像描述

It keeps on loading for a very long time and I'm sure that something is going wrong...

Do pod update and make sure that the GoogleDataTransport pod is at version 6.1.1.

This issue was fixed a few weeks ago. See https://github.com/firebase/firebase-ios-sdk/issues/5421

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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