apocolipse / Thrift-Swift

Apache Thrift native Swift library
54 stars 32 forks source link

Using Swift 4.2 with Thrift #26

Closed JeminRyu closed 5 years ago

JeminRyu commented 5 years ago

Hello, I am a little new to Thrift, but it seems like according to http://thrift.apache.org/docs/Languages, Swift 4.2 should be supported by Thrift. However, I cannot get it to compile in my project. I have Thrift version 0.12 downloaded on my mac, and used it to generate some swift files. However, all of these swift files have the line "Import Thrift" in them, to which the error "No such module 'Thrift' " pops up. If I place in my podfile [pod 'Thrift-swift3', :git => 'git@github.com:apache/thrift.git', :branch => 'master'] or [pod "thrift"], the code does not compile because it seems the version of swift it was written is outdated. If anyone could give give me some insight that would be much appreciated. Sorry if this is a dumb question, but I am at a loss after searching the internet for hours for a solution. Thanks!