Mad Burea
Mad Burea

Reputation: 541

Error installing Google-Mobile-Ads-SDK

Hi any one faced this error while installing 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

Here is my podfile.

# Pods for admobintegration

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

Upvotes: 5

Views: 3103

Answers (3)

Abdullah Khan
Abdullah Khan

Reputation: 1481

Instead of only adding

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

Add this

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

This fixed issue for me.

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

Upvotes: 0

vnaren001
vnaren001

Reputation: 254

It wasted 5 hours to reach the solution. Now in my XCode project it work fine. The issue was because of Ethernet Network Proxy OR Firewall something like that were blocking firebase download urls.

When connect my macbook with Mobile Network, then it worked, And finally "pod install" command work successfully.

I have informed my Office Network Admin person to fix and allow firebase url https://dl.google.com/dl/cpdc/bf4dd8c5ac4d8ac9/Firebase-3.10.0.tar.gz from terminal. Hope they will fix this issue asap.

But for the time I have installed successfully firebase pod on Mobile Network. Hope this can solve your problem also.

Upvotes: 9

Siva Sankar
Siva Sankar

Reputation: 543

i am also facing the same problem for installing FCM pods.try to add your pod files in top like bellow sceen.This is my pod file <`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

Upvotes: 1

Related Questions