我几乎没有将 Firebase 库集成到我正在进行的 iOS 项目中,最近出现“找不到时间文件”错误,如下所示:
在过去的两天里,我一直坚持这一点。我像往常一样经历了几个论坛和SO(像this和this)。但是没有任何帮助,而且真的无法在任何地方找到一个可接受的解决方案。另一个奇怪的事情是 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。我真的很坚持这个,希望有人能提供帮助。