【发布时间】:2020-07-23 03:00:26
【问题描述】:
我正在将 pod 'Firebase/Crashlytics' 安装到我的 Xcode 项目中。 项目配置为: X代码:10.3 斯威夫特版本:4.2 Pod 版本:1.8.0.beta.2
pod 安装后出错:
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In snapshot (Podfile.lock):
Firebase/CoreOnly (= 6.4.0)
In Podfile:
Firebase/Auth was resolved to 6.4.0, which depends on
Firebase/CoreOnly (= 6.4.0)
Firebase/Crashlytics was resolved to 6.15.0, which depends on
Firebase/CoreOnly (= 6.15.0)
[!] Automatically assigning platform `iOS` with version `11.0` on target `Projects` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
我的 podfile 中的其他 pod:
# Uncomment the next line to define a global platform for your project
pod 'SwifterSwift'
pod 'AlamofireNetworkActivityIndicator'
pod 'ReachabilitySwift'
pod 'IQKeyboardManagerSwift'
pod 'Nuke'
pod 'FlagPhoneNumber'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Messaging'
pod 'SDDownloadManager'
pod 'Cosmos', '~> 18.0'
pod 'Socket.IO-Client-Swift', '~> 13.2.0'
pod 'SwiftyJSON', '= 4.0'
pod 'AppImageViewer'
pod 'MDGroupAvatarView'
pod 'OpalImagePicker'
pod 'KMPlaceholderTextView', '~> 1.4.0'
pod 'CropViewController'
pod 'GrowingTextView', '0.6.1'
pod 'Firebase/Crashlytics'
end
【问题讨论】:
-
我建议删除
Firebase/Core