jigglypuff
jigglypuff

Reputation: 527

Unable to find a specification for GooglePlaces

I'm following this tutorial, however when I run

pod install

in step 2 part 6 I get the error

[!] Unable to find a specification for `GooglePlaces`

Any idea on why this might be happening?

UPDATE: Podfile looks like:

source 'https://github.com/CocoaPods/Specs.git'
target 'YOUR_APPLICATION_TARGET_NAME_HERE' do
  pod 'GoogleMaps'
  pod 'GooglePlaces'
end

With YOUR_APPLICATION_TARGET_NAME_HERE changed to my target name.

Upvotes: 5

Views: 2398

Answers (3)

Pierre Houston
Pierre Houston

Reputation: 1641

Don't use GooglePlacesAPI if you're expecting source compatibility with older code that used the GoogleMaps pod. That one's a 3rd party framework, not Google's.

Run pod repo update and then try pod install again. Also, I added a version to make the line pod 'GooglePlaces', '~> 2.0', but I don't know if that's required.

Upvotes: 1

jigglypuff
jigglypuff

Reputation: 527

This seemed to have worked for me:

source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
target 'WhatsOpen' do
  pod 'GoogleMaps'
  pod 'GooglePlacesAPI'
end

This was after trying Nilesh Jha's answer.

It also said [!] GooglePlaces has been deprecated in favor of GooglePlacesAPI So I replaced 'GooglePlaces' with 'GooglePlacesAPI' and it seems satisfied.

Upvotes: 4

Nilesh Jha
Nilesh Jha

Reputation: 1636

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'GoogleMaps'
pod 'GooglePlaces'

Upvotes: 1

Related Questions