-
Notifications
You must be signed in to change notification settings - Fork 420
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
Manual integration - does not work for iOS #218
Comments
I haven’t tested this myself on iOS, but I think it should work. What problems are you encountering? |
Hi @MrMage My Setup is:
Getting error:
Building grpc-swift
protoc-gen-swift & protoc-gen-swiftgrpc Generate Swift files from .proto Create a new Swift App in Xcode
This gives me the following error in the genereted I tried to add |
Weird, I can't find any reference to the string |
It is the: I include the two generated file into my project. |
Is it possible that the version of the swift protobuf compiler plugin installed via brew is completely outdated? |
Good suggestion - I will try to uninstall and use only the one from the grpc-swift project third_party @MrMage I just did:
Same error I dont think it is the protoc generating the files that is the problem. It looks more like including the |
I would suggest just cloning the original repo from GitHub and using that.
… On 24. Apr 2018, at 12:00, JCzz ***@***.***> wrote:
Good suggestion - I will try to uninstall and use only the one from the grpc-swift project third_party
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@MrMage Do you know anyone how have this running on iOS? Thanks for trying |
I've been able to get it running successfully in my iOS project using these instructions: https://github.com/KyoheiG3/gRPCExample It's cumbersome, and it requires you to do this every time when a new Swift gRPC update is out, but it works. I'm keeping my fingers crossed for Carthage support in the future to make the update process easier. |
That is cool, thanks for sharing! |
@JCzz I don't know if using Cocoapods is an option for you, but if it is, I just merged a very simple iOS sample that uses Cocoapods and calls a Google Cloud API. |
Hi @basalphenaar I checked your iOS example was very helpful and it runs well, but I haven't found a way to run the command to translate .proto files into its .swift classes. Previously I have installed swift_protobuf homebrew library and I could convert messages from .proto into swift classes but i was not able to convert services. As I've checked you have to use something like: "protoc protofile.proto --swiftgrpc_out=." I don't know if somebody else has had this issue in their iOS projects |
if someone had troubles with protoc-gen-swift protoc-gen-swiftgrpc integration this tutorial was very useful for me :) https://qiita.com/tikidunpon/items/9759dc6e65da09986c1f |
I have been spending quite some time integrating grpc-swift to iOS, and I believe it is worth adding some insights here. CocoapodsI have been using Cocoapods with iOS and it works, to confirm @timburks' comment above. CarthageIf you want to get the
The frameworks should get built into ManualI have also been building grpc-swift manually for iOS, with [the following
Note the last two paragraphs where I edit the |
@JonasVautherin Thank you so much for adding Carthage support, manually updating grpc-swift every time was becoming quite a nuisance! This is going to save me a lot of time. |
Closing this for now, as @JonasVautherin's instructions have hopefully resolved the issue. |
Hi
I have tried for some days to get this working on iOS - but maybe is is not surpose to work for iOS for now and only for MacOs?
Is that correct?
Note: I have followed the Manual integration hoping it would work for iOS.
Thanks in advance
The text was updated successfully, but these errors were encountered: