Build Information
Failed to build MediaSizeWatchdog, reference v2.0.0 (23a1c1), with Swift 6.3 for Linux on 29 Jun 2026 08:02:27 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aykhanhajiyev/media-size-watchdog.git
Reference: v2.0.0
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/aykhanhajiyev/media-size-watchdog
* tag v2.0.0 -> FETCH_HEAD
HEAD is now at 23a1c1b Remove debug-only usage guidance from README.
Cloned https://github.com/aykhanhajiyev/media-size-watchdog.git
Revision (git rev-parse @):
23a1c1b6f0cd47e8ba871f2576af877489fca949
SUCCESS checkout https://github.com/aykhanhajiyev/media-size-watchdog.git at v2.0.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.3
Building package at path: $PWD
https://github.com/aykhanhajiyev/media-size-watchdog.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:518d581a7f3cc0f988d8921e0dce92c3361f942cd4cc7d944cb46f8707e06c63
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/14] Compiling MediaSizeWatchdog NSLock+MediaSizeWatchdog.swift
[4/15] Compiling MediaSizeWatchdog MediaSource.swift
[5/15] Compiling MediaSizeWatchdog MediaType.swift
[6/15] Compiling MediaSizeWatchdog MediaSizeWatchdog.swift
[7/15] Compiling MediaSizeWatchdog MediaSizeWatchdogConfig.swift
[8/15] Compiling MediaSizeWatchdog MediaSizeIssueStore.swift
[9/15] Compiling MediaSizeWatchdog MediaSizeLogger.swift
[10/15] Compiling MediaSizeWatchdog MediaSizeFormatter.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/15] Compiling MediaSizeWatchdog MediaSizeIssue.swift
[12/15] Compiling MediaSizeWatchdog CustomNetworkAdapter.swift
[13/15] Compiling MediaSizeWatchdog MediaSizeAdapter.swift
[14/15] Emitting module MediaSizeWatchdog
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:20:52: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
20 | public static func instrument(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let existingProtocolClasses = configuration.protocolClasses ?? []
22 | if !existingProtocolClasses.contains(where: { $0 == URLSessionMediaURLProtocol.self }) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:20:80: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
20 | public static func instrument(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let existingProtocolClasses = configuration.protocolClasses ?? []
22 | if !existingProtocolClasses.contains(where: { $0 == URLSessionMediaURLProtocol.self }) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:29:54: error: cannot find type 'URLSessionDataDelegate' in scope
27 | }
28 |
29 | final class URLSessionMediaURLProtocol: URLProtocol, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
30 | private static let handledKey = "MediaSizeWatchdog.URLProtocolHandled"
31 | private static let reporterLock = NSLock()
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:34:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private static weak var reporter: MediaSizeReporter?
33 |
34 | private var dataTask: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | private var responseURL: URL?
36 | private var mimeType: String?
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/MediaSizeWatchdog/URLSessionMediaAdapter.swift:45:47: error: cannot find type 'URLRequest' in scope
43 | }
44 |
45 | override class func canInit(with request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
46 | guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
47 | return false
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:57:70: error: cannot find type 'URLRequest' in scope
55 | }
56 |
57 | override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
58 | request
59 | }
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:57:55: error: cannot find type 'URLRequest' in scope
55 | }
56 |
57 | override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
58 | request
59 | }
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:61:19: error: method does not override any method from its superclass
59 | }
60 |
61 | override func startLoading() {
| `- error: method does not override any method from its superclass
62 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
63 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:78:19: error: method does not override any method from its superclass
76 | }
77 |
78 | override func stopLoading() {
| `- error: method does not override any method from its superclass
79 | dataTask?.cancel()
80 | dataTask = nil
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:87:50: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 | dataTask: URLSessionDataTask,
86 | didReceive response: URLResponse,
87 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
88 | ) {
89 | responseURL = response.url
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:84:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | func urlSession(
84 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | dataTask: URLSessionDataTask,
86 | didReceive response: URLResponse,
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/MediaSizeWatchdog/URLSessionMediaAdapter.swift:85:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | func urlSession(
84 | _ session: URLSession,
85 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | didReceive response: URLResponse,
87 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
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/MediaSizeWatchdog/URLSessionMediaAdapter.swift:86:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | _ session: URLSession,
85 | dataTask: URLSessionDataTask,
86 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
88 | ) {
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/MediaSizeWatchdog/URLSessionMediaAdapter.swift:95:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | }
94 |
95 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | receivedSize += Int64(data.count)
97 | client?.urlProtocol(self, didLoad: data)
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/MediaSizeWatchdog/URLSessionMediaAdapter.swift:95:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | }
94 |
95 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | receivedSize += Int64(data.count)
97 | client?.urlProtocol(self, didLoad: data)
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/MediaSizeWatchdog/URLSessionMediaAdapter.swift:100:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | }
99 |
100 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | defer {
102 | session.invalidateAndCancel()
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/MediaSizeWatchdog/URLSessionMediaAdapter.swift:100:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | }
99 |
100 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | defer {
102 | session.invalidateAndCancel()
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:29:41: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | final class URLSessionMediaURLProtocol: URLProtocol, URLSessionDataDelegate {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | private static let handledKey = "MediaSizeWatchdog.URLProtocolHandled"
31 | private static let reporterLock = NSLock()
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
[15/15] Compiling MediaSizeWatchdog URLSessionMediaAdapter.swift
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:20:52: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
20 | public static func instrument(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let existingProtocolClasses = configuration.protocolClasses ?? []
22 | if !existingProtocolClasses.contains(where: { $0 == URLSessionMediaURLProtocol.self }) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:20:80: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
20 | public static func instrument(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let existingProtocolClasses = configuration.protocolClasses ?? []
22 | if !existingProtocolClasses.contains(where: { $0 == URLSessionMediaURLProtocol.self }) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:29:54: error: cannot find type 'URLSessionDataDelegate' in scope
27 | }
28 |
29 | final class URLSessionMediaURLProtocol: URLProtocol, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
30 | private static let handledKey = "MediaSizeWatchdog.URLProtocolHandled"
31 | private static let reporterLock = NSLock()
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:34:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private static weak var reporter: MediaSizeReporter?
33 |
34 | private var dataTask: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | private var responseURL: URL?
36 | private var mimeType: String?
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/MediaSizeWatchdog/URLSessionMediaAdapter.swift:45:47: error: cannot find type 'URLRequest' in scope
43 | }
44 |
45 | override class func canInit(with request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
46 | guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
47 | return false
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:57:70: error: cannot find type 'URLRequest' in scope
55 | }
56 |
57 | override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
58 | request
59 | }
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:57:55: error: cannot find type 'URLRequest' in scope
55 | }
56 |
57 | override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
58 | request
59 | }
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:61:19: error: method does not override any method from its superclass
59 | }
60 |
61 | override func startLoading() {
| `- error: method does not override any method from its superclass
62 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
63 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:78:19: error: method does not override any method from its superclass
76 | }
77 |
78 | override func stopLoading() {
| `- error: method does not override any method from its superclass
79 | dataTask?.cancel()
80 | dataTask = nil
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:87:50: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
85 | dataTask: URLSessionDataTask,
86 | didReceive response: URLResponse,
87 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
88 | ) {
89 | responseURL = response.url
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:84:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 |
83 | func urlSession(
84 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | dataTask: URLSessionDataTask,
86 | didReceive response: URLResponse,
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/MediaSizeWatchdog/URLSessionMediaAdapter.swift:85:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | func urlSession(
84 | _ session: URLSession,
85 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | didReceive response: URLResponse,
87 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
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/MediaSizeWatchdog/URLSessionMediaAdapter.swift:86:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | _ session: URLSession,
85 | dataTask: URLSessionDataTask,
86 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
88 | ) {
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/MediaSizeWatchdog/URLSessionMediaAdapter.swift:95:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | }
94 |
95 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | receivedSize += Int64(data.count)
97 | client?.urlProtocol(self, didLoad: data)
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/MediaSizeWatchdog/URLSessionMediaAdapter.swift:95:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | }
94 |
95 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | receivedSize += Int64(data.count)
97 | client?.urlProtocol(self, didLoad: data)
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/MediaSizeWatchdog/URLSessionMediaAdapter.swift:100:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | }
99 |
100 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | defer {
102 | session.invalidateAndCancel()
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/MediaSizeWatchdog/URLSessionMediaAdapter.swift:100:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | }
99 |
100 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | defer {
102 | session.invalidateAndCancel()
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:29:41: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | }
28 |
29 | final class URLSessionMediaURLProtocol: URLProtocol, URLSessionDataDelegate {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | private static let handledKey = "MediaSizeWatchdog.URLProtocolHandled"
31 | private static let reporterLock = NSLock()
Foundation.URLProtocol:2:18: note: 'URLProtocol' 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 URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:12:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
10 | public func start() {
11 | URLSessionMediaURLProtocol.setReporter(reporter)
12 | URLProtocol.registerClass(URLSessionMediaURLProtocol.self)
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
13 | }
14 |
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:16:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
14 |
15 | public func stop() {
16 | URLProtocol.unregisterClass(URLSessionMediaURLProtocol.self)
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'unregisterClass'
17 | URLSessionMediaURLProtocol.setReporter(nil)
18 | }
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:21:53: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
19 |
20 | public static func instrument(_ configuration: URLSessionConfiguration) -> URLSessionConfiguration {
21 | let existingProtocolClasses = configuration.protocolClasses ?? []
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
22 | if !existingProtocolClasses.contains(where: { $0 == URLSessionMediaURLProtocol.self }) {
23 | configuration.protocolClasses = [URLSessionMediaURLProtocol.self] + existingProtocolClasses
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:23:27: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
21 | let existingProtocolClasses = configuration.protocolClasses ?? []
22 | if !existingProtocolClasses.contains(where: { $0 == URLSessionMediaURLProtocol.self }) {
23 | configuration.protocolClasses = [URLSessionMediaURLProtocol.self] + existingProtocolClasses
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
24 | }
25 | return configuration
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:46:27: error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
44 |
45 | override class func canInit(with request: URLRequest) -> Bool {
46 | guard URLProtocol.property(forKey: handledKey, in: request) == nil else {
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
47 | return false
48 | }
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:62:31: error: cannot find 'request' in scope
60 |
61 | override func startLoading() {
62 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find 'request' in scope
63 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
64 |
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:62:42: error: cannot find type 'NSURLRequest' in scope
60 |
61 | override func startLoading() {
62 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find type 'NSURLRequest' in scope
63 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
64 |
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:62:74: error: cannot find type 'NSMutableURLRequest' in scope
60 |
61 | override func startLoading() {
62 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find type 'NSMutableURLRequest' in scope
63 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
64 |
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:63:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
61 | override func startLoading() {
62 | let mutableRequest = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
63 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
| `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
64 |
65 | let configuration = URLSessionConfiguration.default
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:65:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
63 | URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
64 |
65 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
66 | configuration.protocolClasses = []
67 |
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:68:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | configuration.protocolClasses = []
67 |
68 | let session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
69 | configuration: configuration,
70 | delegate: self,
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:71:28: error: 'nil' requires a contextual type
69 | configuration: configuration,
70 | delegate: self,
71 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
72 | )
73 |
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:74:61: error: cannot find type 'URLRequest' in scope
72 | )
73 |
74 | dataTask = session.dataTask(with: mutableRequest as URLRequest)
| `- error: cannot find type 'URLRequest' in scope
75 | dataTask?.resume()
76 | }
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:75:19: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
73 |
74 | dataTask = session.dataTask(with: mutableRequest as URLRequest)
75 | dataTask?.resume()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
76 | }
77 |
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:79:19: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
77 |
78 | override func stopLoading() {
79 | dataTask?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
80 | dataTask = nil
81 | }
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:89:32: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
87 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
88 | ) {
89 | responseURL = response.url
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
90 | mimeType = response.mimeType
91 | client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:90:29: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'mimeType'
88 | ) {
89 | responseURL = response.url
90 | mimeType = response.mimeType
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'mimeType'
91 | client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
92 | completionHandler(.allow)
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:91:9: error: cannot find 'client' in scope
89 | responseURL = response.url
90 | mimeType = response.mimeType
91 | client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
| `- error: cannot find 'client' in scope
92 | completionHandler(.allow)
93 | }
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:91:78: error: cannot infer contextual base in reference to member 'notAllowed'
89 | responseURL = response.url
90 | mimeType = response.mimeType
91 | client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
| `- error: cannot infer contextual base in reference to member 'notAllowed'
92 | completionHandler(.allow)
93 | }
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:92:28: error: cannot infer contextual base in reference to member 'allow'
90 | mimeType = response.mimeType
91 | client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
92 | completionHandler(.allow)
| `- error: cannot infer contextual base in reference to member 'allow'
93 | }
94 |
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:97:9: error: cannot find 'client' in scope
95 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
96 | receivedSize += Int64(data.count)
97 | client?.urlProtocol(self, didLoad: data)
| `- error: cannot find 'client' in scope
98 | }
99 |
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:102:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
100 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
101 | defer {
102 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
103 | }
104 |
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:106:13: error: cannot find 'client' in scope
104 |
105 | if let error {
106 | client?.urlProtocol(self, didFailWithError: error)
| `- error: cannot find 'client' in scope
107 | return
108 | }
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:110:9: error: cannot find 'client' in scope
108 | }
109 |
110 | client?.urlProtocolDidFinishLoading(self)
| `- error: cannot find 'client' in scope
111 |
112 | guard let url = responseURL ?? task.currentRequest?.url else {
/host/spi-builder-workspace/Sources/MediaSizeWatchdog/URLSessionMediaAdapter.swift:112:45: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
110 | client?.urlProtocolDidFinishLoading(self)
111 |
112 | guard let url = responseURL ?? task.currentRequest?.url else {
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
113 | return
114 | }
BUILD FAILURE 6.3 linux