The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AppVitals, reference 1.4.0 (27818f), with Swift 6.1 for Android on 24 Oct 2026 05:59:04 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/himanshulahoti20/AppVitals.git
Reference: 1.4.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/himanshulahoti20/AppVitals
 * tag               1.4.0      -> FETCH_HEAD
HEAD is now at 27818f2 Version 1.4.0 (#4)
Cloned https://github.com/himanshulahoti20/AppVitals.git
Revision (git rev-parse @):
27818f2c403da04caaf5edfebcae0bcc3538170a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/himanshulahoti20/AppVitals.git at 1.4.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/himanshulahoti20/AppVitals.git
https://github.com/himanshulahoti20/AppVitals.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1af1ef9e2b8f7a959ad4dced2035c22f050ae85f531ed2857472423d8f2ef4d3
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version-24593BA9C3E375BF.txt
[9/18] Compiling AppVitalsCore AppVitalsConfiguration.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[10/18] Compiling AppVitalsCore AppVitalsCrashReporter.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/18] Emitting module AppVitalsCore
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/18] Compiling AppVitalsCore AppVitalsEvent.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/18] Compiling AppVitalsCore AppVitalsNotifications.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[14/19] Compiling AppVitalsCore RingBuffer.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[15/19] Compiling AppVitalsCore TestReport.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[16/19] Compiling AppVitalsCore NetworkTransaction.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[17/19] Compiling AppVitalsCore CrashContext.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[18/19] Compiling AppVitalsCore MemorySnapshot.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[19/19] Compiling AppVitalsCore TestRun.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[21/28] Compiling AppVitalsStorage AppVitalsSharedState.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[22/28] Compiling AppVitalsStorage CrashContextStore.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[23/28] Compiling AppVitalsStorage AppVitalsStores.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[24/28] Emitting module AppVitalsStorage
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[25/28] Compiling AppVitalsStorage TestRunStore.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[26/28] Compiling AppVitalsStorage NetworkTransactionStore.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[27/28] Compiling AppVitalsStorage EventStore.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[28/28] Compiling AppVitalsStorage MemoryStore.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[30/38] Compiling AppVitalsNetwork RequestRedactor.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift:11:35: error: cannot find type 'URLRequest' in scope
 9 |     }
10 |
11 |     public func redact(_ request: URLRequest, maxBodyBytes: Int) -> NetworkRequestSnapshot? {
   |                                   `- error: cannot find type 'URLRequest' in scope
12 |         guard let originalURL = request.url else { return nil }
13 |         let url = redactURL(originalURL)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift:23:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     }
22 |
23 |     public func redact(response: HTTPURLResponse, body: Data?, maxBodyBytes: Int) -> NetworkResponseSnapshot {
   |                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         NetworkResponseSnapshot(
25 |             statusCode: response.statusCode,
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/AppVitalsNetwork/RequestRedactor.swift:25:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
23 |     public func redact(response: HTTPURLResponse, body: Data?, maxBodyBytes: Int) -> NetworkResponseSnapshot {
24 |         NetworkResponseSnapshot(
25 |             statusCode: response.statusCode,
   |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
26 |             headers: redactHeaders(response.allHeaderFields.reduce(into: [:]) { result, pair in
27 |                 if let key = pair.key as? String {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift:26:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
24 |         NetworkResponseSnapshot(
25 |             statusCode: response.statusCode,
26 |             headers: redactHeaders(response.allHeaderFields.reduce(into: [:]) { result, pair in
   |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
27 |                 if let key = pair.key as? String {
28 |                     result[key] = "\(pair.value)"
[31/38] Compiling AppVitalsNetwork NetworkTracking.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/AppVitalsNetwork/NetworkTracking.swift:15:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     }
14 |
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
   |                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
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/AppVitalsNetwork/NetworkTracking.swift:15:95: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     }
14 |
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
   |                                                                                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
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/AppVitalsNetwork/NetworkTracking.swift:15:83: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
13 |     }
14 |
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
   |                                                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
/host/spi-builder-workspace/Sources/AppVitalsNetwork/NetworkTracking.swift:12:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
10 |     ) {
11 |         AppVitalsURLProtocol.configure(store: store, eventStore: eventStore, configuration: configuration)
12 |         URLProtocol.registerClass(AppVitalsURLProtocol.self)
   |                     `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
13 |     }
14 |
/host/spi-builder-workspace/Sources/AppVitalsNetwork/NetworkTracking.swift:17:45: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
   |                                             `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
18 |         if !protocolClasses.contains(where: { $0 == AppVitalsURLProtocol.self }) {
19 |             protocolClasses.insert(AppVitalsURLProtocol.self, at: 0)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/NetworkTracking.swift:21:23: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
19 |             protocolClasses.insert(AppVitalsURLProtocol.self, at: 0)
20 |         }
21 |         configuration.protocolClasses = protocolClasses
   |                       `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
22 |         return configuration
23 |     }
[32/38] Compiling AppVitalsPerformance FrameRateMonitor.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[33/38] Emitting module AppVitalsPerformance
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[34/38] Compiling AppVitalsPerformance MemoryMonitor.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
error: emit-module command failed with exit code 1 (use -v to see invocation)
[35/39] Compiling AppVitalsNetwork CURLGenerator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[36/39] Compiling AppVitalsNetwork NetworkBodyFormatter.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[37/39] Emitting module AppVitalsNetwork
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:10:24: error: static property 'forwardingSession' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state
  8 |     /// One session shared across all intercepts — avoids the overhead of creating
  9 |     /// a new URLSession per request and exhausting file descriptors under load.
 10 |     private static let forwardingSession: URLSession = {
    |                        |- error: static property 'forwardingSession' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state
    |                        |- note: add '@MainActor' to make static property 'forwardingSession' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 11 |         let config = URLSessionConfiguration.default
 12 |         // Do NOT register our URLProtocol here — the handledKey property on
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:10:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     /// One session shared across all intercepts — avoids the overhead of creating
  9 |     /// a new URLSession per request and exhausting file descriptors under load.
 10 |     private static let forwardingSession: URLSession = {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         let config = URLSessionConfiguration.default
 12 |         // Do NOT register our URLProtocol here — the handledKey property on
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
  9 |     /// a new URLSession per request and exhausting file descriptors under load.
 10 |     private static let forwardingSession: URLSession = {
 11 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 12 |         // Do NOT register our URLProtocol here — the handledKey property on
 13 |         // forwarded requests is the recursion guard, but a clean config is safer.
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:18:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     }()
 17 |
 18 |     private var dataTask: URLSessionDataTask?
    |                           `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     private var response: HTTPURLResponse?
 20 |     private var responseBody = 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/AppVitalsNetwork/AppVitalsURLProtocol.swift:19:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     private var dataTask: URLSessionDataTask?
 19 |     private var response: HTTPURLResponse?
    |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     private var responseBody = Data()
 21 |     private var startedAt = Date()
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:34:55: error: cannot find type 'URLRequest' in scope
 32 |     }
 33 |
 34 |     override public static func canInit(with request: URLRequest) -> Bool {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 35 |         guard URLProtocol.property(forKey: handledKey, in: request) == nil else { return false }
 36 |         return request.url?.scheme?.hasPrefix("http") == true
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:39:78: error: cannot find type 'URLRequest' in scope
 37 |     }
 38 |
 39 |     override public static func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                              `- error: cannot find type 'URLRequest' in scope
 40 |         request
 41 |     }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:39:63: error: cannot find type 'URLRequest' in scope
 37 |     }
 38 |
 39 |     override public static func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                               `- error: cannot find type 'URLRequest' in scope
 40 |         request
 41 |     }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:43:26: error: method does not override any method from its superclass
 41 |     }
 42 |
 43 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
 44 |         startedAt = Date()
 45 |
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:55:26: error: method does not override any method from its superclass
 53 |     }
 54 |
 55 |     override public func stopLoading() {
    |                          `- error: method does not override any method from its superclass
 56 |         dataTask?.cancel()
 57 |         dataTask = nil
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:87:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |     }
 86 |
 87 |     private func finish(response: URLResponse?, error: Error?) {
    |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |         let completedAt = Date()
 89 |         let requestSnapshot = requestSnapshot
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:5:42: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | import Foundation
  4 |
  5 | public final class AppVitalsURLProtocol: URLProtocol, @unchecked Sendable {
    |                                          `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private static let handledKey = "AppVitalsURLProtocolHandled"
  7 |     private static let state = URLProtocolState()
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:136:32: error: cannot find type 'URLRequest' in scope
134 |     }
135 |
136 |     func snapshot(for request: URLRequest) -> NetworkRequestSnapshot? {
    |                                `- error: cannot find type 'URLRequest' in scope
137 |         guard configuration.isEnabled, configuration.isNetworkTrackingEnabled else { return nil }
138 |         return RequestRedactor(policy: configuration.redactionPolicy)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/NetworkTracking.swift:15:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     }
14 |
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
   |                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
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/AppVitalsNetwork/NetworkTracking.swift:15:95: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     }
14 |
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
   |                                                                                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
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/AppVitalsNetwork/NetworkTracking.swift:15:83: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
13 |     }
14 |
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
   |                                                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
/host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift:11:35: error: cannot find type 'URLRequest' in scope
 9 |     }
10 |
11 |     public func redact(_ request: URLRequest, maxBodyBytes: Int) -> NetworkRequestSnapshot? {
   |                                   `- error: cannot find type 'URLRequest' in scope
12 |         guard let originalURL = request.url else { return nil }
13 |         let url = redactURL(originalURL)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift:23:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     }
22 |
23 |     public func redact(response: HTTPURLResponse, body: Data?, maxBodyBytes: Int) -> NetworkResponseSnapshot {
   |                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         NetworkResponseSnapshot(
25 |             statusCode: response.statusCode,
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
[38/39] Compiling AppVitalsNetwork AppVitalsURLProtocol.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:10:24: error: static property 'forwardingSession' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state
  8 |     /// One session shared across all intercepts — avoids the overhead of creating
  9 |     /// a new URLSession per request and exhausting file descriptors under load.
 10 |     private static let forwardingSession: URLSession = {
    |                        |- error: static property 'forwardingSession' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state
    |                        |- note: add '@MainActor' to make static property 'forwardingSession' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 11 |         let config = URLSessionConfiguration.default
 12 |         // Do NOT register our URLProtocol here — the handledKey property on
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:10:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     /// One session shared across all intercepts — avoids the overhead of creating
  9 |     /// a new URLSession per request and exhausting file descriptors under load.
 10 |     private static let forwardingSession: URLSession = {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         let config = URLSessionConfiguration.default
 12 |         // Do NOT register our URLProtocol here — the handledKey property on
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
  9 |     /// a new URLSession per request and exhausting file descriptors under load.
 10 |     private static let forwardingSession: URLSession = {
 11 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 12 |         // Do NOT register our URLProtocol here — the handledKey property on
 13 |         // forwarded requests is the recursion guard, but a clean config is safer.
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:18:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     }()
 17 |
 18 |     private var dataTask: URLSessionDataTask?
    |                           `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     private var response: HTTPURLResponse?
 20 |     private var responseBody = 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/AppVitalsNetwork/AppVitalsURLProtocol.swift:19:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     private var dataTask: URLSessionDataTask?
 19 |     private var response: HTTPURLResponse?
    |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     private var responseBody = Data()
 21 |     private var startedAt = Date()
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:34:55: error: cannot find type 'URLRequest' in scope
 32 |     }
 33 |
 34 |     override public static func canInit(with request: URLRequest) -> Bool {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 35 |         guard URLProtocol.property(forKey: handledKey, in: request) == nil else { return false }
 36 |         return request.url?.scheme?.hasPrefix("http") == true
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:39:78: error: cannot find type 'URLRequest' in scope
 37 |     }
 38 |
 39 |     override public static func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                              `- error: cannot find type 'URLRequest' in scope
 40 |         request
 41 |     }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:39:63: error: cannot find type 'URLRequest' in scope
 37 |     }
 38 |
 39 |     override public static func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                               `- error: cannot find type 'URLRequest' in scope
 40 |         request
 41 |     }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:43:26: error: method does not override any method from its superclass
 41 |     }
 42 |
 43 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
 44 |         startedAt = Date()
 45 |
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:55:26: error: method does not override any method from its superclass
 53 |     }
 54 |
 55 |     override public func stopLoading() {
    |                          `- error: method does not override any method from its superclass
 56 |         dataTask?.cancel()
 57 |         dataTask = nil
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:87:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |     }
 86 |
 87 |     private func finish(response: URLResponse?, error: Error?) {
    |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |         let completedAt = Date()
 89 |         let requestSnapshot = requestSnapshot
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:5:42: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | import Foundation
  4 |
  5 | public final class AppVitalsURLProtocol: URLProtocol, @unchecked Sendable {
    |                                          `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private static let handledKey = "AppVitalsURLProtocolHandled"
  7 |     private static let state = URLProtocolState()
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:136:32: error: cannot find type 'URLRequest' in scope
134 |     }
135 |
136 |     func snapshot(for request: URLRequest) -> NetworkRequestSnapshot? {
    |                                `- error: cannot find type 'URLRequest' in scope
137 |         guard configuration.isEnabled, configuration.isNetworkTrackingEnabled else { return nil }
138 |         return RequestRedactor(policy: configuration.redactionPolicy)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:35:27: error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
 33 |
 34 |     override public static func canInit(with request: URLRequest) -> Bool {
 35 |         guard URLProtocol.property(forKey: handledKey, in: request) == nil else { return false }
    |                           `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
 36 |         return request.url?.scheme?.hasPrefix("http") == true
 37 |     }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:47:59: error: cannot find 'request' in scope
 45 |
 46 |         Task {
 47 |             let snapshot = await Self.state.snapshot(for: request)
    |                                                           `- error: cannot find 'request' in scope
 48 |             await MainActor.run {
 49 |                 self.requestSnapshot = snapshot
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:56:19: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 54 |
 55 |     override public func stopLoading() {
 56 |         dataTask?.cancel()
    |                   `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 57 |         dataTask = nil
 58 |     }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:61:31: error: cannot find 'request' in scope
 59 |
 60 |     private func startTask() {
 61 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as? NSMutableURLRequest
    |                               `- error: cannot find 'request' in scope
 62 |         guard let mutableRequest else {
 63 |             client?.urlProtocol(self, didFailWithError: URLError(.badURL))
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:61:42: error: cannot find type 'NSURLRequest' in scope
 59 |
 60 |     private func startTask() {
 61 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as? NSMutableURLRequest
    |                                          `- error: cannot find type 'NSURLRequest' in scope
 62 |         guard let mutableRequest else {
 63 |             client?.urlProtocol(self, didFailWithError: URLError(.badURL))
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:61:74: error: cannot find type 'NSMutableURLRequest' in scope
 59 |
 60 |     private func startTask() {
 61 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as? NSMutableURLRequest
    |                                                                          `- error: cannot find type 'NSMutableURLRequest' in scope
 62 |         guard let mutableRequest else {
 63 |             client?.urlProtocol(self, didFailWithError: URLError(.badURL))
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:63:13: error: cannot find 'client' in scope
 61 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as? NSMutableURLRequest
 62 |         guard let mutableRequest else {
 63 |             client?.urlProtocol(self, didFailWithError: URLError(.badURL))
    |             `- error: cannot find 'client' in scope
 64 |             return
 65 |         }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:67:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
 65 |         }
 66 |
 67 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
    |                     `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
 68 |         dataTask = Self.forwardingSession.dataTask(with: mutableRequest as URLRequest) { [weak self] data, response, error in
 69 |             guard let self else { return }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:71:17: error: cannot find 'client' in scope
 69 |             guard let self else { return }
 70 |             if let response {
 71 |                 client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
    |                 `- error: cannot find 'client' in scope
 72 |             }
 73 |             if let data {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:75:17: error: cannot find 'client' in scope
 73 |             if let data {
 74 |                 responseBody.append(data)
 75 |                 client?.urlProtocol(self, didLoad: data)
    |                 `- error: cannot find 'client' in scope
 76 |             }
 77 |             if let error {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:78:17: error: cannot find 'client' in scope
 76 |             }
 77 |             if let error {
 78 |                 client?.urlProtocol(self, didFailWithError: error)
    |                 `- error: cannot find 'client' in scope
 79 |             } else {
 80 |                 client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:80:17: error: cannot find 'client' in scope
 78 |                 client?.urlProtocol(self, didFailWithError: error)
 79 |             } else {
 80 |                 client?.urlProtocolDidFinishLoading(self)
    |                 `- error: cannot find 'client' in scope
 81 |             }
 82 |             finish(response: response, error: error)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:68:76: error: cannot find type 'URLRequest' in scope
 66 |
 67 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
 68 |         dataTask = Self.forwardingSession.dataTask(with: mutableRequest as URLRequest) { [weak self] data, response, error in
    |                                                                            `- error: cannot find type 'URLRequest' in scope
 69 |             guard let self else { return }
 70 |             if let response {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:68:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 66 |
 67 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
 68 |         dataTask = Self.forwardingSession.dataTask(with: mutableRequest as URLRequest) { [weak self] data, response, error in
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 69 |             guard let self else { return }
 70 |             if let response {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:68:102: error: cannot infer type of closure parameter 'data' without a type annotation
 66 |
 67 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
 68 |         dataTask = Self.forwardingSession.dataTask(with: mutableRequest as URLRequest) { [weak self] data, response, error in
    |                                                                                                      `- error: cannot infer type of closure parameter 'data' without a type annotation
 69 |             guard let self else { return }
 70 |             if let response {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:68:108: error: cannot infer type of closure parameter 'response' without a type annotation
 66 |
 67 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
 68 |         dataTask = Self.forwardingSession.dataTask(with: mutableRequest as URLRequest) { [weak self] data, response, error in
    |                                                                                                            `- error: cannot infer type of closure parameter 'response' without a type annotation
 69 |             guard let self else { return }
 70 |             if let response {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:68:118: error: cannot infer type of closure parameter 'error' without a type annotation
 66 |
 67 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
 68 |         dataTask = Self.forwardingSession.dataTask(with: mutableRequest as URLRequest) { [weak self] data, response, error in
    |                                                                                                                      `- error: cannot infer type of closure parameter 'error' without a type annotation
 69 |             guard let self else { return }
 70 |             if let response {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:71:86: error: cannot infer contextual base in reference to member 'notAllowed'
 69 |             guard let self else { return }
 70 |             if let response {
 71 |                 client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
    |                                                                                      `- error: cannot infer contextual base in reference to member 'notAllowed'
 72 |             }
 73 |             if let data {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:84:19: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
 82 |             finish(response: response, error: error)
 83 |         }
 84 |         dataTask?.resume()
    |                   `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
 85 |     }
 86 |
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:90:37: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 88 |         let completedAt = Date()
 89 |         let requestSnapshot = requestSnapshot
 90 |         let httpResponse = response as? HTTPURLResponse
    |                                     `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 91 |         let statusCode = httpResponse?.statusCode
 92 |         let headers = httpResponse?.allHeaderFields.reduce(into: [String: String]()) { result, pair in
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:90:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |         let completedAt = Date()
 89 |         let requestSnapshot = requestSnapshot
 90 |         let httpResponse = response as? HTTPURLResponse
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         let statusCode = httpResponse?.statusCode
 92 |         let headers = httpResponse?.allHeaderFields.reduce(into: [String: String]()) { result, pair in
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:91:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 89 |         let requestSnapshot = requestSnapshot
 90 |         let httpResponse = response as? HTTPURLResponse
 91 |         let statusCode = httpResponse?.statusCode
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 92 |         let headers = httpResponse?.allHeaderFields.reduce(into: [String: String]()) { result, pair in
 93 |             if let key = pair.key as? String {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:92:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 90 |         let httpResponse = response as? HTTPURLResponse
 91 |         let statusCode = httpResponse?.statusCode
 92 |         let headers = httpResponse?.allHeaderFields.reduce(into: [String: String]()) { result, pair in
    |                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 93 |             if let key = pair.key as? String {
 94 |                 result[key] = "\(pair.value)"
/host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift:11:35: error: cannot find type 'URLRequest' in scope
 9 |     }
10 |
11 |     public func redact(_ request: URLRequest, maxBodyBytes: Int) -> NetworkRequestSnapshot? {
   |                                   `- error: cannot find type 'URLRequest' in scope
12 |         guard let originalURL = request.url else { return nil }
13 |         let url = redactURL(originalURL)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:139:20: error: missing argument label 'response:' in call
137 |         guard configuration.isEnabled, configuration.isNetworkTrackingEnabled else { return nil }
138 |         return RequestRedactor(policy: configuration.redactionPolicy)
139 |             .redact(request, maxBodyBytes: configuration.limits.maxBodyBytes)
    |                    `- error: missing argument label 'response:' in call
140 |     }
141 |
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:139:28: error: missing argument for parameter 'body' in call
137 |         guard configuration.isEnabled, configuration.isNetworkTrackingEnabled else { return nil }
138 |         return RequestRedactor(policy: configuration.redactionPolicy)
139 |             .redact(request, maxBodyBytes: configuration.limits.maxBodyBytes)
    |                            `- error: missing argument for parameter 'body' in call
140 |     }
141 |
/host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift:23:17: note: 'redact(response:body:maxBodyBytes:)' declared here
21 |     }
22 |
23 |     public func redact(response: HTTPURLResponse, body: Data?, maxBodyBytes: Int) -> NetworkResponseSnapshot {
   |                 `- note: 'redact(response:body:maxBodyBytes:)' declared here
24 |         NetworkResponseSnapshot(
25 |             statusCode: response.statusCode,
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:139:14: error: cannot convert return expression of type 'NetworkResponseSnapshot' to return type 'NetworkRequestSnapshot'
137 |         guard configuration.isEnabled, configuration.isNetworkTrackingEnabled else { return nil }
138 |         return RequestRedactor(policy: configuration.redactionPolicy)
139 |             .redact(request, maxBodyBytes: configuration.limits.maxBodyBytes)
    |              `- error: cannot convert return expression of type 'NetworkResponseSnapshot' to return type 'NetworkRequestSnapshot'
140 |     }
141 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1af1ef9e2b8f7a959ad4dced2035c22f050ae85f531ed2857472423d8f2ef4d3
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/11] Compiling AppVitalsCore CrashContext.swift
[3/12] Compiling AppVitalsCore AppVitalsConfiguration.swift
[4/12] Compiling AppVitalsCore AppVitalsCrashReporter.swift
[5/12] Emitting module AppVitalsCore
[6/12] Compiling AppVitalsCore AppVitalsEvent.swift
[7/12] Compiling AppVitalsCore AppVitalsNotifications.swift
[8/12] Compiling AppVitalsCore TestRun.swift
[9/12] Compiling AppVitalsCore RingBuffer.swift
[10/12] Compiling AppVitalsCore TestReport.swift
[11/12] Compiling AppVitalsCore MemorySnapshot.swift
[12/12] Compiling AppVitalsCore NetworkTransaction.swift
[14/21] Emitting module AppVitalsStorage
[15/21] Compiling AppVitalsStorage AppVitalsStores.swift
[16/21] Compiling AppVitalsStorage TestRunStore.swift
[17/21] Compiling AppVitalsStorage AppVitalsSharedState.swift
[18/21] Compiling AppVitalsStorage CrashContextStore.swift
[19/21] Compiling AppVitalsStorage EventStore.swift
[20/21] Compiling AppVitalsStorage NetworkTransactionStore.swift
[21/21] Compiling AppVitalsStorage MemoryStore.swift
[23/31] Emitting module AppVitalsPerformance
[24/31] Compiling AppVitalsPerformance MemoryMonitor.swift
[25/31] Compiling AppVitalsPerformance FrameRateMonitor.swift
[26/32] Compiling AppVitalsNetwork RequestRedactor.swift
/host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift:11:35: error: cannot find type 'URLRequest' in scope
 9 |     }
10 |
11 |     public func redact(_ request: URLRequest, maxBodyBytes: Int) -> NetworkRequestSnapshot? {
   |                                   `- error: cannot find type 'URLRequest' in scope
12 |         guard let originalURL = request.url else { return nil }
13 |         let url = redactURL(originalURL)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift:23:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     }
22 |
23 |     public func redact(response: HTTPURLResponse, body: Data?, maxBodyBytes: Int) -> NetworkResponseSnapshot {
   |                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         NetworkResponseSnapshot(
25 |             statusCode: response.statusCode,
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/AppVitalsNetwork/RequestRedactor.swift:25:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
23 |     public func redact(response: HTTPURLResponse, body: Data?, maxBodyBytes: Int) -> NetworkResponseSnapshot {
24 |         NetworkResponseSnapshot(
25 |             statusCode: response.statusCode,
   |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
26 |             headers: redactHeaders(response.allHeaderFields.reduce(into: [:]) { result, pair in
27 |                 if let key = pair.key as? String {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift:26:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
24 |         NetworkResponseSnapshot(
25 |             statusCode: response.statusCode,
26 |             headers: redactHeaders(response.allHeaderFields.reduce(into: [:]) { result, pair in
   |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
27 |                 if let key = pair.key as? String {
28 |                     result[key] = "\(pair.value)"
[27/32] Compiling AppVitalsNetwork NetworkTracking.swift
/host/spi-builder-workspace/Sources/AppVitalsNetwork/NetworkTracking.swift:15:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     }
14 |
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
   |                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
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/AppVitalsNetwork/NetworkTracking.swift:15:95: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     }
14 |
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
   |                                                                                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
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/AppVitalsNetwork/NetworkTracking.swift:15:83: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
13 |     }
14 |
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
   |                                                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
/host/spi-builder-workspace/Sources/AppVitalsNetwork/NetworkTracking.swift:12:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
10 |     ) {
11 |         AppVitalsURLProtocol.configure(store: store, eventStore: eventStore, configuration: configuration)
12 |         URLProtocol.registerClass(AppVitalsURLProtocol.self)
   |                     `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'registerClass'
13 |     }
14 |
/host/spi-builder-workspace/Sources/AppVitalsNetwork/NetworkTracking.swift:17:45: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
   |                                             `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
18 |         if !protocolClasses.contains(where: { $0 == AppVitalsURLProtocol.self }) {
19 |             protocolClasses.insert(AppVitalsURLProtocol.self, at: 0)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/NetworkTracking.swift:21:23: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
19 |             protocolClasses.insert(AppVitalsURLProtocol.self, at: 0)
20 |         }
21 |         configuration.protocolClasses = protocolClasses
   |                       `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'protocolClasses'
22 |         return configuration
23 |     }
[28/32] Compiling AppVitalsNetwork NetworkBodyFormatter.swift
[29/32] Compiling AppVitalsNetwork CURLGenerator.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[30/32] Emitting module AppVitalsNetwork
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:10:24: error: static property 'forwardingSession' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state
  8 |     /// One session shared across all intercepts — avoids the overhead of creating
  9 |     /// a new URLSession per request and exhausting file descriptors under load.
 10 |     private static let forwardingSession: URLSession = {
    |                        |- error: static property 'forwardingSession' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state
    |                        |- note: add '@MainActor' to make static property 'forwardingSession' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 11 |         let config = URLSessionConfiguration.default
 12 |         // Do NOT register our URLProtocol here — the handledKey property on
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:10:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     /// One session shared across all intercepts — avoids the overhead of creating
  9 |     /// a new URLSession per request and exhausting file descriptors under load.
 10 |     private static let forwardingSession: URLSession = {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         let config = URLSessionConfiguration.default
 12 |         // Do NOT register our URLProtocol here — the handledKey property on
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
  9 |     /// a new URLSession per request and exhausting file descriptors under load.
 10 |     private static let forwardingSession: URLSession = {
 11 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 12 |         // Do NOT register our URLProtocol here — the handledKey property on
 13 |         // forwarded requests is the recursion guard, but a clean config is safer.
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:18:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     }()
 17 |
 18 |     private var dataTask: URLSessionDataTask?
    |                           `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     private var response: HTTPURLResponse?
 20 |     private var responseBody = 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/AppVitalsNetwork/AppVitalsURLProtocol.swift:19:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     private var dataTask: URLSessionDataTask?
 19 |     private var response: HTTPURLResponse?
    |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     private var responseBody = Data()
 21 |     private var startedAt = Date()
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:34:55: error: cannot find type 'URLRequest' in scope
 32 |     }
 33 |
 34 |     override public static func canInit(with request: URLRequest) -> Bool {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 35 |         guard URLProtocol.property(forKey: handledKey, in: request) == nil else { return false }
 36 |         return request.url?.scheme?.hasPrefix("http") == true
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:39:78: error: cannot find type 'URLRequest' in scope
 37 |     }
 38 |
 39 |     override public static func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                              `- error: cannot find type 'URLRequest' in scope
 40 |         request
 41 |     }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:39:63: error: cannot find type 'URLRequest' in scope
 37 |     }
 38 |
 39 |     override public static func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                               `- error: cannot find type 'URLRequest' in scope
 40 |         request
 41 |     }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:43:26: error: method does not override any method from its superclass
 41 |     }
 42 |
 43 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
 44 |         startedAt = Date()
 45 |
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:55:26: error: method does not override any method from its superclass
 53 |     }
 54 |
 55 |     override public func stopLoading() {
    |                          `- error: method does not override any method from its superclass
 56 |         dataTask?.cancel()
 57 |         dataTask = nil
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:87:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |     }
 86 |
 87 |     private func finish(response: URLResponse?, error: Error?) {
    |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |         let completedAt = Date()
 89 |         let requestSnapshot = requestSnapshot
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:5:42: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | import Foundation
  4 |
  5 | public final class AppVitalsURLProtocol: URLProtocol, @unchecked Sendable {
    |                                          `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private static let handledKey = "AppVitalsURLProtocolHandled"
  7 |     private static let state = URLProtocolState()
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:136:32: error: cannot find type 'URLRequest' in scope
134 |     }
135 |
136 |     func snapshot(for request: URLRequest) -> NetworkRequestSnapshot? {
    |                                `- error: cannot find type 'URLRequest' in scope
137 |         guard configuration.isEnabled, configuration.isNetworkTrackingEnabled else { return nil }
138 |         return RequestRedactor(policy: configuration.redactionPolicy)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/NetworkTracking.swift:15:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     }
14 |
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
   |                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
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/AppVitalsNetwork/NetworkTracking.swift:15:95: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     }
14 |
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
   |                                                                                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
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/AppVitalsNetwork/NetworkTracking.swift:15:83: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
13 |     }
14 |
15 |     public static func sessionConfiguration(from base: URLSessionConfiguration = .default) -> URLSessionConfiguration {
   |                                                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
16 |         let configuration = base
17 |         var protocolClasses = configuration.protocolClasses ?? []
/host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift:11:35: error: cannot find type 'URLRequest' in scope
 9 |     }
10 |
11 |     public func redact(_ request: URLRequest, maxBodyBytes: Int) -> NetworkRequestSnapshot? {
   |                                   `- error: cannot find type 'URLRequest' in scope
12 |         guard let originalURL = request.url else { return nil }
13 |         let url = redactURL(originalURL)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift:23:34: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     }
22 |
23 |     public func redact(response: HTTPURLResponse, body: Data?, maxBodyBytes: Int) -> NetworkResponseSnapshot {
   |                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         NetworkResponseSnapshot(
25 |             statusCode: response.statusCode,
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
[31/32] Compiling AppVitalsNetwork AppVitalsURLProtocol.swift
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:10:24: error: static property 'forwardingSession' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state
  8 |     /// One session shared across all intercepts — avoids the overhead of creating
  9 |     /// a new URLSession per request and exhausting file descriptors under load.
 10 |     private static let forwardingSession: URLSession = {
    |                        |- error: static property 'forwardingSession' is not concurrency-safe because non-'Sendable' type 'URLSession' (aka 'AnyObject') may have shared mutable state
    |                        |- note: add '@MainActor' to make static property 'forwardingSession' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 11 |         let config = URLSessionConfiguration.default
 12 |         // Do NOT register our URLProtocol here — the handledKey property on
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:10:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |     /// One session shared across all intercepts — avoids the overhead of creating
  9 |     /// a new URLSession per request and exhausting file descriptors under load.
 10 |     private static let forwardingSession: URLSession = {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |         let config = URLSessionConfiguration.default
 12 |         // Do NOT register our URLProtocol here — the handledKey property on
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
  9 |     /// a new URLSession per request and exhausting file descriptors under load.
 10 |     private static let forwardingSession: URLSession = {
 11 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 12 |         // Do NOT register our URLProtocol here — the handledKey property on
 13 |         // forwarded requests is the recursion guard, but a clean config is safer.
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:18:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     }()
 17 |
 18 |     private var dataTask: URLSessionDataTask?
    |                           `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     private var response: HTTPURLResponse?
 20 |     private var responseBody = 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/AppVitalsNetwork/AppVitalsURLProtocol.swift:19:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     private var dataTask: URLSessionDataTask?
 19 |     private var response: HTTPURLResponse?
    |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     private var responseBody = Data()
 21 |     private var startedAt = Date()
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:34:55: error: cannot find type 'URLRequest' in scope
 32 |     }
 33 |
 34 |     override public static func canInit(with request: URLRequest) -> Bool {
    |                                                       `- error: cannot find type 'URLRequest' in scope
 35 |         guard URLProtocol.property(forKey: handledKey, in: request) == nil else { return false }
 36 |         return request.url?.scheme?.hasPrefix("http") == true
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:39:78: error: cannot find type 'URLRequest' in scope
 37 |     }
 38 |
 39 |     override public static func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                                              `- error: cannot find type 'URLRequest' in scope
 40 |         request
 41 |     }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:39:63: error: cannot find type 'URLRequest' in scope
 37 |     }
 38 |
 39 |     override public static func canonicalRequest(for request: URLRequest) -> URLRequest {
    |                                                               `- error: cannot find type 'URLRequest' in scope
 40 |         request
 41 |     }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:43:26: error: method does not override any method from its superclass
 41 |     }
 42 |
 43 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
 44 |         startedAt = Date()
 45 |
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:55:26: error: method does not override any method from its superclass
 53 |     }
 54 |
 55 |     override public func stopLoading() {
    |                          `- error: method does not override any method from its superclass
 56 |         dataTask?.cancel()
 57 |         dataTask = nil
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:87:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |     }
 86 |
 87 |     private func finish(response: URLResponse?, error: Error?) {
    |                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |         let completedAt = Date()
 89 |         let requestSnapshot = requestSnapshot
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:5:42: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | import Foundation
  4 |
  5 | public final class AppVitalsURLProtocol: URLProtocol, @unchecked Sendable {
    |                                          `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private static let handledKey = "AppVitalsURLProtocolHandled"
  7 |     private static let state = URLProtocolState()
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:136:32: error: cannot find type 'URLRequest' in scope
134 |     }
135 |
136 |     func snapshot(for request: URLRequest) -> NetworkRequestSnapshot? {
    |                                `- error: cannot find type 'URLRequest' in scope
137 |         guard configuration.isEnabled, configuration.isNetworkTrackingEnabled else { return nil }
138 |         return RequestRedactor(policy: configuration.redactionPolicy)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:35:27: error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
 33 |
 34 |     override public static func canInit(with request: URLRequest) -> Bool {
 35 |         guard URLProtocol.property(forKey: handledKey, in: request) == nil else { return false }
    |                           `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'property'
 36 |         return request.url?.scheme?.hasPrefix("http") == true
 37 |     }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:47:59: error: cannot find 'request' in scope
 45 |
 46 |         Task {
 47 |             let snapshot = await Self.state.snapshot(for: request)
    |                                                           `- error: cannot find 'request' in scope
 48 |             await MainActor.run {
 49 |                 self.requestSnapshot = snapshot
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:56:19: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 54 |
 55 |     override public func stopLoading() {
 56 |         dataTask?.cancel()
    |                   `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 57 |         dataTask = nil
 58 |     }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:61:31: error: cannot find 'request' in scope
 59 |
 60 |     private func startTask() {
 61 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as? NSMutableURLRequest
    |                               `- error: cannot find 'request' in scope
 62 |         guard let mutableRequest else {
 63 |             client?.urlProtocol(self, didFailWithError: URLError(.badURL))
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:61:42: error: cannot find type 'NSURLRequest' in scope
 59 |
 60 |     private func startTask() {
 61 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as? NSMutableURLRequest
    |                                          `- error: cannot find type 'NSURLRequest' in scope
 62 |         guard let mutableRequest else {
 63 |             client?.urlProtocol(self, didFailWithError: URLError(.badURL))
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:61:74: error: cannot find type 'NSMutableURLRequest' in scope
 59 |
 60 |     private func startTask() {
 61 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as? NSMutableURLRequest
    |                                                                          `- error: cannot find type 'NSMutableURLRequest' in scope
 62 |         guard let mutableRequest else {
 63 |             client?.urlProtocol(self, didFailWithError: URLError(.badURL))
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:63:13: error: cannot find 'client' in scope
 61 |         let mutableRequest = (request as NSURLRequest).mutableCopy() as? NSMutableURLRequest
 62 |         guard let mutableRequest else {
 63 |             client?.urlProtocol(self, didFailWithError: URLError(.badURL))
    |             `- error: cannot find 'client' in scope
 64 |             return
 65 |         }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:67:21: error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
 65 |         }
 66 |
 67 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
    |                     `- error: type 'URLProtocol' (aka 'AnyObject') has no member 'setProperty'
 68 |         dataTask = Self.forwardingSession.dataTask(with: mutableRequest as URLRequest) { [weak self] data, response, error in
 69 |             guard let self else { return }
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:71:17: error: cannot find 'client' in scope
 69 |             guard let self else { return }
 70 |             if let response {
 71 |                 client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
    |                 `- error: cannot find 'client' in scope
 72 |             }
 73 |             if let data {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:75:17: error: cannot find 'client' in scope
 73 |             if let data {
 74 |                 responseBody.append(data)
 75 |                 client?.urlProtocol(self, didLoad: data)
    |                 `- error: cannot find 'client' in scope
 76 |             }
 77 |             if let error {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:78:17: error: cannot find 'client' in scope
 76 |             }
 77 |             if let error {
 78 |                 client?.urlProtocol(self, didFailWithError: error)
    |                 `- error: cannot find 'client' in scope
 79 |             } else {
 80 |                 client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:80:17: error: cannot find 'client' in scope
 78 |                 client?.urlProtocol(self, didFailWithError: error)
 79 |             } else {
 80 |                 client?.urlProtocolDidFinishLoading(self)
    |                 `- error: cannot find 'client' in scope
 81 |             }
 82 |             finish(response: response, error: error)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:68:76: error: cannot find type 'URLRequest' in scope
 66 |
 67 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
 68 |         dataTask = Self.forwardingSession.dataTask(with: mutableRequest as URLRequest) { [weak self] data, response, error in
    |                                                                            `- error: cannot find type 'URLRequest' in scope
 69 |             guard let self else { return }
 70 |             if let response {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:68:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 66 |
 67 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
 68 |         dataTask = Self.forwardingSession.dataTask(with: mutableRequest as URLRequest) { [weak self] data, response, error in
    |                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 69 |             guard let self else { return }
 70 |             if let response {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:68:102: error: cannot infer type of closure parameter 'data' without a type annotation
 66 |
 67 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
 68 |         dataTask = Self.forwardingSession.dataTask(with: mutableRequest as URLRequest) { [weak self] data, response, error in
    |                                                                                                      `- error: cannot infer type of closure parameter 'data' without a type annotation
 69 |             guard let self else { return }
 70 |             if let response {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:68:108: error: cannot infer type of closure parameter 'response' without a type annotation
 66 |
 67 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
 68 |         dataTask = Self.forwardingSession.dataTask(with: mutableRequest as URLRequest) { [weak self] data, response, error in
    |                                                                                                            `- error: cannot infer type of closure parameter 'response' without a type annotation
 69 |             guard let self else { return }
 70 |             if let response {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:68:118: error: cannot infer type of closure parameter 'error' without a type annotation
 66 |
 67 |         URLProtocol.setProperty(true, forKey: Self.handledKey, in: mutableRequest)
 68 |         dataTask = Self.forwardingSession.dataTask(with: mutableRequest as URLRequest) { [weak self] data, response, error in
    |                                                                                                                      `- error: cannot infer type of closure parameter 'error' without a type annotation
 69 |             guard let self else { return }
 70 |             if let response {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:71:86: error: cannot infer contextual base in reference to member 'notAllowed'
 69 |             guard let self else { return }
 70 |             if let response {
 71 |                 client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
    |                                                                                      `- error: cannot infer contextual base in reference to member 'notAllowed'
 72 |             }
 73 |             if let data {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:84:19: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
 82 |             finish(response: response, error: error)
 83 |         }
 84 |         dataTask?.resume()
    |                   `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
 85 |     }
 86 |
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:90:37: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 88 |         let completedAt = Date()
 89 |         let requestSnapshot = requestSnapshot
 90 |         let httpResponse = response as? HTTPURLResponse
    |                                     `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 91 |         let statusCode = httpResponse?.statusCode
 92 |         let headers = httpResponse?.allHeaderFields.reduce(into: [String: String]()) { result, pair in
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:90:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |         let completedAt = Date()
 89 |         let requestSnapshot = requestSnapshot
 90 |         let httpResponse = response as? HTTPURLResponse
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         let statusCode = httpResponse?.statusCode
 92 |         let headers = httpResponse?.allHeaderFields.reduce(into: [String: String]()) { result, pair in
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/AppVitalsNetwork/AppVitalsURLProtocol.swift:91:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 89 |         let requestSnapshot = requestSnapshot
 90 |         let httpResponse = response as? HTTPURLResponse
 91 |         let statusCode = httpResponse?.statusCode
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 92 |         let headers = httpResponse?.allHeaderFields.reduce(into: [String: String]()) { result, pair in
 93 |             if let key = pair.key as? String {
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:92:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 90 |         let httpResponse = response as? HTTPURLResponse
 91 |         let statusCode = httpResponse?.statusCode
 92 |         let headers = httpResponse?.allHeaderFields.reduce(into: [String: String]()) { result, pair in
    |                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 93 |             if let key = pair.key as? String {
 94 |                 result[key] = "\(pair.value)"
/host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift:11:35: error: cannot find type 'URLRequest' in scope
 9 |     }
10 |
11 |     public func redact(_ request: URLRequest, maxBodyBytes: Int) -> NetworkRequestSnapshot? {
   |                                   `- error: cannot find type 'URLRequest' in scope
12 |         guard let originalURL = request.url else { return nil }
13 |         let url = redactURL(originalURL)
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:139:20: error: missing argument label 'response:' in call
137 |         guard configuration.isEnabled, configuration.isNetworkTrackingEnabled else { return nil }
138 |         return RequestRedactor(policy: configuration.redactionPolicy)
139 |             .redact(request, maxBodyBytes: configuration.limits.maxBodyBytes)
    |                    `- error: missing argument label 'response:' in call
140 |     }
141 |
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:139:28: error: missing argument for parameter 'body' in call
137 |         guard configuration.isEnabled, configuration.isNetworkTrackingEnabled else { return nil }
138 |         return RequestRedactor(policy: configuration.redactionPolicy)
139 |             .redact(request, maxBodyBytes: configuration.limits.maxBodyBytes)
    |                            `- error: missing argument for parameter 'body' in call
140 |     }
141 |
/host/spi-builder-workspace/Sources/AppVitalsNetwork/RequestRedactor.swift:23:17: note: 'redact(response:body:maxBodyBytes:)' declared here
21 |     }
22 |
23 |     public func redact(response: HTTPURLResponse, body: Data?, maxBodyBytes: Int) -> NetworkResponseSnapshot {
   |                 `- note: 'redact(response:body:maxBodyBytes:)' declared here
24 |         NetworkResponseSnapshot(
25 |             statusCode: response.statusCode,
/host/spi-builder-workspace/Sources/AppVitalsNetwork/AppVitalsURLProtocol.swift:139:14: error: cannot convert return expression of type 'NetworkResponseSnapshot' to return type 'NetworkRequestSnapshot'
137 |         guard configuration.isEnabled, configuration.isNetworkTrackingEnabled else { return nil }
138 |         return RequestRedactor(policy: configuration.redactionPolicy)
139 |             .redact(request, maxBodyBytes: configuration.limits.maxBodyBytes)
    |              `- error: cannot convert return expression of type 'NetworkResponseSnapshot' to return type 'NetworkRequestSnapshot'
140 |     }
141 |
BUILD FAILURE 6.1 android