【问题标题】:CocoPods did not download Google-Mobile-SDK. How can I fix this?CocoaPods 没有下载 Google-Mobile-SDK。我怎样才能解决这个问题?
【发布时间】:2021-03-30 18:00:10
【问题描述】:

我正在尝试使用 CocoaPods 将 Google-Mobile-SDK 添加到我的 Xcode 项目中。我已经为我的项目创建了 podFile。 enter image description here

然后,在这个 podFile 中,我添加了这一行 pod 'Google-Mobile-Ads-SDK' enter image description here

然后在终端中,我输入了 cd Desktop/testBanner5。 testBanner5 是我的项目的名称。 然后我输入 pod install 并按下回车键。我期待这将下载 Google-Mobile-SDK。相反,它向我展示了这个:enter image description here

enter image description here

enter image description here

我应该怎么做才能解决这个问题?

【问题讨论】:

    标签: ios xcode admob cocoapods


    【解决方案1】:

    尝试删除pod "Google-Mobile-SDK" 并在终端中执行pod install。如果你有同样的错误,最好的方法是重新安装 cocoapods

    【讨论】:

    • 对不起,我错了。 ` target testBanner5 do pod "Google-Mobile-SDK" end target testBanner5Test do #pod "Google-Mobile-SDK" end target testBanner5UITest do #pod "Google-Mobile-SDK" end `
    【解决方案2】:

    对不起,我错了。

    target 'testBanner5' do
     pod "Google-Mobile-SDK"
    end
    
    target 'testBanner5Test' do
     #pod "Google-Mobile-SDK"
    end
    
    target 'testBanner5UITest' do
     #pod "Google-Mobile-SDK"
    end
    

    【讨论】:

      猜你喜欢
      • 2013-10-24
      • 1970-01-01
      • 2019-04-10
      • 1970-01-01
      • 2012-03-16
      • 1970-01-01
      • 2020-11-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多