will grpc support swift language?

903 views
Skip to first unread message

韩玉宝

unread,
Mar 27, 2016, 11:33:31 PM3/27/16
to grp...@googlegroups.com
Hello,I am interested in grpc. Now my team are going to develop a system that include server/android/ios/website.

Do grpc will support swift language,to develop iOS client?Thanks in advantage and waiting for your reply.

Mr Han from China.

Nathaniel Manista

unread,
Mar 30, 2016, 1:38:57 PM3/30/16
to 韩玉宝, grp...@googlegroups.com
On Sun, Mar 27, 2016 at 8:28 PM, 韩玉宝 <ad...@hyb.co> wrote:
Do grpc will support swift language,to develop iOS client?

gRPC doesn't support Swift today, and I'm not aware of any work currently being done on Swift support, but it's not a bad idea and anyone could choose to implement Swift support any time they chose.

Are you aware that gRPC does support Objective-C with iOS development specifically in mind as a goal?
-Nathaniel

Osman Ali

unread,
Apr 5, 2016, 5:14:50 PM4/5/16
to grpc.io, ad...@hyb.co
You can build a swift app using GRPC. You just compile using objective-c and then create a bridging header. There is a full sample app:


Here's the documentation:


I used this sample:


Significant: make sure you do not uncomment "use_frameworks!" in your podfile. So if you happen to have any libraries that are written in Swift that you are installing via Cocoapods, then you have to install them in an alternate way. However, most libraries are still in objective-c so you should be fine.

Crazz Mong

unread,
Jan 12, 2017, 10:23:28 AM1/12/17
to grpc.io, ad...@hyb.co

follow objective-c guide use pod can use in swift project.
Reply all
Reply to author
Forward
0 new messages