Unable to find a specification for GooglePlaces

后端 未结 3 792
别跟我提以往
别跟我提以往 2021-01-18 22:33

I\'m following this tutorial, however when I run

pod install

in step 2 part 6 I get the error

[!] Unable to find a specific         


        
相关标签:
3条回答
  • 2021-01-18 23:16

    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.

    0 讨论(0)
  • 2021-01-18 23:17

    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.

    0 讨论(0)
  • 2021-01-18 23:33
    source 'https://github.com/CocoaPods/Specs.git'
    platform :ios, '7.0'
    pod 'GoogleMaps'
    pod 'GooglePlaces'
    
    0 讨论(0)
提交回复
热议问题