没有为googleapis找到podspec

时间:2017-10-12 06:42:59

标签: cocoapods speech podspec

安装googleapis pod时出现错误“找不到googleapis的podspec。”

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

我的pod文件是

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

platform: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

任何人都可以帮忙解决这个问题吗?

2 个答案:

答案 0 :(得分:6)

  1. Google-SpeechToText sample in Git
  2. 下载示例
  3. 在podfile中,执行export class SignUpComponent implements OnInit { show = false; hide = true; signin(){ this.hide=false; this.show=true; } }
  4. 从示例的主文件夹中复制2件名为:  一个。 googleapis.podspec  湾谷歌文件夹
  5. 将这些文件粘贴到项目文件夹中
  6. 然后在终端中找到项目并执行pod 'googleapis', :path => '.'
  7. 要运行您的演示项目,请打开示例中的BUILDFIXES文件,然后执行上述修复 现在你可以呼吸,项目建立成功。

    享受编码;)

答案 1 :(得分:2)

<强>问题: [!]没有为googleapis找到podspec。

<强>解决方案:步骤1: 你需要把#34; googleapis.podspec&#34;文件位于pod文件所在的同一目录中。

<强>步骤-2: 打开终端并使用&#34; cd&#34;到达pod文件所在的目录。命令

<强>步骤-3: 然后运行命令&#34; pod update&#34;在终端

完成了。您的googleapis pod安装开始了!!!乌拉!!!

下载文件&#34; googleapis.podspec&#34;来自链接: https://github.com/GoogleCloudPlatform/ios-docs-samples/files/1378295/googleapis.podspec.zip