The Swift Package Index logo.Swift Package Index

Build Information

Failed to build RedShot, reference master (d610ad), with Swift 6.2 for Android on 20 Jun 2025 21:40:07 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OperatorFoundation/Redshot.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/OperatorFoundation/Redshot
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d610adb Merge branch 'master' of https://github.com/OperatorFoundation/Redshot
Cloned https://github.com/OperatorFoundation/Redshot.git
Revision (git rev-parse @):
d610adbedaa5273f7cd8c928816e4e8c3edc01af
SUCCESS checkout https://github.com/OperatorFoundation/Redshot.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/OperatorFoundation/Redshot.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/OperatorFoundation/Datable.git
[1/399] Fetching datable
Fetched https://github.com/OperatorFoundation/Datable.git from cache (0.27s)
Computing version for https://github.com/OperatorFoundation/Datable.git
Computed https://github.com/OperatorFoundation/Datable.git at 3.1.5 (0.65s)
Creating working copy for https://github.com/OperatorFoundation/Datable.git
Working copy of https://github.com/OperatorFoundation/Datable.git resolved at 3.1.5
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-8C5A4AE7A8CE2BA.txt
[4/32] Compiling Datable Double+Stringable.swift
[5/32] Compiling Datable File.swift
[6/32] Compiling Datable Float+MaybeDatable.swift
[7/32] Compiling Datable Floatable.swift
[8/36] Compiling Datable MaybeIntable.swift
[9/36] Compiling Datable MaybeNetworkIntable.swift
[10/36] Compiling Datable NetworkDatable.swift
[11/36] Compiling Datable NetworkIntable.swift
[12/36] Compiling Datable Data+Stringable.swift
[13/36] Compiling Datable Datable.swift
[14/36] Compiling Datable DatableConfig.swift
[15/36] Compiling Datable Double+MaybeDatable.swift
[16/36] Compiling Datable Arrayable.swift
[17/36] Compiling Datable CSVable.swift
[18/36] Compiling Datable Data+Arrayable.swift
[19/36] Compiling Datable Data+Datable.swift
[20/36] Emitting module Datable
[21/36] Compiling Datable Data+ExpressibleByStringLiteral.swift
[22/36] Compiling Datable Data+Floatable.swift
[23/36] Compiling Datable Data+MaybeIntable.swift
[24/36] Compiling Datable Data+MaybeNetworkIntable.swift
[25/36] Compiling Datable String+Arrayable.swift
[26/36] Compiling Datable String+Datable.swift
[27/36] Compiling Datable String+Intable.swift
[28/36] Compiling Datable Stringable.swift
[29/36] Compiling Datable Int+MaybeDatable.swift
[30/36] Compiling Datable Int+Stringable.swift
[31/36] Compiling Datable Intable.swift
[32/36] Compiling Datable MaybeDatable.swift
[33/36] Compiling Datable StringableArray+CSVable.swift
[34/36] Compiling Datable UInt+Datable.swift
[35/36] Compiling Datable UInt+MaybeNetworkDatable.swift
[36/36] Compiling Datable UInt+Stringable.swift
[38/45] Compiling RedShot RedisSubscribe.swift
[39/45] Compiling RedShot RedisType.swift
[40/45] Compiling RedShot RedisSocket.swift
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:22:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 20 |
 21 | class RedisSocket: NSObject {
 22 |     let session = URLSession(configuration: .default)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 23 |     var stream: URLSessionStreamTask
 24 |
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:22:46: error: cannot infer contextual base in reference to member 'default'
 20 |
 21 | class RedisSocket: NSObject {
 22 |     let session = URLSession(configuration: .default)
    |                                              `- error: cannot infer contextual base in reference to member 'default'
 23 |     var stream: URLSessionStreamTask
 24 |
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:23:17: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 | class RedisSocket: NSObject {
 22 |     let session = URLSession(configuration: .default)
 23 |     var stream: URLSessionStreamTask
    |                 `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |     var writeGroup: DispatchGroup
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' 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 URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:109:24: error: cannot find type 'URLSessionStreamDelegate' in scope
107 | }
108 |
109 | extension RedisSocket: URLSessionStreamDelegate {
    |                        `- error: cannot find type 'URLSessionStreamDelegate' in scope
110 |     func urlSession(_ session: URLSession,
111 |                     readClosedFor streamTask: URLSessionStreamTask) {
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:110:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |
109 | extension RedisSocket: URLSessionStreamDelegate {
110 |     func urlSession(_ session: URLSession,
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |                     readClosedFor streamTask: URLSessionStreamTask) {
112 |
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/RedShot/RedisSocket.swift:111:47: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | extension RedisSocket: URLSessionStreamDelegate {
110 |     func urlSession(_ session: URLSession,
111 |                     readClosedFor streamTask: URLSessionStreamTask) {
    |                                               `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |
113 |     }
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' 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 URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:115:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |     }
114 |
115 |     func urlSession(_ session: URLSession,
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 |                     writeClosedFor streamTask: URLSessionStreamTask) {
117 |
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/RedShot/RedisSocket.swift:116:48: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |
115 |     func urlSession(_ session: URLSession,
116 |                     writeClosedFor streamTask: URLSessionStreamTask) {
    |                                                `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |
118 |     }
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' 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 URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:120:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |     }
119 |
120 |     func urlSession(_ session: URLSession,
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |                     betterRouteDiscoveredFor streamTask: URLSessionStreamTask) {
122 |
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/RedShot/RedisSocket.swift:121:58: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 |
120 |     func urlSession(_ session: URLSession,
121 |                     betterRouteDiscoveredFor streamTask: URLSessionStreamTask) {
    |                                                          `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 |     }
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' 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 URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:125:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |     }
124 |
125 |     func urlSession(_ session: URLSession,
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 |                     streamTask: URLSessionStreamTask,
127 |                     didBecome inputStream: InputStream,
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/RedShot/RedisSocket.swift:126:33: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |
125 |     func urlSession(_ session: URLSession,
126 |                     streamTask: URLSessionStreamTask,
    |                                 `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 |                     didBecome inputStream: InputStream,
128 |                     outputStream: OutputStream) {
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' 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 URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:31:16: error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'resume'
 29 |     init(hostname: String, port: Int) throws {
 30 |         stream = session.streamTask(withHostName: hostname, port: port)
 31 |         stream.resume()
    |                `- error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'resume'
 32 |
 33 |         writeGroup=DispatchGroup.init()
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:51:16: error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'readData'
 49 |         let maxLength = 4096
 50 |
 51 |         stream.readData(ofMinLength: 1, maxLength: maxLength, timeout: timeout) {
    |                `- error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'readData'
 52 |             (maybeData, atEof, maybeError) in
 53 |
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:84:16: error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'write'
 82 |
 83 |         writeGroup.enter()
 84 |         stream.write(data, timeout: 0, completionHandler: {
    |                `- error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'write'
 85 |             (maybeError) in
 86 |
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:97:16: error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'cancel'
 95 |
 96 |     func close() {
 97 |         stream.cancel()
    |                `- error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'cancel'
 98 |     }
 99 |
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:101:23: error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'state'
 99 |
100 |     var isConnected: Bool {
101 |         return stream.state == .running
    |                       `- error: value of type 'URLSessionStreamTask' (aka 'AnyObject') has no member 'state'
102 |     }
103 |
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:101:33: error: cannot infer contextual base in reference to member 'running'
 99 |
100 |     var isConnected: Bool {
101 |         return stream.state == .running
    |                                 `- error: cannot infer contextual base in reference to member 'running'
102 |     }
103 |
[41/45] Compiling RedShot ResponseParser.swift
/host/spi-builder-workspace/Sources/RedShot/ResponseParser.swift:74:20: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead [#DeprecatedDeclaration]
 72 |             }
 73 |
 74 |             return Data(bytes: buffer)
    |                    `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead [#DeprecatedDeclaration]
 75 |
 76 |         case .simpleString:
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[42/45] Compiling RedShot Constants.swift
[43/45] Compiling RedShot RedisCommands.swift
[44/45] Emitting module RedShot
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:22:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 20 |
 21 | class RedisSocket: NSObject {
 22 |     let session = URLSession(configuration: .default)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 23 |     var stream: URLSessionStreamTask
 24 |
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:22:46: error: cannot infer contextual base in reference to member 'default'
 20 |
 21 | class RedisSocket: NSObject {
 22 |     let session = URLSession(configuration: .default)
    |                                              `- error: cannot infer contextual base in reference to member 'default'
 23 |     var stream: URLSessionStreamTask
 24 |
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:23:17: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 | class RedisSocket: NSObject {
 22 |     let session = URLSession(configuration: .default)
 23 |     var stream: URLSessionStreamTask
    |                 `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |     var writeGroup: DispatchGroup
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' 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 URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:109:24: error: cannot find type 'URLSessionStreamDelegate' in scope
107 | }
108 |
109 | extension RedisSocket: URLSessionStreamDelegate {
    |                        `- error: cannot find type 'URLSessionStreamDelegate' in scope
110 |     func urlSession(_ session: URLSession,
111 |                     readClosedFor streamTask: URLSessionStreamTask) {
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:110:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |
109 | extension RedisSocket: URLSessionStreamDelegate {
110 |     func urlSession(_ session: URLSession,
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |                     readClosedFor streamTask: URLSessionStreamTask) {
112 |
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/RedShot/RedisSocket.swift:111:47: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 | extension RedisSocket: URLSessionStreamDelegate {
110 |     func urlSession(_ session: URLSession,
111 |                     readClosedFor streamTask: URLSessionStreamTask) {
    |                                               `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |
113 |     }
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' 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 URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:115:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |     }
114 |
115 |     func urlSession(_ session: URLSession,
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 |                     writeClosedFor streamTask: URLSessionStreamTask) {
117 |
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/RedShot/RedisSocket.swift:116:48: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |
115 |     func urlSession(_ session: URLSession,
116 |                     writeClosedFor streamTask: URLSessionStreamTask) {
    |                                                `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |
118 |     }
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' 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 URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:120:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |     }
119 |
120 |     func urlSession(_ session: URLSession,
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |                     betterRouteDiscoveredFor streamTask: URLSessionStreamTask) {
122 |
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/RedShot/RedisSocket.swift:121:58: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 |
120 |     func urlSession(_ session: URLSession,
121 |                     betterRouteDiscoveredFor streamTask: URLSessionStreamTask) {
    |                                                          `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 |     }
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' 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 URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:125:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |     }
124 |
125 |     func urlSession(_ session: URLSession,
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 |                     streamTask: URLSessionStreamTask,
127 |                     didBecome inputStream: InputStream,
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/RedShot/RedisSocket.swift:126:33: error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |
125 |     func urlSession(_ session: URLSession,
126 |                     streamTask: URLSessionStreamTask,
    |                                 `- error: 'URLSessionStreamTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 |                     didBecome inputStream: InputStream,
128 |                     outputStream: OutputStream) {
Foundation.URLSessionStreamTask:2:18: note: 'URLSessionStreamTask' 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 URLSessionStreamTask = AnyObject
  |                  `- note: 'URLSessionStreamTask' has been explicitly marked unavailable here
[45/45] Compiling RedShot Redis.swift
/host/spi-builder-workspace/Sources/RedShot/Redis.swift:88:34: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
 86 |
 87 |             let copyData = Data(data)
 88 |             let bytes = copyData.withUnsafeBytes {
    |                                  `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
 89 |                 [UInt8](UnsafeBufferPointer(start: $0, count: data.count))
 90 |             }
/host/spi-builder-workspace/Sources/RedShot/Redis.swift:160:30: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
158 |             }
159 |
160 |             let bytes = data.withUnsafeBytes {
    |                              `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
161 |                 [UInt8](UnsafeBufferPointer(start: $0, count: data.count))
162 |             }
/host/spi-builder-workspace/Sources/RedShot/Redis.swift:183:38: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
181 |                     }
182 |
183 |                     let bytes = data.withUnsafeBytes {
    |                                      `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
184 |                         [UInt8](UnsafeBufferPointer(start: $0, count: data.count))
185 |                     }
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:22:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 20 |
 21 | class RedisSocket: NSObject {
 22 |     let session = URLSession(configuration: .default)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 23 |     var stream: URLSessionStreamTask
 24 |
/host/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:22:46: error: cannot infer contextual base in reference to member 'default'
 20 |
 21 | class RedisSocket: NSObject {
 22 |     let session = URLSession(configuration: .default)
    |                                              `- error: cannot infer contextual base in reference to member 'default'
 23 |     var stream: URLSessionStreamTask
 24 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
BUILD FAILURE 6.2 android