gre*_*hce 3 google-api header-files swift google-speech-api swift4
有没有人能够在Swift 4 中成功构建 Google 的 Speech to Text iOS 示例?
The swift project posted to the Github repo: GoogleCloudPlatform/ios-docs-samples does not seem to be well-maintained. When I open the workspace example, I immediately get 3 build errors in locating header files and "could not build module googleapis."
On installing googleapis
I looked up documentation on pod install for pod 'googleapis', :path=> "." but this produces the following error: [!] No podspec found for googleapis in . I found the googleapis.podspec and downloaded the .zip file and when I did a pod install, got this error:
[!] /bin/bash -c set -e Pods/!ProtoCompiler/protoc --plugin=protoc-gen-grpc=Pods/!ProtoCompiler-gRPCPlugin/grpc_objective_c_plugin --objc_out=. --grpc_out=. -I . -I Pods/!ProtoCompiler google//.proto google////.proto google//.proto: No such file or directory
On $ npm install googleapis, I get errors:
npm WARN saveError ENOENT: no such file or directory, open '/Users/grehce/package.json' npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN enoent ENOENT: no such file or directory, open '/Users/grehce/package.json' npm WARN grehce No description npm WARN grehce No repository field. npm WARN grehce No README data npm WARN grehce No license field.
On locating Header files
Even after pointing it to the correct path in Build Settings > Header Search Paths, the headers are still unable to be found.
missing header file even though it exists
If someone can help correct those above 2 issues OR provide a working iOS example of the Google Speech to Text integrated .xcodeproj example, would be much appreciated!
Github: https://github.com/GoogleCloudPlatform/ios-docs-samples/issues/89
在我意识到您应该运行脚本./INSTALL-COCOAPODS而不是只执行常规的pod install. 这在安装 pod 后修复了一些路径。或者,您可以按照存储库中BUILDFIXES文件中的说明进行操作。
令人讨厌的是,它不仅像任何其他项目一样工作,但至少,一旦您阅读了手册,它就会很容易修复。
| 归档时间: |
|
| 查看次数: |
1820 次 |
| 最近记录: |