Skip to content

dyld: Symbol not found: __T0Bi64_WV #314

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

Closed
3 tasks done
cepages opened this issue Oct 11, 2018 · 4 comments
Closed
3 tasks done

dyld: Symbol not found: __T0Bi64_WV #314

cepages opened this issue Oct 11, 2018 · 4 comments

Comments

@cepages
Copy link

cepages commented Oct 11, 2018

New Issue Checklist

Issue Description

When I try to create the grpc files in swift with protoc and swiftgrpc I get this error:

dyld: Symbol not found: __T0Bi64_WV
  Referenced from: /usr/local/bin/protoc-gen-swiftgrpc
  Expected in: /Library/Developer/CommandLineTools/usr/lib/swift/macosx/libswiftCore.dylib
 in /usr/local/bin/protoc-gen-swiftgrpc
--swiftgrpc_out: protoc-gen-swiftgrpc: Plugin killed by signal 6.

This is what I tried to run:

protoc DataService.proto --proto_path=. --swiftgrpc_out=.

I think I fixed the problem for now installing the command line tools for XCode 9. I think the problem is swift 4.2 which is installed with XCode 10.

Is anything I can do to use it with swift 4.2?

Key Value
OS Version x.x.x
Swift Version 4.2
Xcode Version 10
gRPC-Swift Version 0.4.1 ( latest one in the time the issue is created)
protoc Version libprotoc 3.6.1
protoc-gen-swift Version How can I get this?
protoc-gen-swiftgrpc Version How can I get this?
@MrMage
Copy link
Collaborator

MrMage commented Oct 11, 2018 via email

@cepages
Copy link
Author

cepages commented Oct 11, 2018

When I build the plugin I use just make, the makefile is using xcodebuild so if I run:

xcodebuild -version
Xcode 10.0
Build version 10A255

And if I run xcode-select -p : /Applications/Xcode10.app/Contents/Developer

( My XCode app the name of the version because I have multiple XCode installed in my machine )

Is this right? or I should point to make something else?

@MrMage
Copy link
Collaborator

MrMage commented Oct 11, 2018

Thank you, these indeed look like they match. Could you check which libraries the protoc plugin is linking to, e.g. using otool? Also, I understand the SwiftProtobuf plugin is not exhibiting this issue?

@cepages
Copy link
Author

cepages commented Oct 11, 2018

Ok, I realised my error, as you pointed I was using an old version of the plugin which I build long time ago.

Thanks for the help and sorry :)

@cepages cepages closed this as completed Oct 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants