Skip to content
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

--grpc_out: protoc-gen-grpc: Plugin killed by signal 6. #22781

Closed
appanna-yaragal64 opened this issue Apr 25, 2020 · 15 comments
Closed

--grpc_out: protoc-gen-grpc: Plugin killed by signal 6. #22781

appanna-yaragal64 opened this issue Apr 25, 2020 · 15 comments

Comments

@appanna-yaragal64
Copy link

appanna-yaragal64 commented Apr 25, 2020

I have created new project and installing below pod
pod 'googleapis', :path => '.'

But i am getting below 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/cloud/speech/v1/cloud_speech.proto:11:1: warning: Import google/protobuf/any.proto is unused.
google/cloud/speech/v1/cloud_speech.proto:12:1: warning: Import google/protobuf/duration.proto is unused.
dyld: Library not loaded: /usr/local/lib/libprotoc.22.dylib
Referenced from: /Volumes/Development/Sample Projects/GoogleSpeechTestApp/Pods/!ProtoCompiler-gRPCPlugin/grpc_objective_c_plugin
Reason: image not found
--grpc_out: protoc-gen-grpc: Plugin killed by signal 6.

Screenshot 2020-04-25 at 11 40 52 AM

@maninp
Copy link

maninp commented May 4, 2020

I'm also having the same issue after running "pod update".
Before pod update

Installing !ProtoCompiler-gRPCPlugin (1.24.2)

after pod update

Installing !ProtoCompiler-gRPCPlugin (1.28.0)

Please help me to resolve this.

@stanley-cheung
Copy link
Contributor

@appuyaragal12 from the error message, looks like you haven't installed protobuf yet. With reference to https://grpc.io/docs/quickstart/objective-c/, have you brew install protobuf?

@muxi
Copy link
Member

muxi commented May 5, 2020

@stanley-cheung - I this case I think Cocoapods is supposed to download the protobuf plugin for them (see !ProtobufCompiler-gRPCPlugin.podspec into the directory Pods/!ProtoCompiler-gRPCPlugin/grpc_objective_c_plugin. Probably for some reason the plugin was not found there?

@appuyaragal12 - could you check if the plugin exists in that directory?

@maninp
Copy link

maninp commented May 7, 2020

I have resolved this by downgrading to older version by editing googleapis.podspec

s.dependency "!ProtoCompiler-gRPCPlugin", "~> 1.24.2"

@yulin-liang
Copy link
Contributor

yulin-liang commented May 7, 2020

@appuyaragal12 - Could you check if you can find libprotoc.22.dylib in the /usr/local/lib directory? I can reproduce the error after deleting libprotoc.22.dylib.

@jaankoi
Copy link

jaankoi commented May 20, 2020

I'm facing this same issue now also after I run 'pod update'.

@muxi
Copy link
Member

muxi commented May 20, 2020

I think I know what the problem is now. We'll fix it soon.

@emlynmac
Copy link

emlynmac commented May 26, 2020

Hi,

I'm running into this issue also.
From a bunch of experimentation this morning, if I roll !ProtoCompiler-gRPCPlugin past 1.27.0, then the external dependencies on dylibs are present.

1.28.x does not fix it, nor does 1.29.

I've been able to have pod install work with:
s.dependency "!ProtoCompiler-gRPCPlugin", "1.27.0" in my googleapis.podspec.

For my case, I can't install local libraries - this needs to work on circleCI.

@muxi
Copy link
Member

muxi commented May 26, 2020

@emlynmac - Do you still see the external dependencies on 1.29? We think we have it fixed in 1.29.0. We are also planning to release 1.28.2 that contains this fix. Would be surprising to us if you still see them in 1.29.0.

@emlynmac
Copy link

emlynmac commented May 26, 2020

@muxi Yes - the issue with external dependencies is present on 1.29. Let me just grab a log...

Here:

Installing !ProtoCompiler (3.11.2)
Installing !ProtoCompiler-gRPCPlugin (1.29.0)
...
...

Installing gRPC (1.29.0)
Installing gRPC-Core (1.29.0)
Installing gRPC-ProtoRPC (1.29.0)
Installing gRPC-RxLibrary (1.29.0)
Installing googleapis (0.0.1)

[!] /bin/bash -c 
set -e
Pods/!ProtoCompiler/protoc         --objc_opt=named_framework_to_proto_path_mappings_path=./protomap         --plugin=protoc-gen-grpc=Pods/!ProtoCompiler-gRPCPlugin/grpc_objective_c_plugin         --objc_out=.         --grpc_out=.         -I .         -I Pods/!ProtoCompiler         google/*/*.proto google/*/*/*/*.proto

dyld: Library not loaded: /usr/local/opt/c-ares/lib/libcares.2.dylib
  Referenced from: /Users/Code/ios/Pods/!ProtoCompiler-gRPCPlugin/grpc_objective_c_plugin
  Reason: image not found
--grpc_out: protoc-gen-grpc: Plugin killed by signal 6.

@yulin-liang
Copy link
Contributor

@emlynmac I ran into this issue if I installed the 1.28.0 version.
1 28

But after running pod update, looks like 1.29.0 works for me. Can you double-check if the version of !ProtoCompiler-gRPCPlugin is 1.29.0?
1 29

@emlynmac
Copy link

@yulin-liang I have updated the post with more info; it is 1.29.
I expect that you have the dependent library already on your system, installed by home-brew or ports. If it is a clean install, it will not be there.

@muxi
Copy link
Member

muxi commented May 26, 2020

@emlynmac - I see. Thanks for the info.

@yulin-liang - Looks like the dependency of libprotoc is resolved in 1.29, but there's still a dependency to libcares.

@yulin-liang
Copy link
Contributor

@emlynmac I've already fixed this issue. Can you try it on 1.29.1?

@yulin-liang yulin-liang self-assigned this May 26, 2020
@emlynmac
Copy link

@yulin-liang Thanks greatly! I can confirm that 1.29.1 works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants