Build Information
Successful build of HttpSwift, reference 2.2.1 (2e0cd4
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 03:50:19 UTC.
Swift 6 data race errors: 4
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/BiAtoms/Http.swift.git
Reference: 2.2.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/BiAtoms/Http.swift
* tag 2.2.1 -> FETCH_HEAD
HEAD is now at 2e0cd4c Bump version
Submodule path 'Sources/Frameworks/RequestSwift': checked out '47cea3de9cb961f77c659a27894d32454b42e25f'
Submodule path 'Sources/Frameworks/RequestSwift/Sources/Frameworks/SocketSwift': checked out '36911c13adfe12859ed43dcba878052b1897fcd3'
Submodule path 'Sources/Frameworks/SocketSwift': checked out '36911c13adfe12859ed43dcba878052b1897fcd3'
Submodule 'Sources/Frameworks/RequestSwift' (https://github.com/BiAtoms/Request.swift) registered for path 'Sources/Frameworks/RequestSwift'
Submodule 'Sources/Frameworks/SocketSwift' (https://github.com/BiAtoms/Socket.swift) registered for path 'Sources/Frameworks/SocketSwift'
Cloning into '/Users/admin/builder/spi-builder-workspace/Sources/Frameworks/RequestSwift'...
Cloning into '/Users/admin/builder/spi-builder-workspace/Sources/Frameworks/SocketSwift'...
Submodule 'Sources/Frameworks/SocketSwift' (https://github.com/BiAtoms/Socket.swift) registered for path 'Sources/Frameworks/RequestSwift/Sources/Frameworks/SocketSwift'
Cloning into '/Users/admin/builder/spi-builder-workspace/Sources/Frameworks/RequestSwift/Sources/Frameworks/SocketSwift'...
Cloned https://github.com/BiAtoms/Http.swift.git
Revision (git rev-parse @):
2e0cd4c94ffc1aec04dc355feca92b32b827dd74
SUCCESS checkout https://github.com/BiAtoms/Http.swift.git at 2.2.1
Fetching https://github.com/BiAtoms/Request.swift.git
Fetching https://github.com/BiAtoms/Socket.swift.git
[1/299] Fetching request.swift
[292/723] Fetching request.swift, socket.swift
Fetched https://github.com/BiAtoms/Request.swift.git from cache (0.80s)
Fetched https://github.com/BiAtoms/Socket.swift.git from cache (0.80s)
Computing version for https://github.com/BiAtoms/Request.swift.git
Computed https://github.com/BiAtoms/Request.swift.git at 2.3.0 (0.65s)
Computing version for https://github.com/BiAtoms/Socket.swift.git
Computed https://github.com/BiAtoms/Socket.swift.git at 2.4.0 (0.63s)
Creating working copy for https://github.com/BiAtoms/Socket.swift.git
Working copy of https://github.com/BiAtoms/Socket.swift.git resolved at 2.4.0
Creating working copy for https://github.com/BiAtoms/Request.swift.git
Working copy of https://github.com/BiAtoms/Request.swift.git resolved at 2.3.0
========================================
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": "http.swift",
"name": "HttpSwift",
"url": "https://github.com/BiAtoms/Http.swift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Http.swift",
"dependencies": [
{
"identity": "socket.swift",
"name": "SocketSwift",
"url": "https://github.com/BiAtoms/Socket.swift.git",
"version": "2.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Socket.swift",
"dependencies": [
]
},
{
"identity": "request.swift",
"name": "RequestSwift",
"url": "https://github.com/BiAtoms/Request.swift.git",
"version": "2.3.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Request.swift",
"dependencies": [
{
"identity": "socket.swift",
"name": "SocketSwift",
"url": "https://github.com/BiAtoms/Socket.swift.git",
"version": "2.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Socket.swift",
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/BiAtoms/Http.swift.git
[4/395] Fetching http.swift
Fetched https://github.com/BiAtoms/Http.swift.git from cache (0.77s)
Fetching https://github.com/BiAtoms/Request.swift.git from cache
Fetching https://github.com/BiAtoms/Socket.swift.git from cache
Fetched https://github.com/BiAtoms/Socket.swift.git from cache (0.48s)
Fetched https://github.com/BiAtoms/Request.swift.git from cache (0.48s)
Computing version for https://github.com/BiAtoms/Request.swift.git
Computed https://github.com/BiAtoms/Request.swift.git at 2.3.0 (0.02s)
Computing version for https://github.com/BiAtoms/Socket.swift.git
Computed https://github.com/BiAtoms/Socket.swift.git at 2.4.0 (0.02s)
Creating working copy for https://github.com/BiAtoms/Request.swift.git
Working copy of https://github.com/BiAtoms/Request.swift.git resolved at 2.3.0
Creating working copy for https://github.com/BiAtoms/Socket.swift.git
Working copy of https://github.com/BiAtoms/Socket.swift.git resolved at 2.4.0
Creating working copy for https://github.com/BiAtoms/Http.swift.git
Working copy of https://github.com/BiAtoms/Http.swift.git resolved at 2.2.1 (2e0cd4c)
warning: '.resolve-product-dependencies': dependency 'http.swift' is not used by any target
Found 2 product dependencies
- SocketSwift
- RequestSwift
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/BiAtoms/Http.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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/12] Emitting module SocketSwift
[5/12] Compiling SocketSwift Protocol.swift
[6/12] Compiling SocketSwift Error.swift
[7/12] Compiling SocketSwift Family.swift
[8/12] Compiling SocketSwift OS.swift
[9/12] Compiling SocketSwift Option.swift
[10/12] Compiling SocketSwift TLS.swift
[11/12] Compiling SocketSwift Socket.swift
[12/12] Compiling SocketSwift Type.swift
[13/27] Compiling HttpSwift StaticServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:34:27: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Status {
| `- note: consider making struct 'Status' conform to the 'Sendable' protocol
23 | let code: Int
24 | let reason : String
:
32 | }
33 |
34 | public static let ok = Status(200, "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' 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 | public static let internalServerError = Status(500, "Internal Server Error")
36 | public static let httpVersionNotSupported = Status(505, "HTTP Version Not Supported")
[14/27] Compiling HttpSwift Server+Methods.swift
[15/27] Compiling HttpSwift Server.swift
/Users/admin/builder/spi-builder-workspace/Sources/Server.swift:43:32: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
13 |
14 | public typealias MiddlewareHandler = (_ request: Request, _ closure: RouteHandler) throws -> Response
15 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
16 | public let queue = DispatchQueue(label: "com.biatoms.server-swift." + UUID().uuidString)
17 | open var router = Router()
:
41 | socket = try Socket.tcpListening(port: port, address: address)
42 | queue.async { [weak self] in
43 | guard let `self` = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | while let client = try? self.socket.accept() {
45 | self.handleConnection(client)
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:35:27: warning: static property 'internalServerError' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Status {
| `- note: consider making struct 'Status' conform to the 'Sendable' protocol
23 | let code: Int
24 | let reason : String
:
33 |
34 | public static let ok = Status(200, "OK")
35 | public static let internalServerError = Status(500, "Internal Server Error")
| |- warning: static property 'internalServerError' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'internalServerError' 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
36 | public static let httpVersionNotSupported = Status(505, "HTTP Version Not Supported")
37 | public static let notFound = Status(404, "Not Found")
[16/27] Compiling HttpSwift ServerError.swift
/Users/admin/builder/spi-builder-workspace/Sources/ServerError.swift:17:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
15 |
16 | extension Socket {
17 | open func readLine() throws -> String {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
18 | var line: String = "" //yep it is StringBuilder
19 | let CR = Byte(13), LF = Byte(10)
[17/28] Compiling HttpSwift Request.swift
[18/28] Compiling HttpSwift RequestParser.swift
[19/28] Compiling HttpSwift Helper.swift
[20/28] Compiling HttpSwift Regex.swift
[21/28] Compiling HttpSwift Response.swift
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:34:27: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Status {
| `- note: consider making struct 'Status' conform to the 'Sendable' protocol
23 | let code: Int
24 | let reason : String
:
32 | }
33 |
34 | public static let ok = Status(200, "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' 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 | public static let internalServerError = Status(500, "Internal Server Error")
36 | public static let httpVersionNotSupported = Status(505, "HTTP Version Not Supported")
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:35:27: warning: static property 'internalServerError' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Status {
| `- note: consider making struct 'Status' conform to the 'Sendable' protocol
23 | let code: Int
24 | let reason : String
:
33 |
34 | public static let ok = Status(200, "OK")
35 | public static let internalServerError = Status(500, "Internal Server Error")
| |- warning: static property 'internalServerError' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'internalServerError' 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
36 | public static let httpVersionNotSupported = Status(505, "HTTP Version Not Supported")
37 | public static let notFound = Status(404, "Not Found")
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:36:27: warning: static property 'httpVersionNotSupported' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Status {
| `- note: consider making struct 'Status' conform to the 'Sendable' protocol
23 | let code: Int
24 | let reason : String
:
34 | public static let ok = Status(200, "OK")
35 | public static let internalServerError = Status(500, "Internal Server Error")
36 | public static let httpVersionNotSupported = Status(505, "HTTP Version Not Supported")
| |- warning: static property 'httpVersionNotSupported' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'httpVersionNotSupported' 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
37 | public static let notFound = Status(404, "Not Found")
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:37:27: warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Status {
| `- note: consider making struct 'Status' conform to the 'Sendable' protocol
23 | let code: Int
24 | let reason : String
:
35 | public static let internalServerError = Status(500, "Internal Server Error")
36 | public static let httpVersionNotSupported = Status(505, "HTTP Version Not Supported")
37 | public static let notFound = Status(404, "Not Found")
| |- warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notFound' 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
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:54:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
52 | }
53 |
54 | open class func ok(_ body: String, headers: HeaderDictionary = [:]) -> Self {
| `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
55 | return self.init(.ok, body: body.bytes, headers: headers)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:58:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
56 | }
57 |
58 | open class func json(_ object: Any, status: Response.Status = .ok, options: JSONSerialization.WritingOptions = .prettyPrinted) -> Response {
| `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
59 | var response = Response.ok("Could not serialize into json")
60 | if JSONSerialization.isValidJSONObject(object) {
[22/28] Compiling HttpSwift ResponseWriter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:34:27: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Status {
| `- note: consider making struct 'Status' conform to the 'Sendable' protocol
23 | let code: Int
24 | let reason : String
:
32 | }
33 |
34 | public static let ok = Status(200, "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' 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 | public static let internalServerError = Status(500, "Internal Server Error")
36 | public static let httpVersionNotSupported = Status(505, "HTTP Version Not Supported")
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:35:27: warning: static property 'internalServerError' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Status {
| `- note: consider making struct 'Status' conform to the 'Sendable' protocol
23 | let code: Int
24 | let reason : String
:
33 |
34 | public static let ok = Status(200, "OK")
35 | public static let internalServerError = Status(500, "Internal Server Error")
| |- warning: static property 'internalServerError' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'internalServerError' 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
36 | public static let httpVersionNotSupported = Status(505, "HTTP Version Not Supported")
37 | public static let notFound = Status(404, "Not Found")
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:36:27: warning: static property 'httpVersionNotSupported' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Status {
| `- note: consider making struct 'Status' conform to the 'Sendable' protocol
23 | let code: Int
24 | let reason : String
:
34 | public static let ok = Status(200, "OK")
35 | public static let internalServerError = Status(500, "Internal Server Error")
36 | public static let httpVersionNotSupported = Status(505, "HTTP Version Not Supported")
| |- warning: static property 'httpVersionNotSupported' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'httpVersionNotSupported' 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
37 | public static let notFound = Status(404, "Not Found")
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:37:27: warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Status {
| `- note: consider making struct 'Status' conform to the 'Sendable' protocol
23 | let code: Int
24 | let reason : String
:
35 | public static let internalServerError = Status(500, "Internal Server Error")
36 | public static let httpVersionNotSupported = Status(505, "HTTP Version Not Supported")
37 | public static let notFound = Status(404, "Not Found")
| |- warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notFound' 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
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:54:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
52 | }
53 |
54 | open class func ok(_ body: String, headers: HeaderDictionary = [:]) -> Self {
| `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
55 | return self.init(.ok, body: body.bytes, headers: headers)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:58:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
56 | }
57 |
58 | open class func json(_ object: Any, status: Response.Status = .ok, options: JSONSerialization.WritingOptions = .prettyPrinted) -> Response {
| `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
59 | var response = Response.ok("Could not serialize into json")
60 | if JSONSerialization.isValidJSONObject(object) {
[23/28] Compiling HttpSwift ErrorHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:37:27: warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Status {
| `- note: consider making struct 'Status' conform to the 'Sendable' protocol
23 | let code: Int
24 | let reason : String
:
35 | public static let internalServerError = Status(500, "Internal Server Error")
36 | public static let httpVersionNotSupported = Status(505, "HTTP Version Not Supported")
37 | public static let notFound = Status(404, "Not Found")
| |- warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notFound' 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
38 | }
39 |
[24/28] Compiling HttpSwift File.swift
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:37:27: warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Status {
| `- note: consider making struct 'Status' conform to the 'Sendable' protocol
23 | let code: Int
24 | let reason : String
:
35 | public static let internalServerError = Status(500, "Internal Server Error")
36 | public static let httpVersionNotSupported = Status(505, "HTTP Version Not Supported")
37 | public static let notFound = Status(404, "Not Found")
| |- warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notFound' 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
38 | }
39 |
[25/28] Emitting module HttpSwift
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:34:27: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Status {
| `- note: consider making struct 'Status' conform to the 'Sendable' protocol
23 | let code: Int
24 | let reason : String
:
32 | }
33 |
34 | public static let ok = Status(200, "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' 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 | public static let internalServerError = Status(500, "Internal Server Error")
36 | public static let httpVersionNotSupported = Status(505, "HTTP Version Not Supported")
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:35:27: warning: static property 'internalServerError' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Status {
| `- note: consider making struct 'Status' conform to the 'Sendable' protocol
23 | let code: Int
24 | let reason : String
:
33 |
34 | public static let ok = Status(200, "OK")
35 | public static let internalServerError = Status(500, "Internal Server Error")
| |- warning: static property 'internalServerError' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'internalServerError' 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
36 | public static let httpVersionNotSupported = Status(505, "HTTP Version Not Supported")
37 | public static let notFound = Status(404, "Not Found")
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:36:27: warning: static property 'httpVersionNotSupported' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Status {
| `- note: consider making struct 'Status' conform to the 'Sendable' protocol
23 | let code: Int
24 | let reason : String
:
34 | public static let ok = Status(200, "OK")
35 | public static let internalServerError = Status(500, "Internal Server Error")
36 | public static let httpVersionNotSupported = Status(505, "HTTP Version Not Supported")
| |- warning: static property 'httpVersionNotSupported' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'httpVersionNotSupported' 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
37 | public static let notFound = Status(404, "Not Found")
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:37:27: warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Status {
| `- note: consider making struct 'Status' conform to the 'Sendable' protocol
23 | let code: Int
24 | let reason : String
:
35 | public static let internalServerError = Status(500, "Internal Server Error")
36 | public static let httpVersionNotSupported = Status(505, "HTTP Version Not Supported")
37 | public static let notFound = Status(404, "Not Found")
| |- warning: static property 'notFound' is not concurrency-safe because non-'Sendable' type 'Response.Status' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notFound' 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
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:54:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
52 | }
53 |
54 | open class func ok(_ body: String, headers: HeaderDictionary = [:]) -> Self {
| `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
55 | return self.init(.ok, body: body.bytes, headers: headers)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/Response.swift:58:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
56 | }
57 |
58 | open class func json(_ object: Any, status: Response.Status = .ok, options: JSONSerialization.WritingOptions = .prettyPrinted) -> Response {
| `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
59 | var response = Response.ok("Could not serialize into json")
60 | if JSONSerialization.isValidJSONObject(object) {
/Users/admin/builder/spi-builder-workspace/Sources/ServerError.swift:17:5: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
15 |
16 | extension Socket {
17 | open func readLine() throws -> String {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
18 | var line: String = "" //yep it is StringBuilder
19 | let CR = Byte(13), LF = Byte(10)
[26/28] Compiling HttpSwift Route.swift
[27/28] Compiling HttpSwift Router.swift
[28/28] Compiling HttpSwift Url.swift
Build complete! (17.11s)
Build complete.
{
"dependencies" : [
{
"identity" : "socket.swift",
"requirement" : {
"range" : [
{
"lower_bound" : "2.4.0",
"upper_bound" : "2.5.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/BiAtoms/Socket.swift.git"
},
{
"identity" : "request.swift",
"requirement" : {
"range" : [
{
"lower_bound" : "2.3.0",
"upper_bound" : "2.4.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/BiAtoms/Request.swift.git"
}
],
"manifest_display_name" : "HttpSwift",
"name" : "HttpSwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "HttpSwift",
"targets" : [
"HttpSwift"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HttpSwiftTests",
"module_type" : "SwiftTarget",
"name" : "HttpSwiftTests",
"path" : "Tests/HttpSwiftTests",
"product_dependencies" : [
"RequestSwift"
],
"sources" : [
"HttpSwiftTests.swift"
],
"target_dependencies" : [
"HttpSwift"
],
"type" : "test"
},
{
"c99name" : "HttpSwift",
"module_type" : "SwiftTarget",
"name" : "HttpSwift",
"path" : "Sources",
"product_dependencies" : [
"SocketSwift"
],
"product_memberships" : [
"HttpSwift"
],
"sources" : [
"ErrorHandler.swift",
"File.swift",
"Helper.swift",
"Regex.swift",
"Request.swift",
"RequestParser.swift",
"Response.swift",
"ResponseWriter.swift",
"Route.swift",
"Router.swift",
"Server+Methods.swift",
"Server.swift",
"ServerError.swift",
"StaticServer.swift",
"Url.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Done.