swift - 在Swift中安装 'Firebase/Crashlytics' Pod时出错

标签 swift firebase cocoapods

I am installing the pod 'Firebase/Crashlytics' into my Xcode project. the project configuration is: XCode: 10.3 Swift Version: 4.2 Pod Version: 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

最佳答案

改变

pod 'Firebase/Core'


pod 'Firebase/CoreOnly'

编辑:

就我而言,我在Podfile中指定了pod版本,因此我必须在Podfile中更改这一行。

关于swift - 在Swift中安装 'Firebase/Crashlytics' Pod时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61138984/

相关文章:

ios - Firebase:无法上传生产 APNs 证书

swift - 解决类的歧义扩展属性

ios - 字典中的 swift 行动不可预测

angular - 将 FirebaseListObservable 结果转换为对象

swift - Swift 4 中的冗余一致性约束警告

javascript - 将 Angular Web 应用程序连接到 Firebase

ios - 当我的项目使用 Cocoapods 时如何安装 Frank?

xcode - 将 Swift 应用程序分解为框架

objective-c - 使用参数从 Objective-C 调用 Swift func

swift - 如何在一个发送者中发送多个变量?