5

嗨,任何人在安装 Admob 时都遇到了这个错误。

[!] /usr/bin/curl -f -L -o /var/folders/_r/thfyvgfn1f19wtmqttvwfpxh0000gn/T/d20161213-1890-nik74x/file.tgz https://dl.google.com/dl/cpdc/b8337da55c97ec54 -Google-Mobile-Ads-SDK-7.14.0.tar.gz --create-dirs --netrc-optional

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:03:02 --:--:--     0curl: (56) SSLRead() return error -9806

这是我的播客文件。

# Pods for admobintegration

pod 'Firebase/Core'
pod 'Firebase/AdMob'
4

3 回答 3

7

花了 5 个小时才得到解决方案。现在在我的 XCode 项目中它工作正常。问题是因为以太网网络代理或防火墙之类的东西阻止了 firebase 下载 url。

当我的 macbook 与移动网络连接时,它可以工作,最后“pod install”命令成功工作。

我已通知我的 Office 网络管理员从终端修复并允许 firebase url https://dl.google.com/dl/cpdc/bf4dd8c5ac4d8ac9/Firebase-3.10.0.tar.gz 。希望他们能尽快解决这个问题。

但目前我已经在移动网络上成功安装了 firebase pod。希望这也可以解决您的问题。

于 2016-12-13T11:52:40.777 回答
1

我在安装 FCM pods 时也面临同样的问题。尝试在顶部添加您的 pod 文件,如下面的场景。这是我的 pod 文件 <`pod 'Firebase/Core',pod 'Firebase/Messaging'>

 # Uncomment the next line to define a global platform for your project
 # platform :ios, '9.0'

 target 'ChkdIn' do
  # Uncomment the next line if you're using Swift or would like to use  dynamic frameworks
 # use_frameworks!

 # Pods for ChkdIn
 pod 'Firebase/Core'
 pod 'Firebase/Messaging'
 pod 'CarbonKit'
 pod 'SDWebImage', '~>3.8'
 pod 'RKCardView'
 pod 'HTHorizontalSelectionList', '~> 0.7.4'
 pod 'DGActivityIndicatorView'
pod 'ASJTagsView'


target 'ChkdInTests' do
inherit! :search_paths
# Pods for testing
end

target 'ChkdInUITests' do
inherit! :search_paths
# Pods for testing
end

 end
于 2016-12-13T07:15:51.340 回答
0

而不是只添加

<key>GADApplicationIdentifier</key>
<string>ca-app-pub-3940256099942544~1458002511</string>

添加这个

<key>GADApplicationIdentifier</key>
<string>ca-app-pub-3940256099942544~1458002511</string>
<key>SKAdNetworkItems</key>
  <array>
    <dict>
      <key>SKAdNetworkIdentifier</key>
      <string>cstr6suwn9.skadnetwork</string>
    </dict>
  </array>

这对我来说是固定的问题。

参考:https ://developers.google.com/admob/ios/quick-start#update%5C_your%5C_infoplist

于 2021-03-08T09:57:43.963 回答