没有为googleapis找到podspec

San*_* SM 1 speech cocoapods podspec

安装googleapis pod时出现错误"找不到googleapis的podspec."

我正在尝试安装pod'googleapis',:path =>'.' 但是,它得到以下错误分析依赖关系从googleapis获取podspec.[!]没有为googleapis找到podspec.

我的pod文件是

取消注释下一行以定义项目的全局平台

平台:ios,'8.1'

target 'appName' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
   # use_frameworks!

  # Pods for AppSpeak
   pod 'MBProgressHUD'
   pod 'Fabric'
   pod 'Crashlytics'
   pod 'googleapis', :path => '.'
   end
Run Code Online (Sandbox Code Playgroud)

有人可以帮忙解决这个问题吗?

小智 6

  1. Git中的Google-SpeechToText示例下载示例,
  2. 在podfile中,做 pod 'googleapis', :path => '.'
  3. 从样本的主文件夹中复制2件事:a.googleapis.podspec b.谷歌文件夹
  4. 将这些文件粘贴到项目文件夹中
  5. 然后在终端中找到项目并执行 pod install

要运行您的演示项目,请打开示例中的BUILDFIXES文件,然后执行上述修复.
现在你可以呼吸,项目建立成功.

享受编码;)


San*_* SM 5

问题: [!]在中找不到googleapi的podspec。

解决方案: 步骤1: 您需要将“ googleapis.podspec”文件放在pod文件所在的目录中。

步骤2: 打开终端并使用“ cd”命令到达您的pod文件所在的目录

步骤3: 然后在终端中运行命令“ pod update”

完成。您的googleapis pod安装开始!!!欢呼!!!

从链接下载文件“ googleapis.podspec”: https : //github.com/GoogleCloudPlatform/ios-docs-samples/files/1378295/googleapis.podspec.zip