grpc-swift: Undefined Symbol Errors
What are you trying to achieve?
Switching to SwiftNIO implementation from gRPC C library
When trying to build I get the following error:
Undefined symbols for architecture x86_64:
"nominal type descriptor for Network.NWConnection.PendingDataTransferReport", referenced from:
_symbolic _____ 7Network12NWConnectionC25PendingDataTransferReportC in NIOTransportServices.o
"nominal type descriptor for Network.NWConnection.EstablishmentReport", referenced from:
_symbolic _____y_____SgG 3NIO15EventLoopFutureC 7Network12NWConnectionC19EstablishmentReportV in NIOTransportServices.o
_symbolic _____Sg 7Network12NWConnectionC19EstablishmentReportV in NIOTransportServices.o
"Network.NWConnection.requestEstablishmentReport(queue: __C.OS_dispatch_queue, completion: (Network.NWConnection.EstablishmentReport?) -> ()) -> ()", referenced from:
NIOTransportServices.NIOTSConnectionChannel.getOption0<A where A: NIO.ChannelOption>(option: A) throws -> A.Value in NIOTransportServices.o
"Network.NWConnection.startDataTransferReport() -> Network.NWConnection.PendingDataTransferReport", referenced from:
NIOTransportServices.NIOTSConnectionChannel.getOption0<A where A: NIO.ChannelOption>(option: A) throws -> A.Value in NIOTransportServices.o
"type metadata accessor for Network.NWConnection.PendingDataTransferReport", referenced from:
NIOTransportServices.NIOTSConnectionChannel.getOption0<A where A: NIO.ChannelOption>(option: A) throws -> A.Value in NIOTransportServices.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What have you tried so far?
change the ios deployment target to 13. Same error The example SpeechToText project compiles and runs
Is this minimum ios target is 13? I couldn’t find that documented anywhere
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 15
@Lukasa thats for the help. Deleting Derived data did not help.
Back to the original error
I created a sample expo project and confirmed everything works as expected (This is with deployment target ios9) - https://github.com/cliedeman/swiftgrpcexample
Which leads me to believe the issue is not with this library. I am going to compare the projects and see if I can identify a difference