New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cocoapods pod update: Parsing unable to continue due to parsing error #12172
Comments
Using pod spec lint shows the following error:
|
I have tried reinstalling protobuf from source so that I have a clean install and receive the following when I run protoc --version:
So after doing that and starting a clean project with the Podspec as found here, I still get the following error when running
So what I was testing there was whether there was an error when with the podspec even before I ran |
I have the same issue. It happen only if I include the !ProtoCompiler as a pod in the Podfile |
@sibinlutoken Interesting. Do you have a workaround that you are currently using? |
@jcanizales Any suggestions regarding this? |
@namsoila there are three work around: Im using cocoapods 1.2.1 to work around. |
@sibinlutoken Thanks for sharing! |
@sibinlutoken Thanks! Using 1.2.1 and it is updating.
Then was able to do install and update. |
It is still an issue to install with CocoaPods |
Cocoapods did not put the patch in 1.4.0; they are targeting at 1.5. We are unable to remove the |
@muxi thank you for update! I did find a bunch of issues in https://github.com/CocoaPods/CocoaPods/ connected to issue with |
May I know if this issue with |
@Sidhdarth no so far. Tracking issue is CocoaPods/CocoaPods#7302 |
Ok for my own sanity, the workaround involves editing TWO files. Podfile.lock AND Pods/Manifest.lock The edits should look like this in both:
This is a dupe or in some way related to CocoaPods/CocoaPods#6980 CocoaPods/CocoaPods#6925 and CocoaPods/CocoaPods#6955 (so I can find my way back to this issue) |
I know it's ugly, but would it work if the pods were renamed to something like |
@samskiter Could you highlight which part did you edit to avoid this error? I'm using 1.10.0. Thank you in advance. |
@njovy I believe @samskiter added quotes ("...") around the parts that start with exclamation marks. |
@phlippieb Yes that would work but we would really prefer not to do it because it breaks the versioning of those pods. We still prefer to wait for the patch from Cocoapods. |
@phlippieb is right. You need to add quotes around the relevant parts in both files. after the pod install runs, the lock file will be reverted so this isn't a permanent fix :( |
An easier way is to remove |
@muxi Wouldn't that cause every |
You can try to add the quotes to the files using sed. I hacked together the following command which seems to do the right things for my lockfile, but I don't actually use this, so use at your own risk.
It doesn't work with the builtin MacOS sed; you have to install and use GNU sed. Hence Or you could just revert to CocoaPods 1.2.1 or earlier:
But note that those early versions have their own issues, for example if you use the Permissions pod, well, good luck to ya. |
@phlippieb Thank you for the gsed command! Now I can
|
The tracking bug was closed with this fix which went into 1.5.0. I've just installed and tested this out on our project and it seemed to work! We can now run 'pod install' 2 times in a row! :) |
Confirmed, it's fixed 👍 |
I can fix by this :
|
@Mingriweiji-github Yes, that's what was suggested a few posts up, but that would cause every pod install to act as a pod update, so you're gonna have to make sure the updated pods don't break anything every time you do this (unless your Podfile strictly specifies the version of each pod to use, in which case you will have to maintain that more carefully). Anyway, as pointed out above, this is fixed in cocoapods 1.5; can't you just use that? |
Should this be an issue in the gRPC issue tracker?
Yes
What version of gRPC and what language are you using?
1.4.2 with Objective-C / Swift
What operating system (Linux, Windows, …) and version?
OSX 10.12.6
What runtime / compiler are you using (e.g. python version or version of gcc)
ProtoCompiler 3.2.0
What did you do?
There is an issue with running pod update. So I noticed that all of my previously running workspaces result in the same error when running pod update:
I have even setup a brand new test project. The setup allows everything to install fine as follows:
My podspec is Global.podspec and my proto file is global.proto.
But as soon as I run pod update, I get the same parsing error. I have tried deintegrating podfiles from all the previous project and completely rebuilding but still the same error occurs. When I run pod install after the initial install, I get the same error:
So this has locked me out of updating all projects using GRPC. I have also tried solutions like the following but the same error still returns:
What did you expect to see?
A regular pod update as was the case before.
What did you see instead?
The errors outlined.
Anything else we should know about your project / environment?
Xcode 8.3.3
Cocoapods 1.3.1
The text was updated successfully, but these errors were encountered: