You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by Jens Geyer <je...@hotmail.com> on 2020/10/02 19:56:55 UTC

Swift error: cannot find 'kCFSocketSuccess' in scope

Hi all,

any Swift experts around who can tell what's the issue with this file?


[1/1] Compiling Thrift LinuxHelper.swift
1963/home/runner/work/thrift/thrift/lib/swift/Sources/LinuxHelper.swift:29:31: 
error: cannot find 'kCFSocketSuccess' in scope
1964 public static let success = kCFSocketSuccess
1965 ^~~~~~~~~~~~~~~~
1966/home/runner/work/thrift/thrift/lib/swift/Sources/LinuxHelper.swift:34:16: 
warning: 'unsafeBitCast' from 'Int' to 'UInt' can be replaced with 
'bitPattern:' initializer on 'UInt'
1967 let cast = unsafeBitCast(rhs, to: UInt.self)
1968 ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
1969 UInt(bitPattern: )
1970make[4]: *** [all-local] Error 1
1971Makefile:820: recipe for target 'all-local' failed
1972

Have fun,
JensG