【问题标题】:How do I hide or remove warnings for a specific pod dependency?如何隐藏或删除特定 pod 依赖项的警告?
【发布时间】:2017-06-13 06:30:29
【问题描述】:

我正在使用 Firebase/Remote 配置 pod,该 pod 依赖于名为 Protobuf 的 pod 其中有很多警告。 我的 pod 文件

platform :ios, '10.0'

target 'AppeeUITests' do

  use_frameworks!

  pod 'Alamofire', '4.4'
  pod 'SwiftyJSON', '3.1.4'
  pod 'Firebase/Core'
  pod 'Firebase/RemoteConfig'

end

target 'AppeeUITests' do
    inherit! :search_paths
    pod 'Firebase/Core'
    pod 'Firebase/RemoteConfig'
end

target 'AppeeUITests' do
    inherit! :search_paths
end

以下是它产生的警告:

【问题讨论】:

  • 只需更新您的 pod。
  • @SalmanGhumsani 抱歉,我是 iOS 新手。我该怎么做?
  • @SalmanGhumsani 我做了一个pod update 它没有用
  • 您在“Firebase/RemoteConfig”中使用的是哪个版本

标签: swift xcode cocoapods firebase-remote-config


【解决方案1】:

如果您使用的是FirebaseRemoteConfig (2.0.0)Protobuf (3.3.0) 版本,请不要担心这些警告。这已经更新并且您正在使用最新版本,因此您必须等待 Google firebase 的下一个版本才能删除警告,这意味着 Firebase 团队必须努力进行更新。

【讨论】:

    【解决方案2】:

    应该通过更新你的 pod 来解决。

    更新 pod 的步骤: 1.打开终端,来到你的项目目录 2.运行'pod update'命令

    它将更新您的所有 pod 框架。

    如果您收到未找到的 pod 命令,请尝试使用“sudo gem install cocoapods”或follow these steps simply

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-26
      • 2015-06-18
      • 2022-09-30
      • 2018-10-20
      • 2021-09-24
      • 2011-07-02
      • 2021-12-23
      • 1970-01-01
      相关资源
      最近更新 更多