【发布时间】:2020-05-21 06:32:26
【问题描述】:
首先,我想让您知道,我之前曾多次使用 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:
它会持续加载很长时间,我确定出了点问题......
【问题讨论】:
-
有时会发生这种情况。实施 firebase 代码并从 firebase 控制台发送测试通知。这就是您测试实施的方式。
-
嘿迪兰,你能告诉我怎么做吗??
标签: ios swift firebase google-cloud-firestore