apocolipse / Thrift-Swift

Apache Thrift native Swift library
54 stars 32 forks source link

question on getting started with clients #31

Closed EMCP closed 1 year ago

EMCP commented 2 years ago

I am trying to call a python thrift server running locally on my MacOS computer.. within a Swift App

https://github.com/apocolipse/Thrift-Swift#client-example

I took the client example code as-is and pasted in that along side adding the library as a package to my XCode Project.. but as-is it seems unhappy image

Any advice is appreciated

I think I've dropped most of the errors but just want to find a way to confirm my client can work..

EMCP commented 2 years ago

seems XCodes not even finding Thrift.. is it not bundled as part of this repo or..?

https://github.com/apocolipse/Thrift-Swift.git

I first tried adding it from the files in apaches repo, then saw in the apache instructions to try

"Unfortunately due to some limitations in SPM, the Package manifest and Sources directory must be at the root of the project. To get around that for the time being, you can use this mirrored repo. Add the following to your Package.swift"

https://github.com/apocolipse/Thrift-Swift.git

image

Am I way off or..?