[
https://issues.apache.org/jira/browse/THRIFT-5604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17564667#comment-17564667
]
Erik commented on THRIFT-5604:
------------------------------
just want to update.. after manually adding the lib/swift/Source/*.swift files
to my project under a folder.. and removing `import Thrift` my project can
build.. but I had to redo the example client as well.. instead I have
{code:java}
import Foundation
//import Thrift
class SomeThriftClient {
var some_thrift_client :some_accessorClient
var server_status :Int32
init() throws {
let transport = try TSocketTransport(hostname: "localhost", port: 9090)
let proto = TBinaryProtocol(on: transport)
let client = some_accessorClient(inoutProtocol: proto)
self.some_thrift_client = client
self.server_status = try client.ping()
print(self.server_status)
}
}
{code}
> Attempting to use V0.16.0 Thrift in Swift , XCode 13.1 .. shows deprecation
> warnings
> ------------------------------------------------------------------------------------
>
> Key: THRIFT-5604
> URL: https://issues.apache.org/jira/browse/THRIFT-5604
> Project: Thrift
> Issue Type: Bug
> Reporter: Erik
> Priority: Major
>
> I am unable to integrate thrift into a Swift Application within XCode
> I won't post too much detail since I posted a SO already with most of the
> things I've tried..
> Trying to add the git repo in XCode didn't work
> [https://stackoverflow.com/questions/72895796/having-trouble-with-adding-a-swift-package-to-macos-12-x/72898864?noredirect=1#comment128766432_72898864]
> And once I manually cloned the repo and set a git tag.. that still isn't
> being found in XCode on the `import Thrift` line.. so I must be doing
> something wrong?
> [https://stackoverflow.com/questions/72908786/trying-to-figure-out-swift-clients-for-thrift]
> If I hit CMD+B to build.. I just kept seeing Thrift module not found.. even
> though I seem to have successfully added the package
> finally I started to give up integrating the library properly and just chuck
> it into a folder in my project and go from there.. but once I did that all
> sorts of deprecation warnings made me wonder how far a rabbit hole am I
> going..
> ```
> /Users/emcp/App/Thrift/TSSLSocketTransport.swift:200:14: 'SecTrustEvaluate'
> was deprecated in macOS 10.15: renamed to 'SecTrustEvaluateWithError(_:_:)'
> ```
> I am on Mac 12.x hoping to code a small menubar app which in swift talks to a
> Python Thrift Server.. but beginning to wonder if anyone has done this..
> there's near zero walkthroughs of this type of thing out there.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)