grpc-swift: Error in imports in the generated files (iOS).
Question Checklist
- Updated grpc-swift to the latest version
- I read the Contribution Guidelines
- I read README
- I searched for existing GitHub issues (especially, there are many resolved issues related to SSL)
Question Subject
Import error in generated filed.
Question Description
I build my .proto
files with the compiler but after copying the.grpc.swift
and .pb.swift
files to the project it is showing the error in the import statement of the .grpc.swift
file No such module 'GRPC'
. I replaced it with SwiftGRPC
but now it’s showing import error for NIO
No such module 'NIO'
. I’m not sure how to fix this.
I used these commands to generate the files
protoc --swift_out=. StudentService.proto
protoc --swiftgrpc_out=. StudentService.proto
In my podfile
I have pod 'SwiftProtobuf'
and pod 'SwiftGRPC'
Is it something I’m doing wrong?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15
Now it’s not showing any error in the generated filed after I restarted my mac. Thank you!