SmokersCough
SmokersCough

Reputation: 967

Pod install resulting in "Using Google-Mobile-Ads-SDK" during installation but files do not exist

I'm having some issues with my cocoapods install since pulling from a new repo:

When i grab code from the repo on the new machine and try to run it straight off the bat i get errors with various missing files. Now this is expected as i have not committed the pods directory to the repo. So running the pod install command from terminal (in the project directory) remedies this issue for all but one of the dependencies, "Google-Mobile-Ads-SDK".

When viewing the terminal text during the pod install i can see that it installs all other dependencies (installing "xxx" in green text) except for the google ads framework where it states:

Using Google-Mobile-Ads-SDK (7.6.0) in black text

Now navigating to the Podsproject Pods > Google-Mobile-Ads-SDK i see the directory is empty hence the build fails to compile due to missing <GoogleMobileAds/GoogleMobileAds.h>

Is there a way i can force an install or is there a setting that is accidentally set somewhere?

Any help would be greatly appreciated

Edit my podfile looks like this:

'https://github.com/CocoaPods/Specs.git'

platform :ios, '7.0'
pod 'Google-Mobile-Ads-SDK', '~> 7.0'
pod "FBSDKCoreKit";
pod "FBSDKLoginKit";
pod "FBSDKShareKit";
pod "FBSDKMessengerShareKit";

Upvotes: 3

Views: 3318

Answers (2)

SmokersCough
SmokersCough

Reputation: 967

Thanks for all the help, amazingly enough it turns out it was a bad file folder config. Actively deleting the Google Mobile Ads SDK from Xcode didn't work, whilst it appeared to have been deleted it was still there in the project folder, manually finding the folder and removing it from the project then running "pod install" successfully reinstalled the SDK.

Upvotes: 2

RedBrogdon
RedBrogdon

Reputation: 5351

The PodFile you posted doesn't include the source keyword before the link to https://github.com/CocoaPods/Specs.git.

If that's accurate, I'd wager it's preventing CocoaPods from loading the specs, which means it doesn't know where to get the Google Mobile Ads SDK.

Upvotes: 1

Related Questions