Cocoapods安装错误
Installation error in Cocoapods
我正在尝试为我的项目安装 cocoapods。我遵循了这些步骤
但它在 podfile 中显示 0 个依赖项。谁能告诉我我该怎么办???并指导我如何为我的项目安装 Google API 以便在表格视图中显示位置列表。
更新问题
我也尝试了以下步骤,但仍然无效-
真的要发疯了吧now.Unable找错了。以及我哪里出错了???
如果您打开任何 Xcode Project you must close all Xcode project that is already open
然后尝试 Pod Install
命令,肯定有效
更新
在此命令后 pod init
键入此命令以使用 Xcode 打开 Podfile 进行编辑:
open -a Xcode Podfile
然后你需要添加pod 'GoogleMaps'
或者任何你需要的,参考附图
集成步骤见this
1.Edit Podfile 并添加以下行。
source 'https://github.com/CocoaPods/Specs.git'
pod 'GoogleMaps'
2.Save Pod 文件。
3.and 然后找到你的项目路径并使用命令
pod install
关注link参考
https://developers.google.com/maps/documentation/ios-sdk/start
我正在尝试为我的项目安装 cocoapods。我遵循了这些步骤
但它在 podfile 中显示 0 个依赖项。谁能告诉我我该怎么办???并指导我如何为我的项目安装 Google API 以便在表格视图中显示位置列表。
更新问题
我也尝试了以下步骤,但仍然无效-
真的要发疯了吧now.Unable找错了。以及我哪里出错了???
如果您打开任何 Xcode Project you must close all Xcode project that is already open
然后尝试 Pod Install
命令,肯定有效
更新
在此命令后 pod init
键入此命令以使用 Xcode 打开 Podfile 进行编辑:
open -a Xcode Podfile
然后你需要添加pod 'GoogleMaps'
或者任何你需要的,参考附图
集成步骤见this
1.Edit Podfile 并添加以下行。
source 'https://github.com/CocoaPods/Specs.git'
pod 'GoogleMaps'
2.Save Pod 文件。 3.and 然后找到你的项目路径并使用命令
pod install
关注link参考
https://developers.google.com/maps/documentation/ios-sdk/start