Open adarshroy opened 7 years ago
Installing googleapis as done in the sample, in my app. After that not able to install any other pods. This is happening only for this googleapis pod. Therefore mentioned in the issues of the Sample.
@timburks Can you help here ?
@adarshroy Check this issue, https://github.com/grpc/grpc/issues/12172 Three possible workarounds are mentioned, 1: using cocoapods version 1.2.1 2: manually run a script to add "" around !protocompiler in Podfile.lock and manfest.lock.( Which is the cause of the parser error)
Thanks @ajayghodadra
Following hack of point 2 of adding "" is doing the work for the time being.
But a proper solution is needed for future, or the Cocoapods should give a support or something like that.
@adarshroy Sorry, I don't have much experience with Cocoapods. But I downloaded your demo project and got the same error that you did when I ran "pod install". But then I deleted Podfile.lock and the Pods directory and reran "pod install", which then seemed to complete successfully. I believe that both Podfile.lock and Pods are artifacts generated by "pod install", so deleting them is safe.
@timburks Thanks for looking
As far as I have seen, for the first error (parsing error):
And for the second error ("-> googleapis (0.0.1)", "Could not find remote branch 0.0.1 to clone"):
I feel, an updated sample should be provided in Google's Speech-to-Text framework for "Swift" which should run smoothly without any BUILDFIXES, or pod errors. And a step by step installation and usage guidelines in docs.
What I ended up doing is each time I update my dependencies I delete Podfile.lock and Pods/Manifest.lock. The downside to this is that Cocoapods has to redownload all dependencies afterwards. So a clean implementation of Cocoapods would be much appreciated ;)
I'll add my 2 cents here:
Podfile.lock
file is important because it contains versions of installed pods.
If you keep all your pods updated it is not an issue to delete Podfile.lock
run pod install
. But if you do have number of pods that are not using latest version (like I have), you might end up with fixing your project to work with all updated pods. And it does not sound like a great idea to do, I'd rather update each pod one by one.
I have a demo project, did Pod-init -> success.
added pod 'Alamofire' -> pod install -> success added pod 'googleapis', :path => '.' -> pod install -> success added any other framework, -> pod install -> fails OR did simple pod install/update -> fails Here is the error :
Then in terminal, I did this: "pod spec lint", and it is showing this:
This is not happening for any other project, but when only this demo project is pod-installed/updated, the issue comes. Tried all re-installing pods, psych, etc. Please help
Google Speech-to-Text sample: https://github.com/GoogleCloudPlatform/ios-docs-samples/tree/master/speech/Objective-C/Speech-gRPC-Streaming
Demo Project having the issue: https://www.dropbox.com/s/d13g7alb9k7wmou/DemoProj6.zip?dl=0