无法找到GooglePlaces的规范

jig*_*uff 5 google-maps ios

我正在学习本教程,但是当我跑步时

pod install
Run Code Online (Sandbox Code Playgroud)

在第2步第6部分,我得到了错误

[!] Unable to find a specification for `GooglePlaces`
Run Code Online (Sandbox Code Playgroud)

为什么会发生这种情况的任何想法?

更新:Podfile看起来像:

source 'https://github.com/CocoaPods/Specs.git'
target 'YOUR_APPLICATION_TARGET_NAME_HERE' do
  pod 'GoogleMaps'
  pod 'GooglePlaces'
end
Run Code Online (Sandbox Code Playgroud)

随着YOUR_APPLICATION_TARGET_NAME_HERE改变我的目标名称.

jig*_*uff 4

这似乎对我有用:

source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
target 'WhatsOpen' do
  pod 'GoogleMaps'
  pod 'GooglePlacesAPI'
end
Run Code Online (Sandbox Code Playgroud)

这是在尝试了 Nilesh Jha 的答案之后。

它还说, [!] GooglePlaces has been deprecated in favor of GooglePlacesAPI 所以我用“GooglePlacesAPI”替换了“GooglePlaces”,看起来很满意。