Build Information
Failed to build Cosmic, reference master (0c836f
), with Swift 6.1 for Linux on 27 Apr 2025 21:12:20 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jnewc/Cosmic.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/jnewc/Cosmic
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 0c836f1 Fix double formatting with composite logger
Cloned https://github.com/jnewc/Cosmic.git
Revision (git rev-parse @):
0c836f1c9935418c613c3f9913e32412ded5c782
SUCCESS checkout https://github.com/jnewc/Cosmic.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/jnewc/Cosmic.git
https://github.com/jnewc/Cosmic.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "bluesocket",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.2",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/BlueSocket"
}
],
"manifest_display_name" : "Cosmic",
"name" : "Cosmic",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Cosmic",
"targets" : [
"Cosmic"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4",
"5"
],
"targets" : [
{
"c99name" : "CosmicTests",
"module_type" : "SwiftTarget",
"name" : "CosmicTests",
"path" : "Tests/CosmicTests",
"sources" : [
"CompositeLoggerTests.swift",
"ExtensionsTests.swift",
"FormatterTests.swift",
"HTTPLoggerTests.swift",
"Helpers/Extensions.swift",
"Helpers/MockURLSession.swift",
"Helpers/RegularExpressionAsserts.swift",
"LamdaLoggerTests.swift",
"LogFilterTests.swift",
"LogItLoggerTests.swift",
"LogMetadataTests.swift",
"LogReporterTests.swift",
"LoggerTests.swift",
"OperatorsTests.swift",
"PrintLoggerTests.swift",
"ServiceLoggerTests.swift",
"SocketLoggerTests.swift",
"UniversalSocketTests.swift"
],
"target_dependencies" : [
"Cosmic"
],
"type" : "test"
},
{
"c99name" : "Cosmic",
"module_type" : "SwiftTarget",
"name" : "Cosmic",
"path" : "Sources/Cosmic",
"product_dependencies" : [
"Socket"
],
"product_memberships" : [
"Cosmic"
],
"sources" : [
"Base/LogCache.swift",
"Base/LogFilter.swift",
"Base/LogFormatter.swift",
"Base/LogLevel.swift",
"Base/LogOutputStream.swift",
"Base/LogReporter.swift",
"Base/Logger.swift",
"Formatters/CompletionFormatter.swift",
"Formatters/JSONFormatter.swift",
"Formatters/SyslogFormatter.swift",
"Loggers/CompositeLogger.swift",
"Loggers/HTTPLogger.swift",
"Loggers/LambdaLogger.swift",
"Loggers/MemoryLogger.swift",
"Loggers/PrintLogger.swift",
"Socket/Services/LogItLogger.swift",
"Socket/Services/LogglyLogger.swift",
"Socket/Services/LogzLogger.swift",
"Socket/Services/PapertrailLogger.swift",
"Socket/SocketLogger.swift",
"Utilities/Commons.swift",
"Utilities/DataUtility.swift",
"Utilities/Debug.swift",
"Utilities/Extensions.swift",
"Utilities/Operators.swift",
"Utilities/UniversalSocket.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/Kitura/BlueSocket
[1/2942] Fetching bluesocket
Fetched https://github.com/Kitura/BlueSocket from cache (0.27s)
Computing version for https://github.com/Kitura/BlueSocket
Computed https://github.com/Kitura/BlueSocket at 2.0.4 (0.73s)
Creating working copy for https://github.com/Kitura/BlueSocket
Working copy of https://github.com/Kitura/BlueSocket resolved at 2.0.4
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/9] Emitting module Socket
[5/9] Compiling Socket Socket+Equatable.swift
[6/9] Compiling Socket Socket+Hashable.swift
[7/9] Compiling Socket SocketUtils.swift
[8/9] Compiling Socket Socket.swift
[9/9] Compiling Socket SocketProtocols.swift
[11/34] Compiling Cosmic HTTPLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:59:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | internal var sessionConfiguration = URLSessionConfiguration.default
58 |
59 | internal var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | internal var underlyingQueue: DispatchQueue
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:71:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 | underlyingQueue = DispatchQueue(label: "com.cosmic.httplogger-\(UUID().uuidString)")
70 | queue.underlyingQueue = underlyingQueue
71 | session = URLSession(configuration: sessionConfiguration, delegate: nil, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | }
73 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:71:77: error: 'nil' requires a contextual type
69 | underlyingQueue = DispatchQueue(label: "com.cosmic.httplogger-\(UUID().uuidString)")
70 | queue.underlyingQueue = underlyingQueue
71 | session = URLSession(configuration: sessionConfiguration, delegate: nil, delegateQueue: queue)
| `- error: 'nil' requires a contextual type
72 | }
73 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:90:23: error: cannot find 'URLRequest' in scope
88 | guard let url = config?.urlWithQuery else { return }
89 |
90 | var request = URLRequest(url: URL(string: url)!)
| `- error: cannot find 'URLRequest' in scope
91 | request.httpMethod = config?.method
92 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:104:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | request.httpBody = body.data(using: .utf8)
103 |
104 | let task: URLSessionDataTask = session.dataTask(with: request) { data, response, error in
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:104:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
102 | request.httpBody = body.data(using: .utf8)
103 |
104 | let task: URLSessionDataTask = session.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:107:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
107 | Debug.logger.info("Status code: \(response.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
108 | }
109 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:112:14: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
110 | }
111 |
112 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
113 | }
114 |
[12/34] Compiling Cosmic LambdaLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:59:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | internal var sessionConfiguration = URLSessionConfiguration.default
58 |
59 | internal var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | internal var underlyingQueue: DispatchQueue
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:71:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 | underlyingQueue = DispatchQueue(label: "com.cosmic.httplogger-\(UUID().uuidString)")
70 | queue.underlyingQueue = underlyingQueue
71 | session = URLSession(configuration: sessionConfiguration, delegate: nil, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | }
73 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:71:77: error: 'nil' requires a contextual type
69 | underlyingQueue = DispatchQueue(label: "com.cosmic.httplogger-\(UUID().uuidString)")
70 | queue.underlyingQueue = underlyingQueue
71 | session = URLSession(configuration: sessionConfiguration, delegate: nil, delegateQueue: queue)
| `- error: 'nil' requires a contextual type
72 | }
73 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:90:23: error: cannot find 'URLRequest' in scope
88 | guard let url = config?.urlWithQuery else { return }
89 |
90 | var request = URLRequest(url: URL(string: url)!)
| `- error: cannot find 'URLRequest' in scope
91 | request.httpMethod = config?.method
92 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:104:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | request.httpBody = body.data(using: .utf8)
103 |
104 | let task: URLSessionDataTask = session.dataTask(with: request) { data, response, error in
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:104:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
102 | request.httpBody = body.data(using: .utf8)
103 |
104 | let task: URLSessionDataTask = session.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:107:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
107 | Debug.logger.info("Status code: \(response.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
108 | }
109 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:112:14: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
110 | }
111 |
112 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
113 | }
114 |
[13/34] Compiling Cosmic MemoryLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:59:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | internal var sessionConfiguration = URLSessionConfiguration.default
58 |
59 | internal var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | internal var underlyingQueue: DispatchQueue
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:71:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 | underlyingQueue = DispatchQueue(label: "com.cosmic.httplogger-\(UUID().uuidString)")
70 | queue.underlyingQueue = underlyingQueue
71 | session = URLSession(configuration: sessionConfiguration, delegate: nil, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | }
73 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:71:77: error: 'nil' requires a contextual type
69 | underlyingQueue = DispatchQueue(label: "com.cosmic.httplogger-\(UUID().uuidString)")
70 | queue.underlyingQueue = underlyingQueue
71 | session = URLSession(configuration: sessionConfiguration, delegate: nil, delegateQueue: queue)
| `- error: 'nil' requires a contextual type
72 | }
73 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:90:23: error: cannot find 'URLRequest' in scope
88 | guard let url = config?.urlWithQuery else { return }
89 |
90 | var request = URLRequest(url: URL(string: url)!)
| `- error: cannot find 'URLRequest' in scope
91 | request.httpMethod = config?.method
92 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:104:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | request.httpBody = body.data(using: .utf8)
103 |
104 | let task: URLSessionDataTask = session.dataTask(with: request) { data, response, error in
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:104:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
102 | request.httpBody = body.data(using: .utf8)
103 |
104 | let task: URLSessionDataTask = session.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:107:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
107 | Debug.logger.info("Status code: \(response.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
108 | }
109 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:112:14: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
110 | }
111 |
112 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
113 | }
114 |
[14/37] Compiling Cosmic Commons.swift
/host/spi-builder-workspace/Sources/Cosmic/Utilities/Debug.swift:13:16: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal final class Debug {
12 |
13 | static var logger: Logger = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | let logger = CompositeLogger()
15 | #if DEBUG
[15/37] Compiling Cosmic DataUtility.swift
/host/spi-builder-workspace/Sources/Cosmic/Utilities/Debug.swift:13:16: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal final class Debug {
12 |
13 | static var logger: Logger = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | let logger = CompositeLogger()
15 | #if DEBUG
[16/37] Compiling Cosmic Debug.swift
/host/spi-builder-workspace/Sources/Cosmic/Utilities/Debug.swift:13:16: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal final class Debug {
12 |
13 | static var logger: Logger = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | let logger = CompositeLogger()
15 | #if DEBUG
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/37] Emitting module Cosmic
/host/spi-builder-workspace/Sources/Cosmic/Base/LogFilter.swift:21:23: warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A class that holds global log filters
19 | public final class LogFilters {
| `- note: class 'LogFilters' does not conform to the 'Sendable' protocol
20 |
21 | public static let global = LogFilters()
| |- warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | var filters: [LogFilter] = []
/host/spi-builder-workspace/Sources/Cosmic/Base/LogReporter.swift:13:17: warning: var 'LoggerCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// This cache contains loggers for every registered identifier
13 | fileprivate var LoggerCache: [String: Logger] = [:]
| |- warning: var 'LoggerCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LoggerCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'LoggerCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public protocol LogReporter {
/host/spi-builder-workspace/Sources/Cosmic/Base/Logger.swift:43:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
41 | /// and reporting services.
42 | ///
43 | public protocol Logger: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
44 |
45 | init()
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:59:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | internal var sessionConfiguration = URLSessionConfiguration.default
58 |
59 | internal var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | internal var underlyingQueue: DispatchQueue
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Cosmic/Utilities/Debug.swift:13:16: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal final class Debug {
12 |
13 | static var logger: Logger = {
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | let logger = CompositeLogger()
15 | #if DEBUG
/host/spi-builder-workspace/Sources/Cosmic/Utilities/Extensions.swift:21:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
19 | /// - Returns: A JSON string, or nil if the object can not be converted to JSON
20 | /// - Throws: A JSON serialization error
21 | open class func string(withJSONObject obj: Any, options opt: JSONSerialization.WritingOptions = []) -> String? {
| `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
22 | if let data = try? self.data(withJSONObject: obj, options: opt) {
23 | return String(data: data, encoding: .utf8)
[18/37] Compiling Cosmic PrintLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
[19/37] Compiling Cosmic LogItLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
[20/37] Compiling Cosmic LogglyLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
[21/37] Compiling Cosmic LogOutputStream.swift
/host/spi-builder-workspace/Sources/Cosmic/Base/LogReporter.swift:13:17: warning: var 'LoggerCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// This cache contains loggers for every registered identifier
13 | fileprivate var LoggerCache: [String: Logger] = [:]
| |- warning: var 'LoggerCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LoggerCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'LoggerCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public protocol LogReporter {
/host/spi-builder-workspace/Sources/Cosmic/Base/Logger.swift:43:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
41 | /// and reporting services.
42 | ///
43 | public protocol Logger: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
44 |
45 | init()
[22/37] Compiling Cosmic LogReporter.swift
/host/spi-builder-workspace/Sources/Cosmic/Base/LogReporter.swift:13:17: warning: var 'LoggerCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// This cache contains loggers for every registered identifier
13 | fileprivate var LoggerCache: [String: Logger] = [:]
| |- warning: var 'LoggerCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LoggerCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'LoggerCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public protocol LogReporter {
/host/spi-builder-workspace/Sources/Cosmic/Base/Logger.swift:43:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
41 | /// and reporting services.
42 | ///
43 | public protocol Logger: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
44 |
45 | init()
[23/37] Compiling Cosmic Logger.swift
/host/spi-builder-workspace/Sources/Cosmic/Base/LogReporter.swift:13:17: warning: var 'LoggerCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// This cache contains loggers for every registered identifier
13 | fileprivate var LoggerCache: [String: Logger] = [:]
| |- warning: var 'LoggerCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LoggerCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'LoggerCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public protocol LogReporter {
/host/spi-builder-workspace/Sources/Cosmic/Base/Logger.swift:43:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
41 | /// and reporting services.
42 | ///
43 | public protocol Logger: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
44 |
45 | init()
[24/37] Compiling Cosmic CompletionFormatter.swift
/host/spi-builder-workspace/Sources/Cosmic/Base/LogReporter.swift:13:17: warning: var 'LoggerCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// This cache contains loggers for every registered identifier
13 | fileprivate var LoggerCache: [String: Logger] = [:]
| |- warning: var 'LoggerCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LoggerCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'LoggerCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | public protocol LogReporter {
/host/spi-builder-workspace/Sources/Cosmic/Base/Logger.swift:43:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
41 | /// and reporting services.
42 | ///
43 | public protocol Logger: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
44 |
45 | init()
[25/37] Compiling Cosmic JSONFormatter.swift
[26/37] Compiling Cosmic SyslogFormatter.swift
[27/37] Compiling Cosmic CompositeLogger.swift
[28/37] Compiling Cosmic LogzLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
/host/spi-builder-workspace/Sources/Cosmic/Socket/SocketLogger.swift:68:44: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
66 | if !cache.isEmpty {
67 | // TODO FIXME : on what thread should this be dispatched
68 | DispatchQueue.main.async { self.attemptSend() }
| |- 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
69 | }
70 | }
[29/37] Compiling Cosmic PapertrailLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
/host/spi-builder-workspace/Sources/Cosmic/Socket/SocketLogger.swift:68:44: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
66 | if !cache.isEmpty {
67 | // TODO FIXME : on what thread should this be dispatched
68 | DispatchQueue.main.async { self.attemptSend() }
| |- 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
69 | }
70 | }
[30/37] Compiling Cosmic SocketLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
/host/spi-builder-workspace/Sources/Cosmic/Socket/SocketLogger.swift:68:44: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
66 | if !cache.isEmpty {
67 | // TODO FIXME : on what thread should this be dispatched
68 | DispatchQueue.main.async { self.attemptSend() }
| |- 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
69 | }
70 | }
[31/37] Compiling Cosmic LogCache.swift
/host/spi-builder-workspace/Sources/Cosmic/Base/LogFilter.swift:21:23: warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A class that holds global log filters
19 | public final class LogFilters {
| `- note: class 'LogFilters' does not conform to the 'Sendable' protocol
20 |
21 | public static let global = LogFilters()
| |- warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | var filters: [LogFilter] = []
[32/37] Compiling Cosmic LogFilter.swift
/host/spi-builder-workspace/Sources/Cosmic/Base/LogFilter.swift:21:23: warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A class that holds global log filters
19 | public final class LogFilters {
| `- note: class 'LogFilters' does not conform to the 'Sendable' protocol
20 |
21 | public static let global = LogFilters()
| |- warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | var filters: [LogFilter] = []
[33/37] Compiling Cosmic LogFormatter.swift
/host/spi-builder-workspace/Sources/Cosmic/Base/LogFilter.swift:21:23: warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A class that holds global log filters
19 | public final class LogFilters {
| `- note: class 'LogFilters' does not conform to the 'Sendable' protocol
20 |
21 | public static let global = LogFilters()
| |- warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | var filters: [LogFilter] = []
[34/37] Compiling Cosmic LogLevel.swift
/host/spi-builder-workspace/Sources/Cosmic/Base/LogFilter.swift:21:23: warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A class that holds global log filters
19 | public final class LogFilters {
| `- note: class 'LogFilters' does not conform to the 'Sendable' protocol
20 |
21 | public static let global = LogFilters()
| |- warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | var filters: [LogFilter] = []
[35/37] Compiling Cosmic Extensions.swift
/host/spi-builder-workspace/Sources/Cosmic/Utilities/Extensions.swift:21:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
19 | /// - Returns: A JSON string, or nil if the object can not be converted to JSON
20 | /// - Throws: A JSON serialization error
21 | open class func string(withJSONObject obj: Any, options opt: JSONSerialization.WritingOptions = []) -> String? {
| `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
22 | if let data = try? self.data(withJSONObject: obj, options: opt) {
23 | return String(data: data, encoding: .utf8)
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:73:18: warning: capture of 'self' with non-sendable type 'UniversalSocket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
15 | }
16 |
17 | class UniversalSocket {
| `- note: class 'UniversalSocket' does not conform to the 'Sendable' protocol
18 |
19 | let socket: Socket
:
71 | var data: Data = Data()
72 |
73 | try? self.forProtocol(.udp) {
| `- warning: capture of 'self' with non-sendable type 'UniversalSocket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
74 | let _ = try? self.socket.listen(
75 | forMessage: &data,
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:78:17: warning: capture of 'completion' with non-sendable type '(Data) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
76 | on: Int(self.config.port)
77 | )
78 | completion(data)
| |- warning: capture of 'completion' with non-sendable type '(Data) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
79 | }
80 |
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:74:30: warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
15 | }
16 |
17 | class UniversalSocket {
| `- note: class 'UniversalSocket' does not conform to the 'Sendable' protocol
18 |
19 | let socket: Socket
:
72 |
73 | try? self.forProtocol(.udp) {
74 | let _ = try? self.socket.listen(
| `- warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
75 | forMessage: &data,
76 | on: Int(self.config.port)
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:78:17: warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
76 | on: Int(self.config.port)
77 | )
78 | completion(data)
| |- warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
79 | }
80 |
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:82:39: warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
15 | }
16 |
17 | class UniversalSocket {
| `- note: class 'UniversalSocket' does not conform to the 'Sendable' protocol
18 |
19 | let socket: Socket
:
80 |
81 | try? self.forProtocol(.tcp) {
82 | let readSocket = try? self.socket.acceptClientConnection()
| `- warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
83 | let _ = try? readSocket?.read(into: &data)
84 | completion(data)
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:84:17: warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
82 | let readSocket = try? self.socket.acceptClientConnection()
83 | let _ = try? readSocket?.read(into: &data)
84 | completion(data)
| |- warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
85 | }
86 |
[36/37] Compiling Cosmic Operators.swift
/host/spi-builder-workspace/Sources/Cosmic/Utilities/Extensions.swift:21:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
19 | /// - Returns: A JSON string, or nil if the object can not be converted to JSON
20 | /// - Throws: A JSON serialization error
21 | open class func string(withJSONObject obj: Any, options opt: JSONSerialization.WritingOptions = []) -> String? {
| `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
22 | if let data = try? self.data(withJSONObject: obj, options: opt) {
23 | return String(data: data, encoding: .utf8)
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:73:18: warning: capture of 'self' with non-sendable type 'UniversalSocket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
15 | }
16 |
17 | class UniversalSocket {
| `- note: class 'UniversalSocket' does not conform to the 'Sendable' protocol
18 |
19 | let socket: Socket
:
71 | var data: Data = Data()
72 |
73 | try? self.forProtocol(.udp) {
| `- warning: capture of 'self' with non-sendable type 'UniversalSocket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
74 | let _ = try? self.socket.listen(
75 | forMessage: &data,
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:78:17: warning: capture of 'completion' with non-sendable type '(Data) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
76 | on: Int(self.config.port)
77 | )
78 | completion(data)
| |- warning: capture of 'completion' with non-sendable type '(Data) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
79 | }
80 |
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:74:30: warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
15 | }
16 |
17 | class UniversalSocket {
| `- note: class 'UniversalSocket' does not conform to the 'Sendable' protocol
18 |
19 | let socket: Socket
:
72 |
73 | try? self.forProtocol(.udp) {
74 | let _ = try? self.socket.listen(
| `- warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
75 | forMessage: &data,
76 | on: Int(self.config.port)
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:78:17: warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
76 | on: Int(self.config.port)
77 | )
78 | completion(data)
| |- warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
79 | }
80 |
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:82:39: warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
15 | }
16 |
17 | class UniversalSocket {
| `- note: class 'UniversalSocket' does not conform to the 'Sendable' protocol
18 |
19 | let socket: Socket
:
80 |
81 | try? self.forProtocol(.tcp) {
82 | let readSocket = try? self.socket.acceptClientConnection()
| `- warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
83 | let _ = try? readSocket?.read(into: &data)
84 | completion(data)
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:84:17: warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
82 | let readSocket = try? self.socket.acceptClientConnection()
83 | let _ = try? readSocket?.read(into: &data)
84 | completion(data)
| |- warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
85 | }
86 |
[37/37] Compiling Cosmic UniversalSocket.swift
/host/spi-builder-workspace/Sources/Cosmic/Utilities/Extensions.swift:21:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
19 | /// - Returns: A JSON string, or nil if the object can not be converted to JSON
20 | /// - Throws: A JSON serialization error
21 | open class func string(withJSONObject obj: Any, options opt: JSONSerialization.WritingOptions = []) -> String? {
| `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
22 | if let data = try? self.data(withJSONObject: obj, options: opt) {
23 | return String(data: data, encoding: .utf8)
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:73:18: warning: capture of 'self' with non-sendable type 'UniversalSocket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
15 | }
16 |
17 | class UniversalSocket {
| `- note: class 'UniversalSocket' does not conform to the 'Sendable' protocol
18 |
19 | let socket: Socket
:
71 | var data: Data = Data()
72 |
73 | try? self.forProtocol(.udp) {
| `- warning: capture of 'self' with non-sendable type 'UniversalSocket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
74 | let _ = try? self.socket.listen(
75 | forMessage: &data,
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:78:17: warning: capture of 'completion' with non-sendable type '(Data) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
76 | on: Int(self.config.port)
77 | )
78 | completion(data)
| |- warning: capture of 'completion' with non-sendable type '(Data) -> ()' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
79 | }
80 |
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:74:30: warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
15 | }
16 |
17 | class UniversalSocket {
| `- note: class 'UniversalSocket' does not conform to the 'Sendable' protocol
18 |
19 | let socket: Socket
:
72 |
73 | try? self.forProtocol(.udp) {
74 | let _ = try? self.socket.listen(
| `- warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
75 | forMessage: &data,
76 | on: Int(self.config.port)
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:78:17: warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
76 | on: Int(self.config.port)
77 | )
78 | completion(data)
| |- warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
79 | }
80 |
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:82:39: warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
15 | }
16 |
17 | class UniversalSocket {
| `- note: class 'UniversalSocket' does not conform to the 'Sendable' protocol
18 |
19 | let socket: Socket
:
80 |
81 | try? self.forProtocol(.tcp) {
82 | let readSocket = try? self.socket.acceptClientConnection()
| `- warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
83 | let _ = try? readSocket?.read(into: &data)
84 | completion(data)
/host/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:84:17: warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
82 | let readSocket = try? self.socket.acceptClientConnection()
83 | let _ = try? readSocket?.read(into: &data)
84 | completion(data)
| |- warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
85 | }
86 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Emitting module Socket
[3/7] Compiling Socket SocketProtocols.swift
[4/7] Compiling Socket SocketUtils.swift
[5/7] Compiling Socket Socket.swift
[6/7] Compiling Socket Socket+Equatable.swift
[7/7] Compiling Socket Socket+Hashable.swift
[9/32] Compiling Cosmic Commons.swift
[10/32] Compiling Cosmic DataUtility.swift
[11/32] Compiling Cosmic Debug.swift
[12/35] Compiling Cosmic HTTPLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:59:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | internal var sessionConfiguration = URLSessionConfiguration.default
58 |
59 | internal var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | internal var underlyingQueue: DispatchQueue
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:71:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 | underlyingQueue = DispatchQueue(label: "com.cosmic.httplogger-\(UUID().uuidString)")
70 | queue.underlyingQueue = underlyingQueue
71 | session = URLSession(configuration: sessionConfiguration, delegate: nil, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | }
73 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:71:77: error: 'nil' requires a contextual type
69 | underlyingQueue = DispatchQueue(label: "com.cosmic.httplogger-\(UUID().uuidString)")
70 | queue.underlyingQueue = underlyingQueue
71 | session = URLSession(configuration: sessionConfiguration, delegate: nil, delegateQueue: queue)
| `- error: 'nil' requires a contextual type
72 | }
73 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:90:23: error: cannot find 'URLRequest' in scope
88 | guard let url = config?.urlWithQuery else { return }
89 |
90 | var request = URLRequest(url: URL(string: url)!)
| `- error: cannot find 'URLRequest' in scope
91 | request.httpMethod = config?.method
92 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:104:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | request.httpBody = body.data(using: .utf8)
103 |
104 | let task: URLSessionDataTask = session.dataTask(with: request) { data, response, error in
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:104:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
102 | request.httpBody = body.data(using: .utf8)
103 |
104 | let task: URLSessionDataTask = session.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:107:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
107 | Debug.logger.info("Status code: \(response.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
108 | }
109 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:112:14: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
110 | }
111 |
112 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
113 | }
114 |
[13/35] Compiling Cosmic LambdaLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:59:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | internal var sessionConfiguration = URLSessionConfiguration.default
58 |
59 | internal var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | internal var underlyingQueue: DispatchQueue
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:71:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 | underlyingQueue = DispatchQueue(label: "com.cosmic.httplogger-\(UUID().uuidString)")
70 | queue.underlyingQueue = underlyingQueue
71 | session = URLSession(configuration: sessionConfiguration, delegate: nil, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | }
73 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:71:77: error: 'nil' requires a contextual type
69 | underlyingQueue = DispatchQueue(label: "com.cosmic.httplogger-\(UUID().uuidString)")
70 | queue.underlyingQueue = underlyingQueue
71 | session = URLSession(configuration: sessionConfiguration, delegate: nil, delegateQueue: queue)
| `- error: 'nil' requires a contextual type
72 | }
73 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:90:23: error: cannot find 'URLRequest' in scope
88 | guard let url = config?.urlWithQuery else { return }
89 |
90 | var request = URLRequest(url: URL(string: url)!)
| `- error: cannot find 'URLRequest' in scope
91 | request.httpMethod = config?.method
92 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:104:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | request.httpBody = body.data(using: .utf8)
103 |
104 | let task: URLSessionDataTask = session.dataTask(with: request) { data, response, error in
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:104:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
102 | request.httpBody = body.data(using: .utf8)
103 |
104 | let task: URLSessionDataTask = session.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:107:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
107 | Debug.logger.info("Status code: \(response.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
108 | }
109 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:112:14: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
110 | }
111 |
112 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
113 | }
114 |
[14/35] Compiling Cosmic MemoryLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:59:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | internal var sessionConfiguration = URLSessionConfiguration.default
58 |
59 | internal var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | internal var underlyingQueue: DispatchQueue
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:71:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 | underlyingQueue = DispatchQueue(label: "com.cosmic.httplogger-\(UUID().uuidString)")
70 | queue.underlyingQueue = underlyingQueue
71 | session = URLSession(configuration: sessionConfiguration, delegate: nil, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
72 | }
73 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:71:77: error: 'nil' requires a contextual type
69 | underlyingQueue = DispatchQueue(label: "com.cosmic.httplogger-\(UUID().uuidString)")
70 | queue.underlyingQueue = underlyingQueue
71 | session = URLSession(configuration: sessionConfiguration, delegate: nil, delegateQueue: queue)
| `- error: 'nil' requires a contextual type
72 | }
73 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:90:23: error: cannot find 'URLRequest' in scope
88 | guard let url = config?.urlWithQuery else { return }
89 |
90 | var request = URLRequest(url: URL(string: url)!)
| `- error: cannot find 'URLRequest' in scope
91 | request.httpMethod = config?.method
92 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:104:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | request.httpBody = body.data(using: .utf8)
103 |
104 | let task: URLSessionDataTask = session.dataTask(with: request) { data, response, error in
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:104:48: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
102 | request.httpBody = body.data(using: .utf8)
103 |
104 | let task: URLSessionDataTask = session.dataTask(with: request) { data, response, error in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:107:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 | error => Debug.logger.error(error!.localizedDescription)
106 | if let response = (response as? HTTPURLResponse) {
107 | Debug.logger.info("Status code: \(response.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
108 | }
109 |
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:112:14: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
110 | }
111 |
112 | task.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
113 | }
114 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/35] Emitting module Cosmic
/host/spi-builder-workspace/Sources/Cosmic/Base/Logger.swift:43:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
41 | /// and reporting services.
42 | ///
43 | public protocol Logger: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
44 |
45 | init()
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:59:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | internal var sessionConfiguration = URLSessionConfiguration.default
58 |
59 | internal var session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |
61 | internal var underlyingQueue: DispatchQueue
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Cosmic/Utilities/Extensions.swift:21:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
19 | /// - Returns: A JSON string, or nil if the object can not be converted to JSON
20 | /// - Throws: A JSON serialization error
21 | open class func string(withJSONObject obj: Any, options opt: JSONSerialization.WritingOptions = []) -> String? {
| `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
22 | if let data = try? self.data(withJSONObject: obj, options: opt) {
23 | return String(data: data, encoding: .utf8)
[16/35] Compiling Cosmic LogzLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
[17/35] Compiling Cosmic PapertrailLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
[18/35] Compiling Cosmic SocketLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
[19/35] Compiling Cosmic LogOutputStream.swift
/host/spi-builder-workspace/Sources/Cosmic/Base/Logger.swift:43:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
41 | /// and reporting services.
42 | ///
43 | public protocol Logger: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
44 |
45 | init()
[20/35] Compiling Cosmic LogReporter.swift
/host/spi-builder-workspace/Sources/Cosmic/Base/Logger.swift:43:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
41 | /// and reporting services.
42 | ///
43 | public protocol Logger: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
44 |
45 | init()
[21/35] Compiling Cosmic Logger.swift
/host/spi-builder-workspace/Sources/Cosmic/Base/Logger.swift:43:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
41 | /// and reporting services.
42 | ///
43 | public protocol Logger: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
44 |
45 | init()
[22/35] Compiling Cosmic CompletionFormatter.swift
/host/spi-builder-workspace/Sources/Cosmic/Base/Logger.swift:43:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
41 | /// and reporting services.
42 | ///
43 | public protocol Logger: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
44 |
45 | init()
[23/35] Compiling Cosmic JSONFormatter.swift
[24/35] Compiling Cosmic SyslogFormatter.swift
[25/35] Compiling Cosmic CompositeLogger.swift
[26/35] Compiling Cosmic PrintLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
[27/35] Compiling Cosmic LogItLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
[28/35] Compiling Cosmic LogglyLogger.swift
/host/spi-builder-workspace/Sources/Cosmic/Loggers/HTTPLogger.swift:57:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
55 | internal var batchFormatter: BatchFormatter = NewLineBatchFormatter()
56 |
57 | internal var sessionConfiguration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
58 |
59 | internal var session: URLSession
[29/35] Compiling Cosmic LogCache.swift
[30/35] Compiling Cosmic LogFilter.swift
[31/35] Compiling Cosmic LogFormatter.swift
[32/35] Compiling Cosmic LogLevel.swift
[33/35] Compiling Cosmic Extensions.swift
/host/spi-builder-workspace/Sources/Cosmic/Utilities/Extensions.swift:21:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
19 | /// - Returns: A JSON string, or nil if the object can not be converted to JSON
20 | /// - Throws: A JSON serialization error
21 | open class func string(withJSONObject obj: Any, options opt: JSONSerialization.WritingOptions = []) -> String? {
| `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
22 | if let data = try? self.data(withJSONObject: obj, options: opt) {
23 | return String(data: data, encoding: .utf8)
[34/35] Compiling Cosmic Operators.swift
/host/spi-builder-workspace/Sources/Cosmic/Utilities/Extensions.swift:21:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
19 | /// - Returns: A JSON string, or nil if the object can not be converted to JSON
20 | /// - Throws: A JSON serialization error
21 | open class func string(withJSONObject obj: Any, options opt: JSONSerialization.WritingOptions = []) -> String? {
| `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
22 | if let data = try? self.data(withJSONObject: obj, options: opt) {
23 | return String(data: data, encoding: .utf8)
[35/35] Compiling Cosmic UniversalSocket.swift
/host/spi-builder-workspace/Sources/Cosmic/Utilities/Extensions.swift:21:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
19 | /// - Returns: A JSON string, or nil if the object can not be converted to JSON
20 | /// - Throws: A JSON serialization error
21 | open class func string(withJSONObject obj: Any, options opt: JSONSerialization.WritingOptions = []) -> String? {
| `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
22 | if let data = try? self.data(withJSONObject: obj, options: opt) {
23 | return String(data: data, encoding: .utf8)
BUILD FAILURE 6.1 linux