Build Information
Failed to build SKWebAPI, reference 4.1.3 (b5b303
), with Swift 6.1 for Linux on 25 Apr 2025 21:20:19 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/pvzig/SKWebAPI.git
Reference: 4.1.3
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/pvzig/SKWebAPI
* tag 4.1.3 -> FETCH_HEAD
HEAD is now at b5b303c Merge pull request #13 from NoRespect/slackFormatEscaping
Cloned https://github.com/pvzig/SKWebAPI.git
Revision (git rev-parse @):
b5b303c7e5cdecd587499061a81128ef4d7ed3f1
SUCCESS checkout https://github.com/pvzig/SKWebAPI.git at 4.1.3
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/pvzig/SKWebAPI.git
https://github.com/pvzig/SKWebAPI.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "skcore",
"requirement" : {
"range" : [
{
"lower_bound" : "4.1.0",
"upper_bound" : "4.2.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SlackKit/SKCore"
}
],
"manifest_display_name" : "SKWebAPI",
"name" : "SKWebAPI",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SKWebAPI",
"targets" : [
"SKWebAPI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SKWebAPI",
"module_type" : "SwiftTarget",
"name" : "SKWebAPI",
"path" : "Sources",
"product_dependencies" : [
"SKCore"
],
"product_memberships" : [
"SKWebAPI"
],
"sources" : [
"Endpoint.swift",
"NetworkInterface.swift",
"WebAPI.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/SlackKit/SKCore
[1/288] Fetching skcore
Fetched https://github.com/SlackKit/SKCore from cache (0.37s)
Computing version for https://github.com/SlackKit/SKCore
Computed https://github.com/SlackKit/SKCore at 4.1.3 (1.36s)
Creating working copy for https://github.com/SlackKit/SKCore
Working copy of https://github.com/SlackKit/SKCore resolved at 4.1.3
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/28] Compiling SKCore SlackError.swift
[5/28] Compiling SKCore Team.swift
[6/28] Compiling SKCore TeamIcon.swift
[7/28] Compiling SKCore Reaction.swift
[8/28] Compiling SKCore Reply.swift
[9/28] Compiling SKCore Scope.swift
[10/31] Compiling SKCore Topic.swift
[11/31] Compiling SKCore User.swift
[12/31] Compiling SKCore UserGroup.swift
[13/31] Compiling SKCore Action.swift
[14/31] Compiling SKCore Attachment.swift
[15/31] Compiling SKCore AttachmentField.swift
[16/31] Compiling SKCore Bot.swift
[17/31] Compiling SKCore Channel.swift
[18/31] Compiling SKCore Comment.swift
[19/31] Compiling SKCore CustomProfile.swift
[20/31] Compiling SKCore CustomProfileField.swift
[21/31] Emitting module SKCore
[22/31] Compiling SKCore DoNotDisturbStatus.swift
[23/31] Compiling SKCore Edited.swift
[24/31] Compiling SKCore Event.swift
[25/31] Compiling SKCore Extensions.swift
[26/31] Compiling SKCore File.swift
[27/31] Compiling SKCore History.swift
[28/31] Compiling SKCore Item.swift
[29/31] Compiling SKCore Message.swift
[30/31] Compiling SKCore OAuthConfig.swift
[31/31] Compiling SKCore RTMOptions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[33/36] Emitting module SKWebAPI
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 |
32 | private let apiUrl = "https://slack.com/api/"
33 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 |
35 | internal init() {}
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
31 |
32 | private let apiUrl = "https://slack.com/api/"
33 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
34 |
35 | internal init() {}
/host/spi-builder-workspace/Sources/NetworkInterface.swift:133:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | }
132 |
133 | internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | guard let data = data, let response = response as? HTTPURLResponse else {
135 | throw SlackError.clientNetworkError
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[34/36] Compiling SKWebAPI Endpoint.swift
[35/36] Compiling SKWebAPI NetworkInterface.swift
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 |
32 | private let apiUrl = "https://slack.com/api/"
33 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 |
35 | internal init() {}
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
31 |
32 | private let apiUrl = "https://slack.com/api/"
33 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
34 |
35 | internal init() {}
/host/spi-builder-workspace/Sources/NetworkInterface.swift:133:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | }
132 |
133 | internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | guard let data = data, let response = response as? HTTPURLResponse else {
135 | throw SlackError.clientNetworkError
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkInterface.swift:47:23: error: cannot find 'URLRequest' in scope
45 | return
46 | }
47 | let request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
48 |
49 | session.dataTask(with: request) {(data, response, publicError) in
/host/spi-builder-workspace/Sources/NetworkInterface.swift:51:84: error: argument type '_' expected to be an instance of a class or class-constrained type
49 | session.dataTask(with: request) {(data, response, publicError) in
50 | do {
51 | successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
52 | } catch let error {
53 | errorClosure(error as? SlackError ?? SlackError.unknownError)
/host/spi-builder-workspace/Sources/NetworkInterface.swift:63:23: error: cannot find 'URLRequest' in scope
61 | return nil
62 | }
63 | let request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
64 | var data: Data? = nil
65 | var response: URLResponse? = nil
/host/spi-builder-workspace/Sources/NetworkInterface.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | let request = URLRequest(url: url)
64 | var data: Data? = nil
65 | var response: URLResponse? = nil
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | var error: Error? = nil
67 | let semaphore = DispatchSemaphore(value: 0)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkInterface.swift:70:24: error: value of type '_' expected to be an instance of a class or class-constrained type in assignment
68 | session.dataTask(with: request) { (reqData, reqResponse, reqError) in
69 | data = reqData
70 | response = reqResponse
| `- error: value of type '_' expected to be an instance of a class or class-constrained type in assignment
71 | error = reqError
72 | if data == nil, let error = error { print(error) }
/host/spi-builder-workspace/Sources/NetworkInterface.swift:89:23: error: cannot find 'URLRequest' in scope
87 | return
88 | }
89 | var request = URLRequest(url:url)
| `- error: cannot find 'URLRequest' in scope
90 | request.httpMethod = "POST"
91 | let contentType = "application/json"
/host/spi-builder-workspace/Sources/NetworkInterface.swift:117:23: error: cannot find 'URLRequest' in scope
115 | return
116 | }
117 | var request = URLRequest(url:url)
| `- error: cannot find 'URLRequest' in scope
118 | request.httpMethod = "POST"
119 | let boundaryConstant = randomBoundary()
/host/spi-builder-workspace/Sources/NetworkInterface.swift:126:84: error: argument type '_' expected to be an instance of a class or class-constrained type
124 | session.dataTask(with: request) {(data, response, publicError) in
125 | do {
126 | successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
127 | } catch let error {
128 | errorClosure(error as? SlackError ?? SlackError.unknownError)
/host/spi-builder-workspace/Sources/NetworkInterface.swift:134:56: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
132 |
133 | internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
134 | guard let data = data, let response = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
135 | throw SlackError.clientNetworkError
136 | }
/host/spi-builder-workspace/Sources/NetworkInterface.swift:134:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |
133 | internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
134 | guard let data = data, let response = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 | throw SlackError.clientNetworkError
136 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkInterface.swift:142:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
140 | }
141 |
142 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
143 | case 200:
144 | if json["ok"] as? Bool == true {
[36/36] Compiling SKWebAPI WebAPI.swift
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 |
32 | private let apiUrl = "https://slack.com/api/"
33 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 |
35 | internal init() {}
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
31 |
32 | private let apiUrl = "https://slack.com/api/"
33 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
34 |
35 | internal init() {}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/26] Compiling SKCore SlackError.swift
[3/26] Compiling SKCore Team.swift
[4/26] Compiling SKCore TeamIcon.swift
[5/26] Compiling SKCore Reaction.swift
[6/26] Compiling SKCore Reply.swift
[7/26] Compiling SKCore Scope.swift
[8/29] Compiling SKCore Message.swift
[9/29] Compiling SKCore OAuthConfig.swift
[10/29] Compiling SKCore RTMOptions.swift
[11/29] Compiling SKCore File.swift
[12/29] Compiling SKCore History.swift
[13/29] Compiling SKCore Item.swift
[14/29] Compiling SKCore Action.swift
[15/29] Compiling SKCore Attachment.swift
[16/29] Compiling SKCore AttachmentField.swift
[17/29] Compiling SKCore Bot.swift
[18/29] Compiling SKCore Channel.swift
[19/29] Compiling SKCore Comment.swift
[20/29] Compiling SKCore CustomProfile.swift
[21/29] Compiling SKCore CustomProfileField.swift
[22/29] Compiling SKCore DoNotDisturbStatus.swift
[23/29] Compiling SKCore Edited.swift
[24/29] Compiling SKCore Event.swift
[25/29] Compiling SKCore Extensions.swift
[26/29] Emitting module SKCore
[27/29] Compiling SKCore Topic.swift
[28/29] Compiling SKCore User.swift
[29/29] Compiling SKCore UserGroup.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[31/34] Emitting module SKWebAPI
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 |
32 | private let apiUrl = "https://slack.com/api/"
33 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 |
35 | internal init() {}
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
31 |
32 | private let apiUrl = "https://slack.com/api/"
33 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
34 |
35 | internal init() {}
/host/spi-builder-workspace/Sources/NetworkInterface.swift:133:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | }
132 |
133 | internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | guard let data = data, let response = response as? HTTPURLResponse else {
135 | throw SlackError.clientNetworkError
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[32/34] Compiling SKWebAPI Endpoint.swift
[33/34] Compiling SKWebAPI NetworkInterface.swift
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 |
32 | private let apiUrl = "https://slack.com/api/"
33 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 |
35 | internal init() {}
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
31 |
32 | private let apiUrl = "https://slack.com/api/"
33 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
34 |
35 | internal init() {}
/host/spi-builder-workspace/Sources/NetworkInterface.swift:133:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 | }
132 |
133 | internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
134 | guard let data = data, let response = response as? HTTPURLResponse else {
135 | throw SlackError.clientNetworkError
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkInterface.swift:47:23: error: cannot find 'URLRequest' in scope
45 | return
46 | }
47 | let request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
48 |
49 | session.dataTask(with: request) {(data, response, publicError) in
/host/spi-builder-workspace/Sources/NetworkInterface.swift:51:84: error: argument type '_' expected to be an instance of a class or class-constrained type
49 | session.dataTask(with: request) {(data, response, publicError) in
50 | do {
51 | successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
52 | } catch let error {
53 | errorClosure(error as? SlackError ?? SlackError.unknownError)
/host/spi-builder-workspace/Sources/NetworkInterface.swift:63:23: error: cannot find 'URLRequest' in scope
61 | return nil
62 | }
63 | let request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
64 | var data: Data? = nil
65 | var response: URLResponse? = nil
/host/spi-builder-workspace/Sources/NetworkInterface.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | let request = URLRequest(url: url)
64 | var data: Data? = nil
65 | var response: URLResponse? = nil
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | var error: Error? = nil
67 | let semaphore = DispatchSemaphore(value: 0)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkInterface.swift:70:24: error: value of type '_' expected to be an instance of a class or class-constrained type in assignment
68 | session.dataTask(with: request) { (reqData, reqResponse, reqError) in
69 | data = reqData
70 | response = reqResponse
| `- error: value of type '_' expected to be an instance of a class or class-constrained type in assignment
71 | error = reqError
72 | if data == nil, let error = error { print(error) }
/host/spi-builder-workspace/Sources/NetworkInterface.swift:89:23: error: cannot find 'URLRequest' in scope
87 | return
88 | }
89 | var request = URLRequest(url:url)
| `- error: cannot find 'URLRequest' in scope
90 | request.httpMethod = "POST"
91 | let contentType = "application/json"
/host/spi-builder-workspace/Sources/NetworkInterface.swift:117:23: error: cannot find 'URLRequest' in scope
115 | return
116 | }
117 | var request = URLRequest(url:url)
| `- error: cannot find 'URLRequest' in scope
118 | request.httpMethod = "POST"
119 | let boundaryConstant = randomBoundary()
/host/spi-builder-workspace/Sources/NetworkInterface.swift:126:84: error: argument type '_' expected to be an instance of a class or class-constrained type
124 | session.dataTask(with: request) {(data, response, publicError) in
125 | do {
126 | successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
127 | } catch let error {
128 | errorClosure(error as? SlackError ?? SlackError.unknownError)
/host/spi-builder-workspace/Sources/NetworkInterface.swift:134:56: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
132 |
133 | internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
134 | guard let data = data, let response = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
135 | throw SlackError.clientNetworkError
136 | }
/host/spi-builder-workspace/Sources/NetworkInterface.swift:134:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |
133 | internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
134 | guard let data = data, let response = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 | throw SlackError.clientNetworkError
136 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkInterface.swift:142:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
140 | }
141 |
142 | switch response.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
143 | case 200:
144 | if json["ok"] as? Bool == true {
[34/34] Compiling SKWebAPI WebAPI.swift
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 |
32 | private let apiUrl = "https://slack.com/api/"
33 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 |
35 | internal init() {}
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
31 |
32 | private let apiUrl = "https://slack.com/api/"
33 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
34 |
35 | internal init() {}
BUILD FAILURE 6.1 linux