【发布时间】:2020-03-26 09:16:45
【问题描述】:
我正在使用 Swift 开发一个依赖于 Firebase 的 Xcode 项目,该项目是我通过 Cocoapods 下载的。自 2020 年初以来,每 4 天左右就会出现各种与 Pod 相关的错误,并导致构建崩溃。运行 pod install 和 pod update 修复了这些问题,但是,再过 4 天左右,新的错误又回来了。最近的错误是 Swift 编译器错误,它读取了“Firebase.h”类型的许多不同文件的 Duplicate interface definition for class 'FIRApp' 或 Redefinition of 'FIRLoggerLevel'
运行 pod update 时,我通常会收到一长串已更新或源已更改的 pod:
Installing Firebase 6.21.0 (was 6.20.0)
Installing FirebaseAnalytics 6.4.0 (was 6.3.1 and source changed to `https://cdn.cocoapods.org/` from `trunk`)
Installing FirebaseAuth 6.5.1 (was 6.5.0 and source changed to `https://cdn.cocoapods.org/` from `trunk`)
Installing FirebaseCore 6.6.5 (was 6.6.4 and source changed to `https://cdn.cocoapods.org/` from `trunk`)
Installing FirebaseInstallations 1.1.1 (was 1.1.0 and source changed to `https://cdn.cocoapods.org/` from `trunk`)
Installing GoogleAppMeasurement 6.4.0 (was 6.3.1 and source changed to `https://cdn.cocoapods.org/` from `trunk`)
Installing GoogleDataTransport 5.1.0 (was 5.0.0 and source changed to `https://cdn.cocoapods.org/` from `trunk`)
Installing GoogleDataTransportCCTSupport 2.0.1 (was 2.0.0 and source changed to `https://cdn.cocoapods.org/` from `trunk`)
有谁知道为什么自 2020 年初以来 pod 如此频繁地更新和更改来源?这个问题导致无法高效开发,因为我经常遇到这些错误,最近运行 pod install 和 pod update 并没有修复这些错误。欢迎任何建议、解释或其他 cmets。
【问题讨论】:
标签: ios swift xcode firebase cocoapods