Build Information
Successful build of Thrift, reference master (69c286
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 07:22:59 UTC.
Swift 6 data race errors: 13
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apocolipse/Thrift-Swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/apocolipse/Thrift-Swift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 69c2862 add TJSONProtocol support (#35)
Cloned https://github.com/apocolipse/Thrift-Swift.git
Revision (git rev-parse @):
69c28628b75eda61465d58938dcf83d485e847ec
SUCCESS checkout https://github.com/apocolipse/Thrift-Swift.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "thrift-swift",
"name": "Thrift",
"url": "https://github.com/apocolipse/Thrift-Swift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Thrift-Swift",
"dependencies": [
]
}
]
}
Fetching https://github.com/apocolipse/Thrift-Swift.git
[1/916] Fetching thrift-swift
Fetched https://github.com/apocolipse/Thrift-Swift.git from cache (0.84s)
Creating working copy for https://github.com/apocolipse/Thrift-Swift.git
Working copy of https://github.com/apocolipse/Thrift-Swift.git resolved at master (69c2862)
warning: '.resolve-product-dependencies': dependency 'thrift-swift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/apocolipse/Thrift-Swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/33] Emitting module Thrift
/Users/admin/builder/spi-builder-workspace/Sources/TApplicationError.swift:102:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TApplicationError' has non-sendable type 'TApplicationError.Code'; this is an error in the Swift 6 language mode
20 |
21 | public struct TApplicationError : TError {
22 | public enum Code : TErrorCode {
| `- note: consider making enum 'Code' conform to the 'Sendable' protocol
23 | case unknown
24 | case unknownMethod(methodName: String?)
:
100 | }
101 |
102 | public var error: Code = .unknown
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TApplicationError' has non-sendable type 'TApplicationError.Code'; this is an error in the Swift 6 language mode
103 | public var message: String? = nil
104 | public static var defaultCase: Code { return .unknown }
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:33:21: warning: static property 'strictRead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | // class level properties for setting global config (useful for server in lieu of Factory design)
33 | public static var strictRead: Bool = false
| |- warning: static property 'strictRead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strictRead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strictRead' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | public static var strictWrite: Bool = true
35 |
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:34:21: warning: static property 'strictWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | // class level properties for setting global config (useful for server in lieu of Factory design)
33 | public static var strictRead: Bool = false
34 | public static var strictWrite: Bool = true
| |- warning: static property 'strictWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strictWrite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strictWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | private var strictRead: Bool
/Users/admin/builder/spi-builder-workspace/Sources/TList.swift:34:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TList' to 'Hashable' by implementing 'hash(into:)' instead
32 |
33 | /// Mark: Hashable
34 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TList' to 'Hashable' by implementing 'hash(into:)' instead
35 | let prime = 31
36 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/TMap.swift:119:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TMap' to 'Hashable' by implementing 'hash(into:)' instead
117 | /// Mark: Hashable
118 |
119 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TMap' to 'Hashable' by implementing 'hash(into:)' instead
120 | let prime = 31
121 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:102:3: warning: 'public' modifier is redundant for instance method declared in a public extension
100 |
101 | public extension TProtocol {
102 | public func writeFieldValue(_ value: TSerializable, name: String, type: TType, id: Int32) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
103 | try writeFieldBegin(name: name, type: type, fieldID: id)
104 | try value.write(to: self)
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:108:3: warning: 'public' modifier is redundant for instance method declared in a public extension
106 | }
107 |
108 | public func validateValue(_ value: Any?, named name: String) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
109 | if value == nil {
110 | throw TProtocolError(error: .unknown, message: "Missing required value for field: \(name)")
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:114:3: warning: 'public' modifier is redundant for instance method declared in a public extension
112 | }
113 |
114 | public func readResultMessageBegin() throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
115 | let (_, type, _) = try readMessageBegin();
116 | if type == .exception {
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:123:3: warning: 'public' modifier is redundant for instance method declared in a public extension
121 | }
122 |
123 | public func readException() throws -> TApplicationError {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
124 | return try TApplicationError.read(from: self)
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:127:3: warning: 'public' modifier is redundant for instance method declared in a public extension
125 | }
126 |
127 | public func writeException(messageName name: String, sequenceID: Int32, ex: TApplicationError) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
128 | try writeMessageBegin(name: name, type: .exception, sequenceID: sequenceID)
129 | try ex.write(to: self)
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:133:3: warning: 'public' modifier is redundant for instance method declared in a public extension
131 | }
132 |
133 | public func skip(type: TType) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
134 | switch type {
135 | case .bool: _ = try read() as Bool
/Users/admin/builder/spi-builder-workspace/Sources/TProtocolError.swift:84:14: warning: stored property 'extendedError' of 'Sendable'-conforming struct 'TProtocolError' has non-sendable type 'TProtocolError.ExtendedErrorCode?'; this is an error in the Swift 6 language mode
59 | }
60 |
61 | public enum ExtendedErrorCode : TErrorCode {
| `- note: consider making enum 'ExtendedErrorCode' conform to the 'Sendable' protocol
62 | case unknown
63 | case missingRequiredField(fieldName: String)
:
82 | }
83 |
84 | public var extendedError: ExtendedErrorCode? = nil
| `- warning: stored property 'extendedError' of 'Sendable'-conforming struct 'TProtocolError' has non-sendable type 'TProtocolError.ExtendedErrorCode?'; this is an error in the Swift 6 language mode
85 |
86 | public init(error: Code = .unknown,
/Users/admin/builder/spi-builder-workspace/Sources/TProtocolError.swift:95:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TProtocolError' has non-sendable type 'TProtocolError.Code'; this is an error in the Swift 6 language mode
23 | public init() { }
24 |
25 | public enum Code : TErrorCode {
| `- note: consider making enum 'Code' conform to the 'Sendable' protocol
26 | case unknown
27 | case invalidData
:
93 |
94 | /// Mark: TError
95 | public var error: Code = .unknown
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TProtocolError' has non-sendable type 'TProtocolError.Code'; this is an error in the Swift 6 language mode
96 | public var message: String? = nil
97 | public static var defaultCase: Code { return .unknown }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSSLSocketTransport.swift:32:5: warning: let 'htons' is not concurrency-safe because non-'Sendable' type '(__uint16_t) -> __uint16_t' (aka '(UInt16) -> UInt16') may have shared mutable state; this is an error in the Swift 6 language mode
30 | #else
31 | let isLittleEndian = Int(OSHostByteOrder()) == OSLittleEndian
32 | let htons = isLittleEndian ? _OSSwapInt16 : { $0 }
| |- warning: let 'htons' is not concurrency-safe because non-'Sendable' type '(__uint16_t) -> __uint16_t' (aka '(UInt16) -> UInt16') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'htons' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | let htonl = isLittleEndian ? _OSSwapInt32 : { $0 }
34 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSSLSocketTransport.swift:33:5: warning: let 'htonl' is not concurrency-safe because non-'Sendable' type '(__uint32_t) -> __uint32_t' (aka '(UInt32) -> UInt32') may have shared mutable state; this is an error in the Swift 6 language mode
31 | let isLittleEndian = Int(OSHostByteOrder()) == OSLittleEndian
32 | let htons = isLittleEndian ? _OSSwapInt16 : { $0 }
33 | let htonl = isLittleEndian ? _OSSwapInt32 : { $0 }
| |- warning: let 'htonl' is not concurrency-safe because non-'Sendable' type '(__uint32_t) -> __uint32_t' (aka '(UInt32) -> UInt32') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'htonl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public class TSSLSocketTransport: TStreamTransport {
/Users/admin/builder/spi-builder-workspace/Sources/TSSLSocketTransportError.swift:43:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TSSLSocketTransportError' has non-sendable type 'TSSLSocketTransportError.ErrorCode'; this is an error in the Swift 6 language mode
19 |
20 | public struct TSSLSocketTransportError: TError {
21 | public enum ErrorCode: TErrorCode {
| `- note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
22 | case hostanameResolution(hostname: String)
23 | case socketCreate(port: Int)
:
41 |
42 | }
43 | public var error: ErrorCode = .connect
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TSSLSocketTransportError' has non-sendable type 'TSSLSocketTransportError.ErrorCode'; this is an error in the Swift 6 language mode
44 | public var message: String?
45 | public static var defaultCase: ErrorCode { return .connect }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:38:14: warning: static property 'read' is not concurrency-safe because non-'Sendable' type '(Int32, UnsafeMutableRawPointer?, Int) -> Int' may have shared mutable state; this is an error in the Swift 6 language mode
36 | static let close = Glibc.close
37 | #else
38 | static let read = Darwin.read
| |- warning: static property 'read' is not concurrency-safe because non-'Sendable' type '(Int32, UnsafeMutableRawPointer?, Int) -> Int' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'read' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static let write = Darwin.write
40 | static let close = Darwin.close
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:39:14: warning: static property 'write' is not concurrency-safe because non-'Sendable' type '(Int32, UnsafeRawPointer?, Int) -> Int' may have shared mutable state; this is an error in the Swift 6 language mode
37 | #else
38 | static let read = Darwin.read
39 | static let write = Darwin.write
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type '(Int32, UnsafeRawPointer?, Int) -> Int' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | static let close = Darwin.close
41 | #endif
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:40:14: warning: static property 'close' is not concurrency-safe because non-'Sendable' type '(Int32) -> Int32' may have shared mutable state; this is an error in the Swift 6 language mode
38 | static let read = Darwin.read
39 | static let write = Darwin.write
40 | static let close = Darwin.close
| |- warning: static property 'close' is not concurrency-safe because non-'Sendable' type '(Int32) -> Int32' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'close' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | #endif
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/TStruct.swift:32:3: warning: 'public' modifier is redundant for static property declared in a public extension
30 |
31 | public extension TStruct {
32 | public static var fieldIds: [String: (id: Int32, type: TType)] { return [:] }
| `- warning: 'public' modifier is redundant for static property declared in a public extension
33 | public static var thriftType: TType { return .struct }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/TStruct.swift:33:3: warning: 'public' modifier is redundant for static property declared in a public extension
31 | public extension TStruct {
32 | public static var fieldIds: [String: (id: Int32, type: TType)] { return [:] }
33 | public static var thriftType: TType { return .struct }
| `- warning: 'public' modifier is redundant for static property declared in a public extension
34 |
35 | public func write(to proto: TProtocol) throws {
/Users/admin/builder/spi-builder-workspace/Sources/TStruct.swift:35:3: warning: 'public' modifier is redundant for instance method declared in a public extension
33 | public static var thriftType: TType { return .struct }
34 |
35 | public func write(to proto: TProtocol) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
36 | // Write struct name first
37 | try proto.writeStructBegin(name: Self.structName)
/Users/admin/builder/spi-builder-workspace/Sources/TStruct.swift:48:3: warning: 'public' modifier is redundant for property declared in a public extension
46 | }
47 |
48 | public var hashValue: Int {
| `- warning: 'public' modifier is redundant for property declared in a public extension
49 | let prime = 31
50 | var result = 1
/Users/admin/builder/spi-builder-workspace/Sources/TTransportError.swift:54:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TTransportError' has non-sendable type 'TTransportError.ErrorCode'; this is an error in the Swift 6 language mode
19 |
20 | public struct TTransportError: TError {
21 | public enum ErrorCode: TErrorCode {
| `- note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
22 | case unknown
23 | case notOpen
:
52 | }
53 | }
54 | public var error: ErrorCode = .unknown
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TTransportError' has non-sendable type 'TTransportError.ErrorCode'; this is an error in the Swift 6 language mode
55 | public var message: String? = nil
56 | public static var defaultCase: ErrorCode { return .unknown }
/Users/admin/builder/spi-builder-workspace/Sources/TTransportError.swift:80:14: warning: stored property 'error' of 'Sendable'-conforming struct 'THTTPTransportError' has non-sendable type 'THTTPTransportError.ErrorCode'; this is an error in the Swift 6 language mode
64 | /// Error's thrown on HTTP Transport
65 | public struct THTTPTransportError: TError {
66 | public enum ErrorCode: TErrorCode {
| `- note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
67 | case invalidResponse
68 | case invalidStatus(statusCode: Int)
:
78 | public var thriftErrorCode: Int { return 0 }
79 | }
80 | public var error: ErrorCode = .invalidResponse
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'THTTPTransportError' has non-sendable type 'THTTPTransportError.ErrorCode'; this is an error in the Swift 6 language mode
81 | public var message: String? = nil
82 | public static var defaultCase: ErrorCode { return .invalidResponse }
[4/36] Compiling Thrift LinuxHelper.swift
/Users/admin/builder/spi-builder-workspace/Sources/TApplicationError.swift:102:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TApplicationError' has non-sendable type 'TApplicationError.Code'; this is an error in the Swift 6 language mode
20 |
21 | public struct TApplicationError : TError {
22 | public enum Code : TErrorCode {
| `- note: consider making enum 'Code' conform to the 'Sendable' protocol
23 | case unknown
24 | case unknownMethod(methodName: String?)
:
100 | }
101 |
102 | public var error: Code = .unknown
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TApplicationError' has non-sendable type 'TApplicationError.Code'; this is an error in the Swift 6 language mode
103 | public var message: String? = nil
104 | public static var defaultCase: Code { return .unknown }
[5/36] Compiling Thrift TApplicationError.swift
/Users/admin/builder/spi-builder-workspace/Sources/TApplicationError.swift:102:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TApplicationError' has non-sendable type 'TApplicationError.Code'; this is an error in the Swift 6 language mode
20 |
21 | public struct TApplicationError : TError {
22 | public enum Code : TErrorCode {
| `- note: consider making enum 'Code' conform to the 'Sendable' protocol
23 | case unknown
24 | case unknownMethod(methodName: String?)
:
100 | }
101 |
102 | public var error: Code = .unknown
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TApplicationError' has non-sendable type 'TApplicationError.Code'; this is an error in the Swift 6 language mode
103 | public var message: String? = nil
104 | public static var defaultCase: Code { return .unknown }
[6/36] Compiling Thrift TBase64Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/TApplicationError.swift:102:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TApplicationError' has non-sendable type 'TApplicationError.Code'; this is an error in the Swift 6 language mode
20 |
21 | public struct TApplicationError : TError {
22 | public enum Code : TErrorCode {
| `- note: consider making enum 'Code' conform to the 'Sendable' protocol
23 | case unknown
24 | case unknownMethod(methodName: String?)
:
100 | }
101 |
102 | public var error: Code = .unknown
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TApplicationError' has non-sendable type 'TApplicationError.Code'; this is an error in the Swift 6 language mode
103 | public var message: String? = nil
104 | public static var defaultCase: Code { return .unknown }
[7/36] Compiling Thrift TBinary.swift
/Users/admin/builder/spi-builder-workspace/Sources/TApplicationError.swift:102:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TApplicationError' has non-sendable type 'TApplicationError.Code'; this is an error in the Swift 6 language mode
20 |
21 | public struct TApplicationError : TError {
22 | public enum Code : TErrorCode {
| `- note: consider making enum 'Code' conform to the 'Sendable' protocol
23 | case unknown
24 | case unknownMethod(methodName: String?)
:
100 | }
101 |
102 | public var error: Code = .unknown
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TApplicationError' has non-sendable type 'TApplicationError.Code'; this is an error in the Swift 6 language mode
103 | public var message: String? = nil
104 | public static var defaultCase: Code { return .unknown }
[8/36] Compiling Thrift TTransportError.swift
/Users/admin/builder/spi-builder-workspace/Sources/TTransportError.swift:54:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TTransportError' has non-sendable type 'TTransportError.ErrorCode'; this is an error in the Swift 6 language mode
19 |
20 | public struct TTransportError: TError {
21 | public enum ErrorCode: TErrorCode {
| `- note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
22 | case unknown
23 | case notOpen
:
52 | }
53 | }
54 | public var error: ErrorCode = .unknown
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TTransportError' has non-sendable type 'TTransportError.ErrorCode'; this is an error in the Swift 6 language mode
55 | public var message: String? = nil
56 | public static var defaultCase: ErrorCode { return .unknown }
/Users/admin/builder/spi-builder-workspace/Sources/TTransportError.swift:80:14: warning: stored property 'error' of 'Sendable'-conforming struct 'THTTPTransportError' has non-sendable type 'THTTPTransportError.ErrorCode'; this is an error in the Swift 6 language mode
64 | /// Error's thrown on HTTP Transport
65 | public struct THTTPTransportError: TError {
66 | public enum ErrorCode: TErrorCode {
| `- note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
67 | case invalidResponse
68 | case invalidStatus(statusCode: Int)
:
78 | public var thriftErrorCode: Int { return 0 }
79 | }
80 | public var error: ErrorCode = .invalidResponse
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'THTTPTransportError' has non-sendable type 'THTTPTransportError.ErrorCode'; this is an error in the Swift 6 language mode
81 | public var message: String? = nil
82 | public static var defaultCase: ErrorCode { return .invalidResponse }
[9/36] Compiling Thrift TWrappedProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/TTransportError.swift:54:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TTransportError' has non-sendable type 'TTransportError.ErrorCode'; this is an error in the Swift 6 language mode
19 |
20 | public struct TTransportError: TError {
21 | public enum ErrorCode: TErrorCode {
| `- note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
22 | case unknown
23 | case notOpen
:
52 | }
53 | }
54 | public var error: ErrorCode = .unknown
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TTransportError' has non-sendable type 'TTransportError.ErrorCode'; this is an error in the Swift 6 language mode
55 | public var message: String? = nil
56 | public static var defaultCase: ErrorCode { return .unknown }
/Users/admin/builder/spi-builder-workspace/Sources/TTransportError.swift:80:14: warning: stored property 'error' of 'Sendable'-conforming struct 'THTTPTransportError' has non-sendable type 'THTTPTransportError.ErrorCode'; this is an error in the Swift 6 language mode
64 | /// Error's thrown on HTTP Transport
65 | public struct THTTPTransportError: TError {
66 | public enum ErrorCode: TErrorCode {
| `- note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
67 | case invalidResponse
68 | case invalidStatus(statusCode: Int)
:
78 | public var thriftErrorCode: Int { return 0 }
79 | }
80 | public var error: ErrorCode = .invalidResponse
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'THTTPTransportError' has non-sendable type 'THTTPTransportError.ErrorCode'; this is an error in the Swift 6 language mode
81 | public var message: String? = nil
82 | public static var defaultCase: ErrorCode { return .invalidResponse }
[10/36] Compiling Thrift Thrift.swift
/Users/admin/builder/spi-builder-workspace/Sources/TTransportError.swift:54:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TTransportError' has non-sendable type 'TTransportError.ErrorCode'; this is an error in the Swift 6 language mode
19 |
20 | public struct TTransportError: TError {
21 | public enum ErrorCode: TErrorCode {
| `- note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
22 | case unknown
23 | case notOpen
:
52 | }
53 | }
54 | public var error: ErrorCode = .unknown
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TTransportError' has non-sendable type 'TTransportError.ErrorCode'; this is an error in the Swift 6 language mode
55 | public var message: String? = nil
56 | public static var defaultCase: ErrorCode { return .unknown }
/Users/admin/builder/spi-builder-workspace/Sources/TTransportError.swift:80:14: warning: stored property 'error' of 'Sendable'-conforming struct 'THTTPTransportError' has non-sendable type 'THTTPTransportError.ErrorCode'; this is an error in the Swift 6 language mode
64 | /// Error's thrown on HTTP Transport
65 | public struct THTTPTransportError: TError {
66 | public enum ErrorCode: TErrorCode {
| `- note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
67 | case invalidResponse
68 | case invalidStatus(statusCode: Int)
:
78 | public var thriftErrorCode: Int { return 0 }
79 | }
80 | public var error: ErrorCode = .invalidResponse
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'THTTPTransportError' has non-sendable type 'THTTPTransportError.ErrorCode'; this is an error in the Swift 6 language mode
81 | public var message: String? = nil
82 | public static var defaultCase: ErrorCode { return .invalidResponse }
[11/36] Compiling Thrift THTTPSessionTransport.swift
/Users/admin/builder/spi-builder-workspace/Sources/THTTPSessionTransport.swift:65:89: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
61 | }
62 |
63 | func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
| `- note: parameter 'completionHandler' is implicitly non-sendable
64 |
65 | let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
| `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
66 | if let newTask = newTask {
67 | return newTask
/Users/admin/builder/spi-builder-workspace/Sources/TList.swift:34:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TList' to 'Hashable' by implementing 'hash(into:)' instead
32 |
33 | /// Mark: Hashable
34 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TList' to 'Hashable' by implementing 'hash(into:)' instead
35 | let prime = 31
36 | var result = 1
[12/36] Compiling Thrift TJSONProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/THTTPSessionTransport.swift:65:89: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
61 | }
62 |
63 | func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
| `- note: parameter 'completionHandler' is implicitly non-sendable
64 |
65 | let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
| `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
66 | if let newTask = newTask {
67 | return newTask
/Users/admin/builder/spi-builder-workspace/Sources/TList.swift:34:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TList' to 'Hashable' by implementing 'hash(into:)' instead
32 |
33 | /// Mark: Hashable
34 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TList' to 'Hashable' by implementing 'hash(into:)' instead
35 | let prime = 31
36 | var result = 1
[13/36] Compiling Thrift TList.swift
/Users/admin/builder/spi-builder-workspace/Sources/THTTPSessionTransport.swift:65:89: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
61 | }
62 |
63 | func taskWithRequest(_ request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) throws -> URLSessionTask {
| `- note: parameter 'completionHandler' is implicitly non-sendable
64 |
65 | let newTask: URLSessionTask? = session.dataTask(with: request, completionHandler: completionHandler)
| `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
66 | if let newTask = newTask {
67 | return newTask
/Users/admin/builder/spi-builder-workspace/Sources/TList.swift:34:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TList' to 'Hashable' by implementing 'hash(into:)' instead
32 |
33 | /// Mark: Hashable
34 | public var hashValue : Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TList' to 'Hashable' by implementing 'hash(into:)' instead
35 | let prime = 31
36 | var result = 1
[14/36] Compiling Thrift TSSLSocketTransport.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSSLSocketTransport.swift:32:5: warning: let 'htons' is not concurrency-safe because non-'Sendable' type '(__uint16_t) -> __uint16_t' (aka '(UInt16) -> UInt16') may have shared mutable state; this is an error in the Swift 6 language mode
30 | #else
31 | let isLittleEndian = Int(OSHostByteOrder()) == OSLittleEndian
32 | let htons = isLittleEndian ? _OSSwapInt16 : { $0 }
| |- warning: let 'htons' is not concurrency-safe because non-'Sendable' type '(__uint16_t) -> __uint16_t' (aka '(UInt16) -> UInt16') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'htons' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | let htonl = isLittleEndian ? _OSSwapInt32 : { $0 }
34 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSSLSocketTransport.swift:33:5: warning: let 'htonl' is not concurrency-safe because non-'Sendable' type '(__uint32_t) -> __uint32_t' (aka '(UInt32) -> UInt32') may have shared mutable state; this is an error in the Swift 6 language mode
31 | let isLittleEndian = Int(OSHostByteOrder()) == OSLittleEndian
32 | let htons = isLittleEndian ? _OSSwapInt16 : { $0 }
33 | let htonl = isLittleEndian ? _OSSwapInt32 : { $0 }
| |- warning: let 'htonl' is not concurrency-safe because non-'Sendable' type '(__uint32_t) -> __uint32_t' (aka '(UInt32) -> UInt32') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'htonl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public class TSSLSocketTransport: TStreamTransport {
/Users/admin/builder/spi-builder-workspace/Sources/TSSLSocketTransportError.swift:43:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TSSLSocketTransportError' has non-sendable type 'TSSLSocketTransportError.ErrorCode'; this is an error in the Swift 6 language mode
19 |
20 | public struct TSSLSocketTransportError: TError {
21 | public enum ErrorCode: TErrorCode {
| `- note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
22 | case hostanameResolution(hostname: String)
23 | case socketCreate(port: Int)
:
41 |
42 | }
43 | public var error: ErrorCode = .connect
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TSSLSocketTransportError' has non-sendable type 'TSSLSocketTransportError.ErrorCode'; this is an error in the Swift 6 language mode
44 | public var message: String?
45 | public static var defaultCase: ErrorCode { return .connect }
[15/36] Compiling Thrift TSSLSocketTransportError.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSSLSocketTransport.swift:32:5: warning: let 'htons' is not concurrency-safe because non-'Sendable' type '(__uint16_t) -> __uint16_t' (aka '(UInt16) -> UInt16') may have shared mutable state; this is an error in the Swift 6 language mode
30 | #else
31 | let isLittleEndian = Int(OSHostByteOrder()) == OSLittleEndian
32 | let htons = isLittleEndian ? _OSSwapInt16 : { $0 }
| |- warning: let 'htons' is not concurrency-safe because non-'Sendable' type '(__uint16_t) -> __uint16_t' (aka '(UInt16) -> UInt16') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'htons' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | let htonl = isLittleEndian ? _OSSwapInt32 : { $0 }
34 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSSLSocketTransport.swift:33:5: warning: let 'htonl' is not concurrency-safe because non-'Sendable' type '(__uint32_t) -> __uint32_t' (aka '(UInt32) -> UInt32') may have shared mutable state; this is an error in the Swift 6 language mode
31 | let isLittleEndian = Int(OSHostByteOrder()) == OSLittleEndian
32 | let htons = isLittleEndian ? _OSSwapInt16 : { $0 }
33 | let htonl = isLittleEndian ? _OSSwapInt32 : { $0 }
| |- warning: let 'htonl' is not concurrency-safe because non-'Sendable' type '(__uint32_t) -> __uint32_t' (aka '(UInt32) -> UInt32') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'htonl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public class TSSLSocketTransport: TStreamTransport {
/Users/admin/builder/spi-builder-workspace/Sources/TSSLSocketTransportError.swift:43:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TSSLSocketTransportError' has non-sendable type 'TSSLSocketTransportError.ErrorCode'; this is an error in the Swift 6 language mode
19 |
20 | public struct TSSLSocketTransportError: TError {
21 | public enum ErrorCode: TErrorCode {
| `- note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
22 | case hostanameResolution(hostname: String)
23 | case socketCreate(port: Int)
:
41 |
42 | }
43 | public var error: ErrorCode = .connect
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TSSLSocketTransportError' has non-sendable type 'TSSLSocketTransportError.ErrorCode'; this is an error in the Swift 6 language mode
44 | public var message: String?
45 | public static var defaultCase: ErrorCode { return .connect }
[16/36] Compiling Thrift TSerializable.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSSLSocketTransport.swift:32:5: warning: let 'htons' is not concurrency-safe because non-'Sendable' type '(__uint16_t) -> __uint16_t' (aka '(UInt16) -> UInt16') may have shared mutable state; this is an error in the Swift 6 language mode
30 | #else
31 | let isLittleEndian = Int(OSHostByteOrder()) == OSLittleEndian
32 | let htons = isLittleEndian ? _OSSwapInt16 : { $0 }
| |- warning: let 'htons' is not concurrency-safe because non-'Sendable' type '(__uint16_t) -> __uint16_t' (aka '(UInt16) -> UInt16') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'htons' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | let htonl = isLittleEndian ? _OSSwapInt32 : { $0 }
34 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSSLSocketTransport.swift:33:5: warning: let 'htonl' is not concurrency-safe because non-'Sendable' type '(__uint32_t) -> __uint32_t' (aka '(UInt32) -> UInt32') may have shared mutable state; this is an error in the Swift 6 language mode
31 | let isLittleEndian = Int(OSHostByteOrder()) == OSLittleEndian
32 | let htons = isLittleEndian ? _OSSwapInt16 : { $0 }
33 | let htonl = isLittleEndian ? _OSSwapInt32 : { $0 }
| |- warning: let 'htonl' is not concurrency-safe because non-'Sendable' type '(__uint32_t) -> __uint32_t' (aka '(UInt32) -> UInt32') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'htonl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | public class TSSLSocketTransport: TStreamTransport {
/Users/admin/builder/spi-builder-workspace/Sources/TSSLSocketTransportError.swift:43:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TSSLSocketTransportError' has non-sendable type 'TSSLSocketTransportError.ErrorCode'; this is an error in the Swift 6 language mode
19 |
20 | public struct TSSLSocketTransportError: TError {
21 | public enum ErrorCode: TErrorCode {
| `- note: consider making enum 'ErrorCode' conform to the 'Sendable' protocol
22 | case hostanameResolution(hostname: String)
23 | case socketCreate(port: Int)
:
41 |
42 | }
43 | public var error: ErrorCode = .connect
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TSSLSocketTransportError' has non-sendable type 'TSSLSocketTransportError.ErrorCode'; this is an error in the Swift 6 language mode
44 | public var message: String?
45 | public static var defaultCase: ErrorCode { return .connect }
[17/36] Compiling Thrift TError.swift
/Users/admin/builder/spi-builder-workspace/Sources/TFileTransport.swift:90:29: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
88 |
89 | public func write(data: Data) throws {
90 | let bytesWritten = data.withUnsafeBytes {
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
91 | fwrite($0, 1, data.count, self.fileHandle)
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/TFramedTransport.swift:95:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
93 | private func encodeFrameSize(size: UInt32) -> Data {
94 | var data = Data()
95 | data.append(Data(bytes: [UInt8(0xff & (size >> 24))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
96 | data.append(Data(bytes: [UInt8(0xff & (size >> 16))]))
97 | data.append(Data(bytes: [UInt8(0xff & (size >> 8))]))
/Users/admin/builder/spi-builder-workspace/Sources/TFramedTransport.swift:96:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
94 | var data = Data()
95 | data.append(Data(bytes: [UInt8(0xff & (size >> 24))]))
96 | data.append(Data(bytes: [UInt8(0xff & (size >> 16))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
97 | data.append(Data(bytes: [UInt8(0xff & (size >> 8))]))
98 | data.append(Data(bytes: [UInt8(0xff & (size))]))
/Users/admin/builder/spi-builder-workspace/Sources/TFramedTransport.swift:97:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
95 | data.append(Data(bytes: [UInt8(0xff & (size >> 24))]))
96 | data.append(Data(bytes: [UInt8(0xff & (size >> 16))]))
97 | data.append(Data(bytes: [UInt8(0xff & (size >> 8))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
98 | data.append(Data(bytes: [UInt8(0xff & (size))]))
99 |
/Users/admin/builder/spi-builder-workspace/Sources/TFramedTransport.swift:98:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
96 | data.append(Data(bytes: [UInt8(0xff & (size >> 16))]))
97 | data.append(Data(bytes: [UInt8(0xff & (size >> 8))]))
98 | data.append(Data(bytes: [UInt8(0xff & (size))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
99 |
100 | return data
[18/36] Compiling Thrift TFileHandleTransport.swift
/Users/admin/builder/spi-builder-workspace/Sources/TFileTransport.swift:90:29: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
88 |
89 | public func write(data: Data) throws {
90 | let bytesWritten = data.withUnsafeBytes {
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
91 | fwrite($0, 1, data.count, self.fileHandle)
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/TFramedTransport.swift:95:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
93 | private func encodeFrameSize(size: UInt32) -> Data {
94 | var data = Data()
95 | data.append(Data(bytes: [UInt8(0xff & (size >> 24))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
96 | data.append(Data(bytes: [UInt8(0xff & (size >> 16))]))
97 | data.append(Data(bytes: [UInt8(0xff & (size >> 8))]))
/Users/admin/builder/spi-builder-workspace/Sources/TFramedTransport.swift:96:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
94 | var data = Data()
95 | data.append(Data(bytes: [UInt8(0xff & (size >> 24))]))
96 | data.append(Data(bytes: [UInt8(0xff & (size >> 16))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
97 | data.append(Data(bytes: [UInt8(0xff & (size >> 8))]))
98 | data.append(Data(bytes: [UInt8(0xff & (size))]))
/Users/admin/builder/spi-builder-workspace/Sources/TFramedTransport.swift:97:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
95 | data.append(Data(bytes: [UInt8(0xff & (size >> 24))]))
96 | data.append(Data(bytes: [UInt8(0xff & (size >> 16))]))
97 | data.append(Data(bytes: [UInt8(0xff & (size >> 8))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
98 | data.append(Data(bytes: [UInt8(0xff & (size))]))
99 |
/Users/admin/builder/spi-builder-workspace/Sources/TFramedTransport.swift:98:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
96 | data.append(Data(bytes: [UInt8(0xff & (size >> 16))]))
97 | data.append(Data(bytes: [UInt8(0xff & (size >> 8))]))
98 | data.append(Data(bytes: [UInt8(0xff & (size))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
99 |
100 | return data
[19/36] Compiling Thrift TFileTransport.swift
/Users/admin/builder/spi-builder-workspace/Sources/TFileTransport.swift:90:29: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
88 |
89 | public func write(data: Data) throws {
90 | let bytesWritten = data.withUnsafeBytes {
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
91 | fwrite($0, 1, data.count, self.fileHandle)
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/TFramedTransport.swift:95:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
93 | private func encodeFrameSize(size: UInt32) -> Data {
94 | var data = Data()
95 | data.append(Data(bytes: [UInt8(0xff & (size >> 24))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
96 | data.append(Data(bytes: [UInt8(0xff & (size >> 16))]))
97 | data.append(Data(bytes: [UInt8(0xff & (size >> 8))]))
/Users/admin/builder/spi-builder-workspace/Sources/TFramedTransport.swift:96:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
94 | var data = Data()
95 | data.append(Data(bytes: [UInt8(0xff & (size >> 24))]))
96 | data.append(Data(bytes: [UInt8(0xff & (size >> 16))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
97 | data.append(Data(bytes: [UInt8(0xff & (size >> 8))]))
98 | data.append(Data(bytes: [UInt8(0xff & (size))]))
/Users/admin/builder/spi-builder-workspace/Sources/TFramedTransport.swift:97:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
95 | data.append(Data(bytes: [UInt8(0xff & (size >> 24))]))
96 | data.append(Data(bytes: [UInt8(0xff & (size >> 16))]))
97 | data.append(Data(bytes: [UInt8(0xff & (size >> 8))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
98 | data.append(Data(bytes: [UInt8(0xff & (size))]))
99 |
/Users/admin/builder/spi-builder-workspace/Sources/TFramedTransport.swift:98:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
96 | data.append(Data(bytes: [UInt8(0xff & (size >> 16))]))
97 | data.append(Data(bytes: [UInt8(0xff & (size >> 8))]))
98 | data.append(Data(bytes: [UInt8(0xff & (size))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
99 |
100 | return data
[20/36] Compiling Thrift TFramedTransport.swift
/Users/admin/builder/spi-builder-workspace/Sources/TFileTransport.swift:90:29: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
88 |
89 | public func write(data: Data) throws {
90 | let bytesWritten = data.withUnsafeBytes {
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
91 | fwrite($0, 1, data.count, self.fileHandle)
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/TFramedTransport.swift:95:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
93 | private func encodeFrameSize(size: UInt32) -> Data {
94 | var data = Data()
95 | data.append(Data(bytes: [UInt8(0xff & (size >> 24))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
96 | data.append(Data(bytes: [UInt8(0xff & (size >> 16))]))
97 | data.append(Data(bytes: [UInt8(0xff & (size >> 8))]))
/Users/admin/builder/spi-builder-workspace/Sources/TFramedTransport.swift:96:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
94 | var data = Data()
95 | data.append(Data(bytes: [UInt8(0xff & (size >> 24))]))
96 | data.append(Data(bytes: [UInt8(0xff & (size >> 16))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
97 | data.append(Data(bytes: [UInt8(0xff & (size >> 8))]))
98 | data.append(Data(bytes: [UInt8(0xff & (size))]))
/Users/admin/builder/spi-builder-workspace/Sources/TFramedTransport.swift:97:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
95 | data.append(Data(bytes: [UInt8(0xff & (size >> 24))]))
96 | data.append(Data(bytes: [UInt8(0xff & (size >> 16))]))
97 | data.append(Data(bytes: [UInt8(0xff & (size >> 8))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
98 | data.append(Data(bytes: [UInt8(0xff & (size))]))
99 |
/Users/admin/builder/spi-builder-workspace/Sources/TFramedTransport.swift:98:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
96 | data.append(Data(bytes: [UInt8(0xff & (size >> 16))]))
97 | data.append(Data(bytes: [UInt8(0xff & (size >> 8))]))
98 | data.append(Data(bytes: [UInt8(0xff & (size))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
99 |
100 | return data
[21/36] Compiling Thrift TSet.swift
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:82:28: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
80 | let address = Data(bytes: ptr, count: MemoryLayout<sockaddr_in>.size)
81 |
82 | let cfaddr = address.withUnsafeBytes {
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
83 | CFDataCreateWithBytesNoCopy(kCFAllocatorDefault, $0, address.count, nil)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:106:72: warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | public let TSocketServerTransportKey = "TSocketServerTransport"
33 |
34 | class TSocketServer<InProtocol: TProtocol, OutProtocol: TProtocol, Processor: TProcessor, Service> where Processor.Service == Service {
| `- note: generic class 'TSocketServer' does not conform to the 'Sendable' protocol
35 | var socketFileHandle: FileHandle
36 | var processingQueue = DispatchQueue(label: "TSocketServer.processing",
:
104 | object: nil, queue: nil) {
105 | [weak self] notification in
106 | guard let strongSelf = self else { return }
| `- warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | strongSelf.connectionAccepted(strongSelf.socketFileHandle)
108 |
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:124:7: warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | public let TSocketServerTransportKey = "TSocketServerTransport"
33 |
34 | class TSocketServer<InProtocol: TProtocol, OutProtocol: TProtocol, Processor: TProcessor, Service> where Processor.Service == Service {
| `- note: generic class 'TSocketServer' does not conform to the 'Sendable' protocol
35 | var socketFileHandle: FileHandle
36 | var processingQueue = DispatchQueue(label: "TSocketServer.processing",
:
122 | // Now that we have a client connected, handle the request on queue
123 | processingQueue.async {
124 | self.handleClientConnection(socket)
| `- warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:144:23: warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | public let TSocketServerTransportKey = "TSocketServerTransport"
33 |
34 | class TSocketServer<InProtocol: TProtocol, OutProtocol: TProtocol, Processor: TProcessor, Service> where Processor.Service == Service {
| `- note: generic class 'TSocketServer' does not conform to the 'Sendable' protocol
35 | var socketFileHandle: FileHandle
36 | var processingQueue = DispatchQueue(label: "TSocketServer.processing",
:
142 | NotificationCenter.default
143 | .post(name: Notification.Name(rawValue: TSocketServerClientConnectionFinished),
144 | object: self,
| `- warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | userInfo: [TSocketServerProcessorKey: processor,
146 | TSocketServerTransportKey: transport])
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:145:53: warning: capture of 'processor' with non-sendable type 'Processor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | public let TSocketServerTransportKey = "TSocketServerTransport"
33 |
34 | class TSocketServer<InProtocol: TProtocol, OutProtocol: TProtocol, Processor: TProcessor, Service> where Processor.Service == Service {
| `- note: consider making generic parameter 'Processor' conform to the 'Sendable' protocol
35 | var socketFileHandle: FileHandle
36 | var processingQueue = DispatchQueue(label: "TSocketServer.processing",
:
143 | .post(name: Notification.Name(rawValue: TSocketServerClientConnectionFinished),
144 | object: self,
145 | userInfo: [TSocketServerProcessorKey: processor,
| `- warning: capture of 'processor' with non-sendable type 'Processor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | TSocketServerTransportKey: transport])
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:146:53: warning: capture of 'transport' with non-sendable type 'TFileHandleTransport' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | object: self,
145 | userInfo: [TSocketServerProcessorKey: processor,
146 | TSocketServerTransportKey: transport])
| `- warning: capture of 'transport' with non-sendable type 'TFileHandleTransport' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/TFileHandleTransport.swift:22:14: note: class 'TFileHandleTransport' does not conform to the 'Sendable' protocol
20 | import Foundation
21 |
22 | public class TFileHandleTransport: TTransport {
| `- note: class 'TFileHandleTransport' does not conform to the 'Sendable' protocol
23 | var inputFileHandle: FileHandle
24 | var outputFileHandle: FileHandle
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:38:14: warning: static property 'read' is not concurrency-safe because non-'Sendable' type '(Int32, UnsafeMutableRawPointer?, Int) -> Int' may have shared mutable state; this is an error in the Swift 6 language mode
36 | static let close = Glibc.close
37 | #else
38 | static let read = Darwin.read
| |- warning: static property 'read' is not concurrency-safe because non-'Sendable' type '(Int32, UnsafeMutableRawPointer?, Int) -> Int' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'read' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static let write = Darwin.write
40 | static let close = Darwin.close
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:39:14: warning: static property 'write' is not concurrency-safe because non-'Sendable' type '(Int32, UnsafeRawPointer?, Int) -> Int' may have shared mutable state; this is an error in the Swift 6 language mode
37 | #else
38 | static let read = Darwin.read
39 | static let write = Darwin.write
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type '(Int32, UnsafeRawPointer?, Int) -> Int' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | static let close = Darwin.close
41 | #endif
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:40:14: warning: static property 'close' is not concurrency-safe because non-'Sendable' type '(Int32) -> Int32' may have shared mutable state; this is an error in the Swift 6 language mode
38 | static let read = Darwin.read
39 | static let write = Darwin.write
40 | static let close = Darwin.close
| |- warning: static property 'close' is not concurrency-safe because non-'Sendable' type '(Int32) -> Int32' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'close' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | #endif
42 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSSLSocketTransport.swift:32:5: warning: let 'htons' is not concurrency-safe because non-'Sendable' type '(__uint16_t) -> __uint16_t' (aka '(UInt16) -> UInt16') may have shared mutable state; this is an error in the Swift 6 language mode
30 | #else
31 | let isLittleEndian = Int(OSHostByteOrder()) == OSLittleEndian
32 | let htons = isLittleEndian ? _OSSwapInt16 : { $0 }
| |- warning: let 'htons' is not concurrency-safe because non-'Sendable' type '(__uint16_t) -> __uint16_t' (aka '(UInt16) -> UInt16') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'htons' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | let htonl = isLittleEndian ? _OSSwapInt32 : { $0 }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:187:12: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
185 | let readBytes = Sys.read(socketDescriptor, &buff, size)
186 |
187 | return Data(bytes: buff[0..<readBytes])
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
188 | }
189 |
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:194:33: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
192 | var writeBuffer = data
193 | while bytesToWrite > 0 {
194 | let written = writeBuffer.withUnsafeBytes {
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
195 | Sys.write(socketDescriptor, $0, writeBuffer.count)
196 | }
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:143:49: warning: sending 'TSocketServerClientConnectionFinished' risks causing data races; this is an error in the Swift 6 language mode
141 | DispatchQueue.main.async {
142 | NotificationCenter.default
143 | .post(name: Notification.Name(rawValue: TSocketServerClientConnectionFinished),
| |- warning: sending 'TSocketServerClientConnectionFinished' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'TSocketServerClientConnectionFinished' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
144 | object: self,
145 | userInfo: [TSocketServerProcessorKey: processor,
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:144:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
142 | NotificationCenter.default
143 | .post(name: Notification.Name(rawValue: TSocketServerClientConnectionFinished),
144 | object: self,
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
145 | userInfo: [TSocketServerProcessorKey: processor,
146 | TSocketServerTransportKey: transport])
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:145:26: warning: sending 'TSocketServerProcessorKey' risks causing data races; this is an error in the Swift 6 language mode
143 | .post(name: Notification.Name(rawValue: TSocketServerClientConnectionFinished),
144 | object: self,
145 | userInfo: [TSocketServerProcessorKey: processor,
| |- warning: sending 'TSocketServerProcessorKey' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'TSocketServerProcessorKey' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 | TSocketServerTransportKey: transport])
147 | }
[22/36] Compiling Thrift TSocketServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:82:28: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
80 | let address = Data(bytes: ptr, count: MemoryLayout<sockaddr_in>.size)
81 |
82 | let cfaddr = address.withUnsafeBytes {
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
83 | CFDataCreateWithBytesNoCopy(kCFAllocatorDefault, $0, address.count, nil)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:106:72: warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | public let TSocketServerTransportKey = "TSocketServerTransport"
33 |
34 | class TSocketServer<InProtocol: TProtocol, OutProtocol: TProtocol, Processor: TProcessor, Service> where Processor.Service == Service {
| `- note: generic class 'TSocketServer' does not conform to the 'Sendable' protocol
35 | var socketFileHandle: FileHandle
36 | var processingQueue = DispatchQueue(label: "TSocketServer.processing",
:
104 | object: nil, queue: nil) {
105 | [weak self] notification in
106 | guard let strongSelf = self else { return }
| `- warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | strongSelf.connectionAccepted(strongSelf.socketFileHandle)
108 |
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:124:7: warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | public let TSocketServerTransportKey = "TSocketServerTransport"
33 |
34 | class TSocketServer<InProtocol: TProtocol, OutProtocol: TProtocol, Processor: TProcessor, Service> where Processor.Service == Service {
| `- note: generic class 'TSocketServer' does not conform to the 'Sendable' protocol
35 | var socketFileHandle: FileHandle
36 | var processingQueue = DispatchQueue(label: "TSocketServer.processing",
:
122 | // Now that we have a client connected, handle the request on queue
123 | processingQueue.async {
124 | self.handleClientConnection(socket)
| `- warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:144:23: warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | public let TSocketServerTransportKey = "TSocketServerTransport"
33 |
34 | class TSocketServer<InProtocol: TProtocol, OutProtocol: TProtocol, Processor: TProcessor, Service> where Processor.Service == Service {
| `- note: generic class 'TSocketServer' does not conform to the 'Sendable' protocol
35 | var socketFileHandle: FileHandle
36 | var processingQueue = DispatchQueue(label: "TSocketServer.processing",
:
142 | NotificationCenter.default
143 | .post(name: Notification.Name(rawValue: TSocketServerClientConnectionFinished),
144 | object: self,
| `- warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | userInfo: [TSocketServerProcessorKey: processor,
146 | TSocketServerTransportKey: transport])
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:145:53: warning: capture of 'processor' with non-sendable type 'Processor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | public let TSocketServerTransportKey = "TSocketServerTransport"
33 |
34 | class TSocketServer<InProtocol: TProtocol, OutProtocol: TProtocol, Processor: TProcessor, Service> where Processor.Service == Service {
| `- note: consider making generic parameter 'Processor' conform to the 'Sendable' protocol
35 | var socketFileHandle: FileHandle
36 | var processingQueue = DispatchQueue(label: "TSocketServer.processing",
:
143 | .post(name: Notification.Name(rawValue: TSocketServerClientConnectionFinished),
144 | object: self,
145 | userInfo: [TSocketServerProcessorKey: processor,
| `- warning: capture of 'processor' with non-sendable type 'Processor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | TSocketServerTransportKey: transport])
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:146:53: warning: capture of 'transport' with non-sendable type 'TFileHandleTransport' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | object: self,
145 | userInfo: [TSocketServerProcessorKey: processor,
146 | TSocketServerTransportKey: transport])
| `- warning: capture of 'transport' with non-sendable type 'TFileHandleTransport' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/TFileHandleTransport.swift:22:14: note: class 'TFileHandleTransport' does not conform to the 'Sendable' protocol
20 | import Foundation
21 |
22 | public class TFileHandleTransport: TTransport {
| `- note: class 'TFileHandleTransport' does not conform to the 'Sendable' protocol
23 | var inputFileHandle: FileHandle
24 | var outputFileHandle: FileHandle
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:38:14: warning: static property 'read' is not concurrency-safe because non-'Sendable' type '(Int32, UnsafeMutableRawPointer?, Int) -> Int' may have shared mutable state; this is an error in the Swift 6 language mode
36 | static let close = Glibc.close
37 | #else
38 | static let read = Darwin.read
| |- warning: static property 'read' is not concurrency-safe because non-'Sendable' type '(Int32, UnsafeMutableRawPointer?, Int) -> Int' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'read' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static let write = Darwin.write
40 | static let close = Darwin.close
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:39:14: warning: static property 'write' is not concurrency-safe because non-'Sendable' type '(Int32, UnsafeRawPointer?, Int) -> Int' may have shared mutable state; this is an error in the Swift 6 language mode
37 | #else
38 | static let read = Darwin.read
39 | static let write = Darwin.write
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type '(Int32, UnsafeRawPointer?, Int) -> Int' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | static let close = Darwin.close
41 | #endif
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:40:14: warning: static property 'close' is not concurrency-safe because non-'Sendable' type '(Int32) -> Int32' may have shared mutable state; this is an error in the Swift 6 language mode
38 | static let read = Darwin.read
39 | static let write = Darwin.write
40 | static let close = Darwin.close
| |- warning: static property 'close' is not concurrency-safe because non-'Sendable' type '(Int32) -> Int32' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'close' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | #endif
42 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSSLSocketTransport.swift:32:5: warning: let 'htons' is not concurrency-safe because non-'Sendable' type '(__uint16_t) -> __uint16_t' (aka '(UInt16) -> UInt16') may have shared mutable state; this is an error in the Swift 6 language mode
30 | #else
31 | let isLittleEndian = Int(OSHostByteOrder()) == OSLittleEndian
32 | let htons = isLittleEndian ? _OSSwapInt16 : { $0 }
| |- warning: let 'htons' is not concurrency-safe because non-'Sendable' type '(__uint16_t) -> __uint16_t' (aka '(UInt16) -> UInt16') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'htons' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | let htonl = isLittleEndian ? _OSSwapInt32 : { $0 }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:187:12: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
185 | let readBytes = Sys.read(socketDescriptor, &buff, size)
186 |
187 | return Data(bytes: buff[0..<readBytes])
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
188 | }
189 |
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:194:33: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
192 | var writeBuffer = data
193 | while bytesToWrite > 0 {
194 | let written = writeBuffer.withUnsafeBytes {
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
195 | Sys.write(socketDescriptor, $0, writeBuffer.count)
196 | }
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:143:49: warning: sending 'TSocketServerClientConnectionFinished' risks causing data races; this is an error in the Swift 6 language mode
141 | DispatchQueue.main.async {
142 | NotificationCenter.default
143 | .post(name: Notification.Name(rawValue: TSocketServerClientConnectionFinished),
| |- warning: sending 'TSocketServerClientConnectionFinished' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'TSocketServerClientConnectionFinished' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
144 | object: self,
145 | userInfo: [TSocketServerProcessorKey: processor,
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:144:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
142 | NotificationCenter.default
143 | .post(name: Notification.Name(rawValue: TSocketServerClientConnectionFinished),
144 | object: self,
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
145 | userInfo: [TSocketServerProcessorKey: processor,
146 | TSocketServerTransportKey: transport])
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:145:26: warning: sending 'TSocketServerProcessorKey' risks causing data races; this is an error in the Swift 6 language mode
143 | .post(name: Notification.Name(rawValue: TSocketServerClientConnectionFinished),
144 | object: self,
145 | userInfo: [TSocketServerProcessorKey: processor,
| |- warning: sending 'TSocketServerProcessorKey' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'TSocketServerProcessorKey' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 | TSocketServerTransportKey: transport])
147 | }
[23/36] Compiling Thrift TSocketTransport.swift
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:82:28: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
80 | let address = Data(bytes: ptr, count: MemoryLayout<sockaddr_in>.size)
81 |
82 | let cfaddr = address.withUnsafeBytes {
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
83 | CFDataCreateWithBytesNoCopy(kCFAllocatorDefault, $0, address.count, nil)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:106:72: warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | public let TSocketServerTransportKey = "TSocketServerTransport"
33 |
34 | class TSocketServer<InProtocol: TProtocol, OutProtocol: TProtocol, Processor: TProcessor, Service> where Processor.Service == Service {
| `- note: generic class 'TSocketServer' does not conform to the 'Sendable' protocol
35 | var socketFileHandle: FileHandle
36 | var processingQueue = DispatchQueue(label: "TSocketServer.processing",
:
104 | object: nil, queue: nil) {
105 | [weak self] notification in
106 | guard let strongSelf = self else { return }
| `- warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | strongSelf.connectionAccepted(strongSelf.socketFileHandle)
108 |
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:124:7: warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | public let TSocketServerTransportKey = "TSocketServerTransport"
33 |
34 | class TSocketServer<InProtocol: TProtocol, OutProtocol: TProtocol, Processor: TProcessor, Service> where Processor.Service == Service {
| `- note: generic class 'TSocketServer' does not conform to the 'Sendable' protocol
35 | var socketFileHandle: FileHandle
36 | var processingQueue = DispatchQueue(label: "TSocketServer.processing",
:
122 | // Now that we have a client connected, handle the request on queue
123 | processingQueue.async {
124 | self.handleClientConnection(socket)
| `- warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:144:23: warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | public let TSocketServerTransportKey = "TSocketServerTransport"
33 |
34 | class TSocketServer<InProtocol: TProtocol, OutProtocol: TProtocol, Processor: TProcessor, Service> where Processor.Service == Service {
| `- note: generic class 'TSocketServer' does not conform to the 'Sendable' protocol
35 | var socketFileHandle: FileHandle
36 | var processingQueue = DispatchQueue(label: "TSocketServer.processing",
:
142 | NotificationCenter.default
143 | .post(name: Notification.Name(rawValue: TSocketServerClientConnectionFinished),
144 | object: self,
| `- warning: capture of 'self' with non-sendable type 'TSocketServer<InProtocol, OutProtocol, Processor, Service>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | userInfo: [TSocketServerProcessorKey: processor,
146 | TSocketServerTransportKey: transport])
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:145:53: warning: capture of 'processor' with non-sendable type 'Processor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | public let TSocketServerTransportKey = "TSocketServerTransport"
33 |
34 | class TSocketServer<InProtocol: TProtocol, OutProtocol: TProtocol, Processor: TProcessor, Service> where Processor.Service == Service {
| `- note: consider making generic parameter 'Processor' conform to the 'Sendable' protocol
35 | var socketFileHandle: FileHandle
36 | var processingQueue = DispatchQueue(label: "TSocketServer.processing",
:
143 | .post(name: Notification.Name(rawValue: TSocketServerClientConnectionFinished),
144 | object: self,
145 | userInfo: [TSocketServerProcessorKey: processor,
| `- warning: capture of 'processor' with non-sendable type 'Processor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 | TSocketServerTransportKey: transport])
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:146:53: warning: capture of 'transport' with non-sendable type 'TFileHandleTransport' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | object: self,
145 | userInfo: [TSocketServerProcessorKey: processor,
146 | TSocketServerTransportKey: transport])
| `- warning: capture of 'transport' with non-sendable type 'TFileHandleTransport' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/TFileHandleTransport.swift:22:14: note: class 'TFileHandleTransport' does not conform to the 'Sendable' protocol
20 | import Foundation
21 |
22 | public class TFileHandleTransport: TTransport {
| `- note: class 'TFileHandleTransport' does not conform to the 'Sendable' protocol
23 | var inputFileHandle: FileHandle
24 | var outputFileHandle: FileHandle
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:38:14: warning: static property 'read' is not concurrency-safe because non-'Sendable' type '(Int32, UnsafeMutableRawPointer?, Int) -> Int' may have shared mutable state; this is an error in the Swift 6 language mode
36 | static let close = Glibc.close
37 | #else
38 | static let read = Darwin.read
| |- warning: static property 'read' is not concurrency-safe because non-'Sendable' type '(Int32, UnsafeMutableRawPointer?, Int) -> Int' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'read' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static let write = Darwin.write
40 | static let close = Darwin.close
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:39:14: warning: static property 'write' is not concurrency-safe because non-'Sendable' type '(Int32, UnsafeRawPointer?, Int) -> Int' may have shared mutable state; this is an error in the Swift 6 language mode
37 | #else
38 | static let read = Darwin.read
39 | static let write = Darwin.write
| |- warning: static property 'write' is not concurrency-safe because non-'Sendable' type '(Int32, UnsafeRawPointer?, Int) -> Int' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'write' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | static let close = Darwin.close
41 | #endif
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:40:14: warning: static property 'close' is not concurrency-safe because non-'Sendable' type '(Int32) -> Int32' may have shared mutable state; this is an error in the Swift 6 language mode
38 | static let read = Darwin.read
39 | static let write = Darwin.write
40 | static let close = Darwin.close
| |- warning: static property 'close' is not concurrency-safe because non-'Sendable' type '(Int32) -> Int32' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'close' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | #endif
42 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/TSSLSocketTransport.swift:32:5: warning: let 'htons' is not concurrency-safe because non-'Sendable' type '(__uint16_t) -> __uint16_t' (aka '(UInt16) -> UInt16') may have shared mutable state; this is an error in the Swift 6 language mode
30 | #else
31 | let isLittleEndian = Int(OSHostByteOrder()) == OSLittleEndian
32 | let htons = isLittleEndian ? _OSSwapInt16 : { $0 }
| |- warning: let 'htons' is not concurrency-safe because non-'Sendable' type '(__uint16_t) -> __uint16_t' (aka '(UInt16) -> UInt16') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'htons' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | let htonl = isLittleEndian ? _OSSwapInt32 : { $0 }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:187:12: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
185 | let readBytes = Sys.read(socketDescriptor, &buff, size)
186 |
187 | return Data(bytes: buff[0..<readBytes])
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
188 | }
189 |
/Users/admin/builder/spi-builder-workspace/Sources/TSocketTransport.swift:194:33: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
192 | var writeBuffer = data
193 | while bytesToWrite > 0 {
194 | let written = writeBuffer.withUnsafeBytes {
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
195 | Sys.write(socketDescriptor, $0, writeBuffer.count)
196 | }
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:143:49: warning: sending 'TSocketServerClientConnectionFinished' risks causing data races; this is an error in the Swift 6 language mode
141 | DispatchQueue.main.async {
142 | NotificationCenter.default
143 | .post(name: Notification.Name(rawValue: TSocketServerClientConnectionFinished),
| |- warning: sending 'TSocketServerClientConnectionFinished' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'TSocketServerClientConnectionFinished' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
144 | object: self,
145 | userInfo: [TSocketServerProcessorKey: processor,
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:144:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
142 | NotificationCenter.default
143 | .post(name: Notification.Name(rawValue: TSocketServerClientConnectionFinished),
144 | object: self,
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
145 | userInfo: [TSocketServerProcessorKey: processor,
146 | TSocketServerTransportKey: transport])
/Users/admin/builder/spi-builder-workspace/Sources/TSocketServer.swift:145:26: warning: sending 'TSocketServerProcessorKey' risks causing data races; this is an error in the Swift 6 language mode
143 | .post(name: Notification.Name(rawValue: TSocketServerClientConnectionFinished),
144 | object: self,
145 | userInfo: [TSocketServerProcessorKey: processor,
| |- warning: sending 'TSocketServerProcessorKey' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'TSocketServerProcessorKey' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
146 | TSocketServerTransportKey: transport])
147 | }
[24/36] Compiling Thrift TBinaryProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:33:21: warning: static property 'strictRead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | // class level properties for setting global config (useful for server in lieu of Factory design)
33 | public static var strictRead: Bool = false
| |- warning: static property 'strictRead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strictRead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strictRead' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | public static var strictWrite: Bool = true
35 |
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:34:21: warning: static property 'strictWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | // class level properties for setting global config (useful for server in lieu of Factory design)
33 | public static var strictRead: Bool = false
34 | public static var strictWrite: Bool = true
| |- warning: static property 'strictWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strictWrite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strictWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | private var strictRead: Bool
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:328:16: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
326 |
327 | public func write(_ value: UInt8) throws {
328 | let buff = Data(bytes: [value])
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
329 |
330 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:337:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
335 | public func write(_ value: Int16) throws {
336 | var buff = Data()
337 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
338 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
339 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:338:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
336 | var buff = Data()
337 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
338 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
339 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
340 | try self.transport.write(data: buff)
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:346:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
344 | public func write(_ value: Int32) throws {
345 | var buff = Data()
346 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
347 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
348 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:347:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
345 | var buff = Data()
346 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
347 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
348 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
349 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:348:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
346 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
347 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
348 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
349 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
350 |
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:349:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
347 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
348 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
349 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
350 |
351 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:358:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
356 | public func write(_ value: Int64) throws {
357 | var buff = Data()
358 | buff.append(Data(bytes: [UInt8(0xff & (value >> 56))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
359 | buff.append(Data(bytes: [UInt8(0xff & (value >> 48))]))
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:359:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
357 | var buff = Data()
358 | buff.append(Data(bytes: [UInt8(0xff & (value >> 56))]))
359 | buff.append(Data(bytes: [UInt8(0xff & (value >> 48))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:360:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
358 | buff.append(Data(bytes: [UInt8(0xff & (value >> 56))]))
359 | buff.append(Data(bytes: [UInt8(0xff & (value >> 48))]))
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:361:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
359 | buff.append(Data(bytes: [UInt8(0xff & (value >> 48))]))
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:362:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
364 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:363:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
364 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
365 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:364:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
364 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
365 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
366 |
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:365:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
364 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
365 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
366 |
367 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
/Users/admin/builder/spi-builder-workspace/Sources/TCompactProtocol.swift:70:16: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
68 |
69 | func writebyteDirect(_ byte: UInt8) throws {
70 | let byte = Data(bytes: [byte])
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
71 | try ProtocolTransportTry(error: TProtocolError(message: "Transport Write Failed")) {
72 | try self.transport.write(data: byte)
/Users/admin/builder/spi-builder-workspace/Sources/TCompactProtocol.swift:93:38: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
91 |
92 | try ProtocolTransportTry(error: TProtocolError(message: "Transport Write Failed")) {
93 | try self.transport.write(data: Data(bytes: i32buf[0..<idx]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/TCompactProtocol.swift:114:38: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
112 |
113 | try ProtocolTransportTry(error: TProtocolError(message: "Transport Write Failed")) {
114 | try self.transport.write(data: Data(bytes: varint64out[0..<idx]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
115 | }
116 |
/Users/admin/builder/spi-builder-workspace/Sources/TCompactProtocol.swift:378:28: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
376 | }
377 |
378 | let i64: UInt64 = buff.withUnsafeBytes { (ptr: UnsafePointer<UInt8>) -> UInt64 in
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
379 | return UnsafePointer<UInt64>(OpaquePointer(ptr)).pointee
380 | }
[25/36] Compiling Thrift TClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:33:21: warning: static property 'strictRead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | // class level properties for setting global config (useful for server in lieu of Factory design)
33 | public static var strictRead: Bool = false
| |- warning: static property 'strictRead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strictRead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strictRead' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | public static var strictWrite: Bool = true
35 |
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:34:21: warning: static property 'strictWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | // class level properties for setting global config (useful for server in lieu of Factory design)
33 | public static var strictRead: Bool = false
34 | public static var strictWrite: Bool = true
| |- warning: static property 'strictWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strictWrite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strictWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | private var strictRead: Bool
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:328:16: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
326 |
327 | public func write(_ value: UInt8) throws {
328 | let buff = Data(bytes: [value])
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
329 |
330 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:337:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
335 | public func write(_ value: Int16) throws {
336 | var buff = Data()
337 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
338 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
339 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:338:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
336 | var buff = Data()
337 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
338 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
339 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
340 | try self.transport.write(data: buff)
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:346:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
344 | public func write(_ value: Int32) throws {
345 | var buff = Data()
346 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
347 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
348 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:347:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
345 | var buff = Data()
346 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
347 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
348 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
349 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:348:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
346 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
347 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
348 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
349 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
350 |
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:349:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
347 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
348 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
349 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
350 |
351 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:358:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
356 | public func write(_ value: Int64) throws {
357 | var buff = Data()
358 | buff.append(Data(bytes: [UInt8(0xff & (value >> 56))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
359 | buff.append(Data(bytes: [UInt8(0xff & (value >> 48))]))
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:359:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
357 | var buff = Data()
358 | buff.append(Data(bytes: [UInt8(0xff & (value >> 56))]))
359 | buff.append(Data(bytes: [UInt8(0xff & (value >> 48))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:360:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
358 | buff.append(Data(bytes: [UInt8(0xff & (value >> 56))]))
359 | buff.append(Data(bytes: [UInt8(0xff & (value >> 48))]))
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:361:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
359 | buff.append(Data(bytes: [UInt8(0xff & (value >> 48))]))
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:362:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
364 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:363:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
364 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
365 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:364:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
364 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
365 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
366 |
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:365:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
364 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
365 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
366 |
367 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
/Users/admin/builder/spi-builder-workspace/Sources/TCompactProtocol.swift:70:16: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
68 |
69 | func writebyteDirect(_ byte: UInt8) throws {
70 | let byte = Data(bytes: [byte])
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
71 | try ProtocolTransportTry(error: TProtocolError(message: "Transport Write Failed")) {
72 | try self.transport.write(data: byte)
/Users/admin/builder/spi-builder-workspace/Sources/TCompactProtocol.swift:93:38: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
91 |
92 | try ProtocolTransportTry(error: TProtocolError(message: "Transport Write Failed")) {
93 | try self.transport.write(data: Data(bytes: i32buf[0..<idx]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/TCompactProtocol.swift:114:38: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
112 |
113 | try ProtocolTransportTry(error: TProtocolError(message: "Transport Write Failed")) {
114 | try self.transport.write(data: Data(bytes: varint64out[0..<idx]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
115 | }
116 |
/Users/admin/builder/spi-builder-workspace/Sources/TCompactProtocol.swift:378:28: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
376 | }
377 |
378 | let i64: UInt64 = buff.withUnsafeBytes { (ptr: UnsafePointer<UInt8>) -> UInt64 in
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
379 | return UnsafePointer<UInt64>(OpaquePointer(ptr)).pointee
380 | }
[26/36] Compiling Thrift TCompactProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:33:21: warning: static property 'strictRead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | // class level properties for setting global config (useful for server in lieu of Factory design)
33 | public static var strictRead: Bool = false
| |- warning: static property 'strictRead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strictRead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strictRead' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | public static var strictWrite: Bool = true
35 |
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:34:21: warning: static property 'strictWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | // class level properties for setting global config (useful for server in lieu of Factory design)
33 | public static var strictRead: Bool = false
34 | public static var strictWrite: Bool = true
| |- warning: static property 'strictWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strictWrite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strictWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | private var strictRead: Bool
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:328:16: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
326 |
327 | public func write(_ value: UInt8) throws {
328 | let buff = Data(bytes: [value])
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
329 |
330 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:337:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
335 | public func write(_ value: Int16) throws {
336 | var buff = Data()
337 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
338 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
339 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:338:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
336 | var buff = Data()
337 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
338 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
339 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
340 | try self.transport.write(data: buff)
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:346:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
344 | public func write(_ value: Int32) throws {
345 | var buff = Data()
346 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
347 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
348 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:347:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
345 | var buff = Data()
346 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
347 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
348 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
349 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:348:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
346 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
347 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
348 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
349 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
350 |
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:349:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
347 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
348 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
349 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
350 |
351 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:358:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
356 | public func write(_ value: Int64) throws {
357 | var buff = Data()
358 | buff.append(Data(bytes: [UInt8(0xff & (value >> 56))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
359 | buff.append(Data(bytes: [UInt8(0xff & (value >> 48))]))
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:359:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
357 | var buff = Data()
358 | buff.append(Data(bytes: [UInt8(0xff & (value >> 56))]))
359 | buff.append(Data(bytes: [UInt8(0xff & (value >> 48))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:360:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
358 | buff.append(Data(bytes: [UInt8(0xff & (value >> 56))]))
359 | buff.append(Data(bytes: [UInt8(0xff & (value >> 48))]))
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:361:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
359 | buff.append(Data(bytes: [UInt8(0xff & (value >> 48))]))
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:362:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
364 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:363:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
364 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
365 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:364:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
364 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
365 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
366 |
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:365:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
364 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
365 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
366 |
367 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
/Users/admin/builder/spi-builder-workspace/Sources/TCompactProtocol.swift:70:16: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
68 |
69 | func writebyteDirect(_ byte: UInt8) throws {
70 | let byte = Data(bytes: [byte])
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
71 | try ProtocolTransportTry(error: TProtocolError(message: "Transport Write Failed")) {
72 | try self.transport.write(data: byte)
/Users/admin/builder/spi-builder-workspace/Sources/TCompactProtocol.swift:93:38: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
91 |
92 | try ProtocolTransportTry(error: TProtocolError(message: "Transport Write Failed")) {
93 | try self.transport.write(data: Data(bytes: i32buf[0..<idx]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/TCompactProtocol.swift:114:38: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
112 |
113 | try ProtocolTransportTry(error: TProtocolError(message: "Transport Write Failed")) {
114 | try self.transport.write(data: Data(bytes: varint64out[0..<idx]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
115 | }
116 |
/Users/admin/builder/spi-builder-workspace/Sources/TCompactProtocol.swift:378:28: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
376 | }
377 |
378 | let i64: UInt64 = buff.withUnsafeBytes { (ptr: UnsafePointer<UInt8>) -> UInt64 in
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
379 | return UnsafePointer<UInt64>(OpaquePointer(ptr)).pointee
380 | }
[27/36] Compiling Thrift TEnum.swift
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:33:21: warning: static property 'strictRead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | // class level properties for setting global config (useful for server in lieu of Factory design)
33 | public static var strictRead: Bool = false
| |- warning: static property 'strictRead' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strictRead' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strictRead' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | public static var strictWrite: Bool = true
35 |
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:34:21: warning: static property 'strictWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | // class level properties for setting global config (useful for server in lieu of Factory design)
33 | public static var strictRead: Bool = false
34 | public static var strictWrite: Bool = true
| |- warning: static property 'strictWrite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'strictWrite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'strictWrite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | private var strictRead: Bool
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:328:16: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
326 |
327 | public func write(_ value: UInt8) throws {
328 | let buff = Data(bytes: [value])
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
329 |
330 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:337:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
335 | public func write(_ value: Int16) throws {
336 | var buff = Data()
337 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
338 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
339 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:338:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
336 | var buff = Data()
337 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
338 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
339 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
340 | try self.transport.write(data: buff)
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:346:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
344 | public func write(_ value: Int32) throws {
345 | var buff = Data()
346 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
347 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
348 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:347:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
345 | var buff = Data()
346 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
347 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
348 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
349 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:348:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
346 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
347 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
348 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
349 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
350 |
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:349:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
347 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
348 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
349 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
350 |
351 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:358:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
356 | public func write(_ value: Int64) throws {
357 | var buff = Data()
358 | buff.append(Data(bytes: [UInt8(0xff & (value >> 56))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
359 | buff.append(Data(bytes: [UInt8(0xff & (value >> 48))]))
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:359:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
357 | var buff = Data()
358 | buff.append(Data(bytes: [UInt8(0xff & (value >> 56))]))
359 | buff.append(Data(bytes: [UInt8(0xff & (value >> 48))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:360:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
358 | buff.append(Data(bytes: [UInt8(0xff & (value >> 56))]))
359 | buff.append(Data(bytes: [UInt8(0xff & (value >> 48))]))
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:361:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
359 | buff.append(Data(bytes: [UInt8(0xff & (value >> 48))]))
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:362:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
360 | buff.append(Data(bytes: [UInt8(0xff & (value >> 40))]))
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
364 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:363:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
361 | buff.append(Data(bytes: [UInt8(0xff & (value >> 32))]))
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
364 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
365 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:364:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
362 | buff.append(Data(bytes: [UInt8(0xff & (value >> 24))]))
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
364 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
365 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
366 |
/Users/admin/builder/spi-builder-workspace/Sources/TBinaryProtocol.swift:365:17: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
363 | buff.append(Data(bytes: [UInt8(0xff & (value >> 16))]))
364 | buff.append(Data(bytes: [UInt8(0xff & (value >> 8))]))
365 | buff.append(Data(bytes: [UInt8(0xff & (value))]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
366 |
367 | try ProtocolTransportTry(error: TProtocolError(message: "Transport write failed")) {
/Users/admin/builder/spi-builder-workspace/Sources/TCompactProtocol.swift:70:16: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
68 |
69 | func writebyteDirect(_ byte: UInt8) throws {
70 | let byte = Data(bytes: [byte])
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
71 | try ProtocolTransportTry(error: TProtocolError(message: "Transport Write Failed")) {
72 | try self.transport.write(data: byte)
/Users/admin/builder/spi-builder-workspace/Sources/TCompactProtocol.swift:93:38: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
91 |
92 | try ProtocolTransportTry(error: TProtocolError(message: "Transport Write Failed")) {
93 | try self.transport.write(data: Data(bytes: i32buf[0..<idx]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/TCompactProtocol.swift:114:38: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
112 |
113 | try ProtocolTransportTry(error: TProtocolError(message: "Transport Write Failed")) {
114 | try self.transport.write(data: Data(bytes: varint64out[0..<idx]))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
115 | }
116 |
/Users/admin/builder/spi-builder-workspace/Sources/TCompactProtocol.swift:378:28: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
376 | }
377 |
378 | let i64: UInt64 = buff.withUnsafeBytes { (ptr: UnsafePointer<UInt8>) -> UInt64 in
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
379 | return UnsafePointer<UInt64>(OpaquePointer(ptr)).pointee
380 | }
[28/36] Compiling Thrift TProcessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:102:3: warning: 'public' modifier is redundant for instance method declared in a public extension
100 |
101 | public extension TProtocol {
102 | public func writeFieldValue(_ value: TSerializable, name: String, type: TType, id: Int32) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
103 | try writeFieldBegin(name: name, type: type, fieldID: id)
104 | try value.write(to: self)
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:108:3: warning: 'public' modifier is redundant for instance method declared in a public extension
106 | }
107 |
108 | public func validateValue(_ value: Any?, named name: String) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
109 | if value == nil {
110 | throw TProtocolError(error: .unknown, message: "Missing required value for field: \(name)")
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:114:3: warning: 'public' modifier is redundant for instance method declared in a public extension
112 | }
113 |
114 | public func readResultMessageBegin() throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
115 | let (_, type, _) = try readMessageBegin();
116 | if type == .exception {
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:123:3: warning: 'public' modifier is redundant for instance method declared in a public extension
121 | }
122 |
123 | public func readException() throws -> TApplicationError {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
124 | return try TApplicationError.read(from: self)
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:127:3: warning: 'public' modifier is redundant for instance method declared in a public extension
125 | }
126 |
127 | public func writeException(messageName name: String, sequenceID: Int32, ex: TApplicationError) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
128 | try writeMessageBegin(name: name, type: .exception, sequenceID: sequenceID)
129 | try ex.write(to: self)
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:133:3: warning: 'public' modifier is redundant for instance method declared in a public extension
131 | }
132 |
133 | public func skip(type: TType) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
134 | switch type {
135 | case .bool: _ = try read() as Bool
/Users/admin/builder/spi-builder-workspace/Sources/TProtocolError.swift:84:14: warning: stored property 'extendedError' of 'Sendable'-conforming struct 'TProtocolError' has non-sendable type 'TProtocolError.ExtendedErrorCode?'; this is an error in the Swift 6 language mode
59 | }
60 |
61 | public enum ExtendedErrorCode : TErrorCode {
| `- note: consider making enum 'ExtendedErrorCode' conform to the 'Sendable' protocol
62 | case unknown
63 | case missingRequiredField(fieldName: String)
:
82 | }
83 |
84 | public var extendedError: ExtendedErrorCode? = nil
| `- warning: stored property 'extendedError' of 'Sendable'-conforming struct 'TProtocolError' has non-sendable type 'TProtocolError.ExtendedErrorCode?'; this is an error in the Swift 6 language mode
85 |
86 | public init(error: Code = .unknown,
/Users/admin/builder/spi-builder-workspace/Sources/TProtocolError.swift:95:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TProtocolError' has non-sendable type 'TProtocolError.Code'; this is an error in the Swift 6 language mode
23 | public init() { }
24 |
25 | public enum Code : TErrorCode {
| `- note: consider making enum 'Code' conform to the 'Sendable' protocol
26 | case unknown
27 | case invalidData
:
93 |
94 | /// Mark: TError
95 | public var error: Code = .unknown
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TProtocolError' has non-sendable type 'TProtocolError.Code'; this is an error in the Swift 6 language mode
96 | public var message: String? = nil
97 | public static var defaultCase: Code { return .unknown }
[29/36] Compiling Thrift TProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:102:3: warning: 'public' modifier is redundant for instance method declared in a public extension
100 |
101 | public extension TProtocol {
102 | public func writeFieldValue(_ value: TSerializable, name: String, type: TType, id: Int32) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
103 | try writeFieldBegin(name: name, type: type, fieldID: id)
104 | try value.write(to: self)
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:108:3: warning: 'public' modifier is redundant for instance method declared in a public extension
106 | }
107 |
108 | public func validateValue(_ value: Any?, named name: String) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
109 | if value == nil {
110 | throw TProtocolError(error: .unknown, message: "Missing required value for field: \(name)")
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:114:3: warning: 'public' modifier is redundant for instance method declared in a public extension
112 | }
113 |
114 | public func readResultMessageBegin() throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
115 | let (_, type, _) = try readMessageBegin();
116 | if type == .exception {
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:123:3: warning: 'public' modifier is redundant for instance method declared in a public extension
121 | }
122 |
123 | public func readException() throws -> TApplicationError {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
124 | return try TApplicationError.read(from: self)
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:127:3: warning: 'public' modifier is redundant for instance method declared in a public extension
125 | }
126 |
127 | public func writeException(messageName name: String, sequenceID: Int32, ex: TApplicationError) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
128 | try writeMessageBegin(name: name, type: .exception, sequenceID: sequenceID)
129 | try ex.write(to: self)
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:133:3: warning: 'public' modifier is redundant for instance method declared in a public extension
131 | }
132 |
133 | public func skip(type: TType) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
134 | switch type {
135 | case .bool: _ = try read() as Bool
/Users/admin/builder/spi-builder-workspace/Sources/TProtocolError.swift:84:14: warning: stored property 'extendedError' of 'Sendable'-conforming struct 'TProtocolError' has non-sendable type 'TProtocolError.ExtendedErrorCode?'; this is an error in the Swift 6 language mode
59 | }
60 |
61 | public enum ExtendedErrorCode : TErrorCode {
| `- note: consider making enum 'ExtendedErrorCode' conform to the 'Sendable' protocol
62 | case unknown
63 | case missingRequiredField(fieldName: String)
:
82 | }
83 |
84 | public var extendedError: ExtendedErrorCode? = nil
| `- warning: stored property 'extendedError' of 'Sendable'-conforming struct 'TProtocolError' has non-sendable type 'TProtocolError.ExtendedErrorCode?'; this is an error in the Swift 6 language mode
85 |
86 | public init(error: Code = .unknown,
/Users/admin/builder/spi-builder-workspace/Sources/TProtocolError.swift:95:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TProtocolError' has non-sendable type 'TProtocolError.Code'; this is an error in the Swift 6 language mode
23 | public init() { }
24 |
25 | public enum Code : TErrorCode {
| `- note: consider making enum 'Code' conform to the 'Sendable' protocol
26 | case unknown
27 | case invalidData
:
93 |
94 | /// Mark: TError
95 | public var error: Code = .unknown
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TProtocolError' has non-sendable type 'TProtocolError.Code'; this is an error in the Swift 6 language mode
96 | public var message: String? = nil
97 | public static var defaultCase: Code { return .unknown }
[30/36] Compiling Thrift TProtocolError.swift
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:102:3: warning: 'public' modifier is redundant for instance method declared in a public extension
100 |
101 | public extension TProtocol {
102 | public func writeFieldValue(_ value: TSerializable, name: String, type: TType, id: Int32) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
103 | try writeFieldBegin(name: name, type: type, fieldID: id)
104 | try value.write(to: self)
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:108:3: warning: 'public' modifier is redundant for instance method declared in a public extension
106 | }
107 |
108 | public func validateValue(_ value: Any?, named name: String) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
109 | if value == nil {
110 | throw TProtocolError(error: .unknown, message: "Missing required value for field: \(name)")
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:114:3: warning: 'public' modifier is redundant for instance method declared in a public extension
112 | }
113 |
114 | public func readResultMessageBegin() throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
115 | let (_, type, _) = try readMessageBegin();
116 | if type == .exception {
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:123:3: warning: 'public' modifier is redundant for instance method declared in a public extension
121 | }
122 |
123 | public func readException() throws -> TApplicationError {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
124 | return try TApplicationError.read(from: self)
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:127:3: warning: 'public' modifier is redundant for instance method declared in a public extension
125 | }
126 |
127 | public func writeException(messageName name: String, sequenceID: Int32, ex: TApplicationError) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
128 | try writeMessageBegin(name: name, type: .exception, sequenceID: sequenceID)
129 | try ex.write(to: self)
/Users/admin/builder/spi-builder-workspace/Sources/TProtocol.swift:133:3: warning: 'public' modifier is redundant for instance method declared in a public extension
131 | }
132 |
133 | public func skip(type: TType) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
134 | switch type {
135 | case .bool: _ = try read() as Bool
/Users/admin/builder/spi-builder-workspace/Sources/TProtocolError.swift:84:14: warning: stored property 'extendedError' of 'Sendable'-conforming struct 'TProtocolError' has non-sendable type 'TProtocolError.ExtendedErrorCode?'; this is an error in the Swift 6 language mode
59 | }
60 |
61 | public enum ExtendedErrorCode : TErrorCode {
| `- note: consider making enum 'ExtendedErrorCode' conform to the 'Sendable' protocol
62 | case unknown
63 | case missingRequiredField(fieldName: String)
:
82 | }
83 |
84 | public var extendedError: ExtendedErrorCode? = nil
| `- warning: stored property 'extendedError' of 'Sendable'-conforming struct 'TProtocolError' has non-sendable type 'TProtocolError.ExtendedErrorCode?'; this is an error in the Swift 6 language mode
85 |
86 | public init(error: Code = .unknown,
/Users/admin/builder/spi-builder-workspace/Sources/TProtocolError.swift:95:14: warning: stored property 'error' of 'Sendable'-conforming struct 'TProtocolError' has non-sendable type 'TProtocolError.Code'; this is an error in the Swift 6 language mode
23 | public init() { }
24 |
25 | public enum Code : TErrorCode {
| `- note: consider making enum 'Code' conform to the 'Sendable' protocol
26 | case unknown
27 | case invalidData
:
93 |
94 | /// Mark: TError
95 | public var error: Code = .unknown
| `- warning: stored property 'error' of 'Sendable'-conforming struct 'TProtocolError' has non-sendable type 'TProtocolError.Code'; this is an error in the Swift 6 language mode
96 | public var message: String? = nil
97 | public static var defaultCase: Code { return .unknown }
[31/36] Compiling Thrift TMap.swift
/Users/admin/builder/spi-builder-workspace/Sources/TMap.swift:119:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TMap' to 'Hashable' by implementing 'hash(into:)' instead
117 | /// Mark: Hashable
118 |
119 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TMap' to 'Hashable' by implementing 'hash(into:)' instead
120 | let prime = 31
121 | var result = 1
[32/36] Compiling Thrift TMemoryBufferTransport.swift
/Users/admin/builder/spi-builder-workspace/Sources/TMap.swift:119:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TMap' to 'Hashable' by implementing 'hash(into:)' instead
117 | /// Mark: Hashable
118 |
119 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TMap' to 'Hashable' by implementing 'hash(into:)' instead
120 | let prime = 31
121 | var result = 1
[33/36] Compiling Thrift TMultiplexedProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/TMap.swift:119:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TMap' to 'Hashable' by implementing 'hash(into:)' instead
117 | /// Mark: Hashable
118 |
119 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TMap' to 'Hashable' by implementing 'hash(into:)' instead
120 | let prime = 31
121 | var result = 1
[34/36] Compiling Thrift TStreamTransport.swift
/Users/admin/builder/spi-builder-workspace/Sources/TStreamTransport.swift:67:21: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
65 | throw TTransportError(error: .notOpen)
66 | }
67 | read.append(Data(bytes: buffer))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
68 | }
69 | return read
/Users/admin/builder/spi-builder-workspace/Sources/TStreamTransport.swift:88:21: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
86 | }
87 |
88 | read.append(Data(bytes: buffer))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
89 | }
90 | return read
/Users/admin/builder/spi-builder-workspace/Sources/TStreamTransport.swift:100:29: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
98 | var bytesWritten = 0
99 | while bytesWritten < data.count {
100 | bytesWritten = data.withUnsafeBytes {
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
101 | return output.write($0, maxLength: data.count)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/TStruct.swift:32:3: warning: 'public' modifier is redundant for static property declared in a public extension
30 |
31 | public extension TStruct {
32 | public static var fieldIds: [String: (id: Int32, type: TType)] { return [:] }
| `- warning: 'public' modifier is redundant for static property declared in a public extension
33 | public static var thriftType: TType { return .struct }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/TStruct.swift:33:3: warning: 'public' modifier is redundant for static property declared in a public extension
31 | public extension TStruct {
32 | public static var fieldIds: [String: (id: Int32, type: TType)] { return [:] }
33 | public static var thriftType: TType { return .struct }
| `- warning: 'public' modifier is redundant for static property declared in a public extension
34 |
35 | public func write(to proto: TProtocol) throws {
/Users/admin/builder/spi-builder-workspace/Sources/TStruct.swift:35:3: warning: 'public' modifier is redundant for instance method declared in a public extension
33 | public static var thriftType: TType { return .struct }
34 |
35 | public func write(to proto: TProtocol) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
36 | // Write struct name first
37 | try proto.writeStructBegin(name: Self.structName)
/Users/admin/builder/spi-builder-workspace/Sources/TStruct.swift:48:3: warning: 'public' modifier is redundant for property declared in a public extension
46 | }
47 |
48 | public var hashValue: Int {
| `- warning: 'public' modifier is redundant for property declared in a public extension
49 | let prime = 31
50 | var result = 1
[35/36] Compiling Thrift TStruct.swift
/Users/admin/builder/spi-builder-workspace/Sources/TStreamTransport.swift:67:21: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
65 | throw TTransportError(error: .notOpen)
66 | }
67 | read.append(Data(bytes: buffer))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
68 | }
69 | return read
/Users/admin/builder/spi-builder-workspace/Sources/TStreamTransport.swift:88:21: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
86 | }
87 |
88 | read.append(Data(bytes: buffer))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
89 | }
90 | return read
/Users/admin/builder/spi-builder-workspace/Sources/TStreamTransport.swift:100:29: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
98 | var bytesWritten = 0
99 | while bytesWritten < data.count {
100 | bytesWritten = data.withUnsafeBytes {
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
101 | return output.write($0, maxLength: data.count)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/TStruct.swift:32:3: warning: 'public' modifier is redundant for static property declared in a public extension
30 |
31 | public extension TStruct {
32 | public static var fieldIds: [String: (id: Int32, type: TType)] { return [:] }
| `- warning: 'public' modifier is redundant for static property declared in a public extension
33 | public static var thriftType: TType { return .struct }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/TStruct.swift:33:3: warning: 'public' modifier is redundant for static property declared in a public extension
31 | public extension TStruct {
32 | public static var fieldIds: [String: (id: Int32, type: TType)] { return [:] }
33 | public static var thriftType: TType { return .struct }
| `- warning: 'public' modifier is redundant for static property declared in a public extension
34 |
35 | public func write(to proto: TProtocol) throws {
/Users/admin/builder/spi-builder-workspace/Sources/TStruct.swift:35:3: warning: 'public' modifier is redundant for instance method declared in a public extension
33 | public static var thriftType: TType { return .struct }
34 |
35 | public func write(to proto: TProtocol) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
36 | // Write struct name first
37 | try proto.writeStructBegin(name: Self.structName)
/Users/admin/builder/spi-builder-workspace/Sources/TStruct.swift:48:3: warning: 'public' modifier is redundant for property declared in a public extension
46 | }
47 |
48 | public var hashValue: Int {
| `- warning: 'public' modifier is redundant for property declared in a public extension
49 | let prime = 31
50 | var result = 1
[36/36] Compiling Thrift TTransport.swift
/Users/admin/builder/spi-builder-workspace/Sources/TStreamTransport.swift:67:21: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
65 | throw TTransportError(error: .notOpen)
66 | }
67 | read.append(Data(bytes: buffer))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
68 | }
69 | return read
/Users/admin/builder/spi-builder-workspace/Sources/TStreamTransport.swift:88:21: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
86 | }
87 |
88 | read.append(Data(bytes: buffer))
| `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
89 | }
90 | return read
/Users/admin/builder/spi-builder-workspace/Sources/TStreamTransport.swift:100:29: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
98 | var bytesWritten = 0
99 | while bytesWritten < data.count {
100 | bytesWritten = data.withUnsafeBytes {
| `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
101 | return output.write($0, maxLength: data.count)
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/TStruct.swift:32:3: warning: 'public' modifier is redundant for static property declared in a public extension
30 |
31 | public extension TStruct {
32 | public static var fieldIds: [String: (id: Int32, type: TType)] { return [:] }
| `- warning: 'public' modifier is redundant for static property declared in a public extension
33 | public static var thriftType: TType { return .struct }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/TStruct.swift:33:3: warning: 'public' modifier is redundant for static property declared in a public extension
31 | public extension TStruct {
32 | public static var fieldIds: [String: (id: Int32, type: TType)] { return [:] }
33 | public static var thriftType: TType { return .struct }
| `- warning: 'public' modifier is redundant for static property declared in a public extension
34 |
35 | public func write(to proto: TProtocol) throws {
/Users/admin/builder/spi-builder-workspace/Sources/TStruct.swift:35:3: warning: 'public' modifier is redundant for instance method declared in a public extension
33 | public static var thriftType: TType { return .struct }
34 |
35 | public func write(to proto: TProtocol) throws {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
36 | // Write struct name first
37 | try proto.writeStructBegin(name: Self.structName)
/Users/admin/builder/spi-builder-workspace/Sources/TStruct.swift:48:3: warning: 'public' modifier is redundant for property declared in a public extension
46 | }
47 |
48 | public var hashValue: Int {
| `- warning: 'public' modifier is redundant for property declared in a public extension
49 | let prime = 31
50 | var result = 1
Build complete! (18.05s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Thrift",
"name" : "Thrift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Thrift",
"targets" : [
"Thrift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ThriftTests",
"module_type" : "SwiftTarget",
"name" : "ThriftTests",
"path" : "Tests/ThriftTests",
"sources" : [
"TBinaryProtocolTests.swift",
"TCompactProtocolTests.swift",
"TJSONProtocolTests.swift",
"ThriftTests.swift"
],
"target_dependencies" : [
"Thrift"
],
"type" : "test"
},
{
"c99name" : "Thrift",
"module_type" : "SwiftTarget",
"name" : "Thrift",
"path" : "Sources",
"product_memberships" : [
"Thrift"
],
"sources" : [
"LinuxHelper.swift",
"TApplicationError.swift",
"TBase64Utils.swift",
"TBinary.swift",
"TBinaryProtocol.swift",
"TClient.swift",
"TCompactProtocol.swift",
"TEnum.swift",
"TError.swift",
"TFileHandleTransport.swift",
"TFileTransport.swift",
"TFramedTransport.swift",
"THTTPSessionTransport.swift",
"TJSONProtocol.swift",
"TList.swift",
"TMap.swift",
"TMemoryBufferTransport.swift",
"TMultiplexedProtocol.swift",
"TProcessor.swift",
"TProtocol.swift",
"TProtocolError.swift",
"TSSLSocketTransport.swift",
"TSSLSocketTransportError.swift",
"TSerializable.swift",
"TSet.swift",
"TSocketServer.swift",
"TSocketTransport.swift",
"TStreamTransport.swift",
"TStruct.swift",
"TTransport.swift",
"TTransportError.swift",
"TWrappedProtocol.swift",
"Thrift.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.