5

我几乎没有将 Firebase 库集成到我正在进行的 iOS 项目中,最近出现“找不到时间文件”错误,如下所示:

在此处输入图像描述

在过去的两天里,我一直坚持这一点。我像往常一样经历了几个论坛和SO(像thisthis)。但是没有任何帮助,而且真的无法在任何地方找到一个可接受的解决方案。另一个奇怪的事情是 Xcode 自动代码完成和控制台日志在此之后不起作用。我的 pod 文件如下所示:

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

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

  # Pods for LearningApp


  pod 'Firebase/Firestore'
  pod 'Firebase/Analytics'
  pod 'FirebaseFirestoreSwift'
  pod 'Firebase/Storage'
  pod 'Firebase/Messaging'
  pod 'SDWebImagePDFCoder'
  pod 'Firebase/Auth'
  pod 'MessageKit'
  pod 'GoogleSignIn'
  pod 'SwiftKeychainWrapper'

  
  target 'LearningAppTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'LearningAppUITests' do
    # Pods for testing
  end

end

现在我正在使用 Xcode 12.0.1 和 Swift 5。我真的很坚持这个,希望有人能提供帮助。

4

1 回答 1

1

我有一个解决方案,这对我有用。希望这可以帮助某人。

  1. pod deintegrate从终端做。
  2. 添加Firebase frameworks使用Swift Package Manager在此处查看如何添加 Firebase 包管理器)。
  3. 如果需要,安装其他 pod。

去!

于 2020-11-29T16:39:15.477 回答