Build Information
Failed to build ATProtoKit, reference main (618aa3), with Swift 6.2 for Wasm on 2 Dec 2025 09:15:21 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:64:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:65:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
65 | print("Status: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
66 | print("Headers: \(httpResponse.allHeaderFields)")
67 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:66:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
64 | if let httpResponse = response as? HTTPURLResponse {
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
67 | }
68 | if let data = data, let jsonString = String(data: data, encoding: .utf8) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:55:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// - data: The raw response data, if any. Optional.
54 | /// - error: An `Error` if the request failed. Optional.
55 | func logResponse(_ response: URLResponse?, data: Data?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | }
57 |
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
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[405/582] Compiling ATProtoKit ExtensionHelpers.swift
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:24:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
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/ATProtoKit/Utilities/APIClientConfiguration.swift:28:24: error: cannot find type 'URLSessionDelegate' in scope
26 | /// A session delegate object that handles requests for authentication and other session-related events.
27 | /// Optional. Defaults to `nil`.
28 | var delegate: (any URLSessionDelegate)? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
29 |
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:32:24: error: cannot find type 'OperationQueue' in scope
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
31 | /// Defaults to `nil`.
32 | var delegateQueue: OperationQueue? = nil
| `- error: cannot find type 'OperationQueue' in scope
33 |
34 | /// A provider used for the response of the `URLRequest`. Optional. Defaults to `nil`.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:35:29: error: cannot find type 'URLRequest' in scope
33 | ///
34 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
35 | func execute(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
36 | }
37 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:44:32: error: cannot find type 'URLRequest' in scope
42 | /// - request: The `URLRequest` about to be sent.
43 | /// - body: The encoded HTTP body data for the request. Optional.
44 | func logRequest(_ request: URLRequest, body: Data?)
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | /// Creates a log immediately after a response is received (or a request fails).
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:54:24: error: cannot find type 'URLSessionDelegate' in scope
52 | public init(
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
54 | delegate: (any URLSessionDelegate)? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
55 | delegateQueue: OperationQueue? = nil,
56 | responseProvider: ATRequestExecutor? = nil,
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:55:24: error: cannot find type 'OperationQueue' in scope
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
54 | delegate: (any URLSessionDelegate)? = nil,
55 | delegateQueue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
56 | responseProvider: ATRequestExecutor? = nil,
57 | logger: SessionDebuggable? = nil
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:53:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | /// Defaults to `nil`.
52 | public init(
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | delegate: (any URLSessionDelegate)? = nil,
55 | delegateQueue: OperationQueue? = nil,
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/ATProtoKit/Utilities/APIClientConfiguration.swift:24:9: warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' contains non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject'); this is an error in the Swift 6 language mode
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' contains non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject'); this is an error in the Swift 6 language mode
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// An instance of ``ATRequestExecutor``.
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/ATProtoKit/Utilities/APIClientService.swift:20:54: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:81: error: cannot infer contextual base in reference to member 'default'
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:120:133: error: cannot find type 'URLRequest' in scope
118 | public func createRequest(forRequest requestURL: URL, andMethod httpMethod: HTTPMethod, acceptValue: String? = "application/json",
119 | contentTypeValue: String? = "application/json", authorizationValue: String? = nil,
120 | labelersValue: String? = nil, proxyValue: String? = nil, isRelatedToBskyChat: Bool = false) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
121 | var request = URLRequest(url: requestURL)
122 | request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:189:54: error: cannot find type 'URLRequest' in scope
187 | /// - decodeTo: The type to decode the response into.
188 | /// - Returns: An instance of the specified `Decodable` type.
189 | public func sendRequest<T: Decodable>(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
190 | let data = try await self.performRequest(request, withEncodingBody: body)
191 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:209:40: error: cannot find type 'URLRequest' in scope
207 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
208 | /// - Returns: A `Data` object that contains the blob.
209 | public func sendRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
210 | let data = try await self.performRequest(request, withEncodingBody: body)
211 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:221:54: error: cannot find type 'URLRequest' in scope
219 | /// - decodeTo: The type to decode the response into.
220 | /// - Returns: An instance of the specified `Decodable` type.
221 | public func sendRequest<T: Decodable>(_ request: URLRequest, withDataBody data: Data, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
222 | let urlRequest = request
223 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:247:44: error: cannot find type 'URLRequest' in scope
245 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
246 | /// - Returns: A tuple containing the data and the HTTPURLResponse.
247 | private func performRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
248 | // Wait for ATRecordTypeRegistry to be ready before proceeding
249 | await ATRecordTypeRegistry.shared.waitUntilRegistryIsRead()
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:29: warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:97:64: error: reference to member 'default' cannot be resolved without a contextual type
95 | /// - ``APIClientConfiguration``
96 | public init(with configuration: APIClientConfiguration) {
97 | let config = configuration.urlSessionConfiguration ?? .default
| `- error: reference to member 'default' cannot be resolved without a contextual type
98 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
99 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:99:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | let config = configuration.urlSessionConfiguration ?? .default
98 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
99 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | self.executor = configuration.responseProvider
101 | self.logger = configuration.logger
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:121:23: error: cannot find 'URLRequest' in scope
119 | contentTypeValue: String? = "application/json", authorizationValue: String? = nil,
120 | labelersValue: String? = nil, proxyValue: String? = nil, isRelatedToBskyChat: Bool = false) -> URLRequest {
121 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
122 | request.httpMethod = httpMethod.rawValue
123 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:225:61: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
223 |
224 | // let (data, response) = try await
225 | let (responseData, response) = try await urlSession.upload(for: urlRequest, from: data)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
226 |
227 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:268:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |
267 | do {
268 | let (data, response): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 | if let executor = self.executor {
270 | (data, response) = try await executor.execute(urlRequest)
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/ATProtoKit/Utilities/APIClientService.swift:272:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
270 | (data, response) = try await executor.execute(urlRequest)
271 | } else {
272 | (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
273 | }
274 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:279:44: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
277 | #endif
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
280 | switch httpResponse.statusCode {
281 | case 200:
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:279:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
277 | #endif
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
280 | switch httpResponse.statusCode {
281 | case 200:
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/ATProtoKit/Utilities/APIClientService.swift:280:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
280 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 | case 200:
282 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:291:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
289 | throw ATAPIError.badRequest(error: errorResponse)
290 | case 401:
291 | let wwwAuthenticateHeader = httpResponse.allHeaderFields["WWW-Authenticate"] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
292 | let errorResponse = try JSONDecoder().decode(ATHTTPResponseError.self, from: data)
293 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:327:101: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
325 | throw ATAPIError.payloadTooLarge(error: errorResponse)
326 | case 429:
327 | let retryAfterValue: TimeInterval? = if let retryAfterHeader = httpResponse.allHeaderFields["ratelimit-reset"] as? String {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
328 | TimeInterval(retryAfterHeader)
329 | } else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:375:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
373 | default:
374 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
375 | let errorCode = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
376 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
377 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:376:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
374 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
375 | let errorCode = httpResponse.statusCode
376 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
377 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
378 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:113:33: error: cannot find 'DispatchQueue' in scope
111 |
112 | /// A private dispatch queue for the registry.
113 | private let registryQueue = DispatchQueue(label: "com.cjrriley.ATProtoKit.ATRecordTypeRegistryQueue")
| `- error: cannot find 'DispatchQueue' in scope
114 |
115 | /// A private property of ``recordRegistry``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:116:29: warning: static property '_recordRegistry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
114 |
115 | /// A private property of ``recordRegistry``.
116 | private(set) static var _recordRegistry: [String: any ATRecordProtocol.Type] = [:]
| |- warning: static property '_recordRegistry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert '_recordRegistry' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_recordRegistry' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The registry itself.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:139:36: warning: static property 'areBlueskyRecordsRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
137 | ///
138 | /// - Warning: Don't touch this property; this should only be used for ``ATProtoKit``.
139 | public private(set) static var areBlueskyRecordsRegistered = false
| |- warning: static property 'areBlueskyRecordsRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'areBlueskyRecordsRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'areBlueskyRecordsRegistered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | /// Tracks whether the registry is currently being modified.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:35:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | ///
34 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
35 | func execute(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:42:39: error: cannot find type 'URLRequest' in scope
40 | /// - request: The `URLRequest` about to be sent.
41 | /// - body: The encoded HTTP body data for the request. Optional.
42 | public func logRequest(_ request: URLRequest, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
43 | print("\n--- API REQUEST ---")
44 | print("URL: \(request.url?.absoluteString ?? "(nil)")")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:62:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | /// - data: The raw response data, if any. Optional.
61 | /// - error: An `Error` if the request failed. Optional.
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:64:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:64:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:65:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
65 | print("Status: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
66 | print("Headers: \(httpResponse.allHeaderFields)")
67 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:66:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
64 | if let httpResponse = response as? HTTPURLResponse {
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
67 | }
68 | if let data = data, let jsonString = String(data: data, encoding: .utf8) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:55:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// - data: The raw response data, if any. Optional.
54 | /// - error: An `Error` if the request failed. Optional.
55 | func logResponse(_ response: URLResponse?, data: Data?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | }
57 |
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
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[406/582] Compiling ATProtoKit TruncatedEncoding.swift
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:24:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
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/ATProtoKit/Utilities/APIClientConfiguration.swift:28:24: error: cannot find type 'URLSessionDelegate' in scope
26 | /// A session delegate object that handles requests for authentication and other session-related events.
27 | /// Optional. Defaults to `nil`.
28 | var delegate: (any URLSessionDelegate)? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
29 |
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:32:24: error: cannot find type 'OperationQueue' in scope
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
31 | /// Defaults to `nil`.
32 | var delegateQueue: OperationQueue? = nil
| `- error: cannot find type 'OperationQueue' in scope
33 |
34 | /// A provider used for the response of the `URLRequest`. Optional. Defaults to `nil`.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:35:29: error: cannot find type 'URLRequest' in scope
33 | ///
34 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
35 | func execute(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
36 | }
37 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:44:32: error: cannot find type 'URLRequest' in scope
42 | /// - request: The `URLRequest` about to be sent.
43 | /// - body: The encoded HTTP body data for the request. Optional.
44 | func logRequest(_ request: URLRequest, body: Data?)
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | /// Creates a log immediately after a response is received (or a request fails).
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:54:24: error: cannot find type 'URLSessionDelegate' in scope
52 | public init(
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
54 | delegate: (any URLSessionDelegate)? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
55 | delegateQueue: OperationQueue? = nil,
56 | responseProvider: ATRequestExecutor? = nil,
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:55:24: error: cannot find type 'OperationQueue' in scope
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
54 | delegate: (any URLSessionDelegate)? = nil,
55 | delegateQueue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
56 | responseProvider: ATRequestExecutor? = nil,
57 | logger: SessionDebuggable? = nil
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:53:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | /// Defaults to `nil`.
52 | public init(
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | delegate: (any URLSessionDelegate)? = nil,
55 | delegateQueue: OperationQueue? = nil,
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/ATProtoKit/Utilities/APIClientConfiguration.swift:24:9: warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' contains non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject'); this is an error in the Swift 6 language mode
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' contains non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject'); this is an error in the Swift 6 language mode
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// An instance of ``ATRequestExecutor``.
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/ATProtoKit/Utilities/APIClientService.swift:20:54: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:81: error: cannot infer contextual base in reference to member 'default'
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:120:133: error: cannot find type 'URLRequest' in scope
118 | public func createRequest(forRequest requestURL: URL, andMethod httpMethod: HTTPMethod, acceptValue: String? = "application/json",
119 | contentTypeValue: String? = "application/json", authorizationValue: String? = nil,
120 | labelersValue: String? = nil, proxyValue: String? = nil, isRelatedToBskyChat: Bool = false) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
121 | var request = URLRequest(url: requestURL)
122 | request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:189:54: error: cannot find type 'URLRequest' in scope
187 | /// - decodeTo: The type to decode the response into.
188 | /// - Returns: An instance of the specified `Decodable` type.
189 | public func sendRequest<T: Decodable>(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
190 | let data = try await self.performRequest(request, withEncodingBody: body)
191 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:209:40: error: cannot find type 'URLRequest' in scope
207 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
208 | /// - Returns: A `Data` object that contains the blob.
209 | public func sendRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
210 | let data = try await self.performRequest(request, withEncodingBody: body)
211 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:221:54: error: cannot find type 'URLRequest' in scope
219 | /// - decodeTo: The type to decode the response into.
220 | /// - Returns: An instance of the specified `Decodable` type.
221 | public func sendRequest<T: Decodable>(_ request: URLRequest, withDataBody data: Data, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
222 | let urlRequest = request
223 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:247:44: error: cannot find type 'URLRequest' in scope
245 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
246 | /// - Returns: A tuple containing the data and the HTTPURLResponse.
247 | private func performRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
248 | // Wait for ATRecordTypeRegistry to be ready before proceeding
249 | await ATRecordTypeRegistry.shared.waitUntilRegistryIsRead()
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:29: warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:97:64: error: reference to member 'default' cannot be resolved without a contextual type
95 | /// - ``APIClientConfiguration``
96 | public init(with configuration: APIClientConfiguration) {
97 | let config = configuration.urlSessionConfiguration ?? .default
| `- error: reference to member 'default' cannot be resolved without a contextual type
98 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
99 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:99:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | let config = configuration.urlSessionConfiguration ?? .default
98 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
99 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | self.executor = configuration.responseProvider
101 | self.logger = configuration.logger
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:121:23: error: cannot find 'URLRequest' in scope
119 | contentTypeValue: String? = "application/json", authorizationValue: String? = nil,
120 | labelersValue: String? = nil, proxyValue: String? = nil, isRelatedToBskyChat: Bool = false) -> URLRequest {
121 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
122 | request.httpMethod = httpMethod.rawValue
123 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:225:61: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
223 |
224 | // let (data, response) = try await
225 | let (responseData, response) = try await urlSession.upload(for: urlRequest, from: data)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
226 |
227 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:268:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |
267 | do {
268 | let (data, response): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 | if let executor = self.executor {
270 | (data, response) = try await executor.execute(urlRequest)
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/ATProtoKit/Utilities/APIClientService.swift:272:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
270 | (data, response) = try await executor.execute(urlRequest)
271 | } else {
272 | (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
273 | }
274 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:279:44: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
277 | #endif
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
280 | switch httpResponse.statusCode {
281 | case 200:
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:279:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
277 | #endif
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
280 | switch httpResponse.statusCode {
281 | case 200:
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/ATProtoKit/Utilities/APIClientService.swift:280:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
280 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 | case 200:
282 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:291:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
289 | throw ATAPIError.badRequest(error: errorResponse)
290 | case 401:
291 | let wwwAuthenticateHeader = httpResponse.allHeaderFields["WWW-Authenticate"] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
292 | let errorResponse = try JSONDecoder().decode(ATHTTPResponseError.self, from: data)
293 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:327:101: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
325 | throw ATAPIError.payloadTooLarge(error: errorResponse)
326 | case 429:
327 | let retryAfterValue: TimeInterval? = if let retryAfterHeader = httpResponse.allHeaderFields["ratelimit-reset"] as? String {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
328 | TimeInterval(retryAfterHeader)
329 | } else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:375:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
373 | default:
374 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
375 | let errorCode = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
376 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
377 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:376:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
374 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
375 | let errorCode = httpResponse.statusCode
376 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
377 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
378 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:113:33: error: cannot find 'DispatchQueue' in scope
111 |
112 | /// A private dispatch queue for the registry.
113 | private let registryQueue = DispatchQueue(label: "com.cjrriley.ATProtoKit.ATRecordTypeRegistryQueue")
| `- error: cannot find 'DispatchQueue' in scope
114 |
115 | /// A private property of ``recordRegistry``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:116:29: warning: static property '_recordRegistry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
114 |
115 | /// A private property of ``recordRegistry``.
116 | private(set) static var _recordRegistry: [String: any ATRecordProtocol.Type] = [:]
| |- warning: static property '_recordRegistry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert '_recordRegistry' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_recordRegistry' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The registry itself.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:139:36: warning: static property 'areBlueskyRecordsRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
137 | ///
138 | /// - Warning: Don't touch this property; this should only be used for ``ATProtoKit``.
139 | public private(set) static var areBlueskyRecordsRegistered = false
| |- warning: static property 'areBlueskyRecordsRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'areBlueskyRecordsRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'areBlueskyRecordsRegistered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | /// Tracks whether the registry is currently being modified.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:35:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | ///
34 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
35 | func execute(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:42:39: error: cannot find type 'URLRequest' in scope
40 | /// - request: The `URLRequest` about to be sent.
41 | /// - body: The encoded HTTP body data for the request. Optional.
42 | public func logRequest(_ request: URLRequest, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
43 | print("\n--- API REQUEST ---")
44 | print("URL: \(request.url?.absoluteString ?? "(nil)")")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:62:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | /// - data: The raw response data, if any. Optional.
61 | /// - error: An `Error` if the request failed. Optional.
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:64:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:64:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:65:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
65 | print("Status: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
66 | print("Headers: \(httpResponse.allHeaderFields)")
67 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:66:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
64 | if let httpResponse = response as? HTTPURLResponse {
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
67 | }
68 | if let data = data, let jsonString = String(data: data, encoding: .utf8) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:55:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// - data: The raw response data, if any. Optional.
54 | /// - error: An `Error` if the request failed. Optional.
55 | func logResponse(_ response: URLResponse?, data: Data?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | }
57 |
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
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[407/582] Compiling ATProtoKit ConsoleDebugger.swift
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:24:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
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/ATProtoKit/Utilities/APIClientConfiguration.swift:28:24: error: cannot find type 'URLSessionDelegate' in scope
26 | /// A session delegate object that handles requests for authentication and other session-related events.
27 | /// Optional. Defaults to `nil`.
28 | var delegate: (any URLSessionDelegate)? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
29 |
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:32:24: error: cannot find type 'OperationQueue' in scope
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
31 | /// Defaults to `nil`.
32 | var delegateQueue: OperationQueue? = nil
| `- error: cannot find type 'OperationQueue' in scope
33 |
34 | /// A provider used for the response of the `URLRequest`. Optional. Defaults to `nil`.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:35:29: error: cannot find type 'URLRequest' in scope
33 | ///
34 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
35 | func execute(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
36 | }
37 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:44:32: error: cannot find type 'URLRequest' in scope
42 | /// - request: The `URLRequest` about to be sent.
43 | /// - body: The encoded HTTP body data for the request. Optional.
44 | func logRequest(_ request: URLRequest, body: Data?)
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | /// Creates a log immediately after a response is received (or a request fails).
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:54:24: error: cannot find type 'URLSessionDelegate' in scope
52 | public init(
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
54 | delegate: (any URLSessionDelegate)? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
55 | delegateQueue: OperationQueue? = nil,
56 | responseProvider: ATRequestExecutor? = nil,
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:55:24: error: cannot find type 'OperationQueue' in scope
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
54 | delegate: (any URLSessionDelegate)? = nil,
55 | delegateQueue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
56 | responseProvider: ATRequestExecutor? = nil,
57 | logger: SessionDebuggable? = nil
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:53:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | /// Defaults to `nil`.
52 | public init(
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | delegate: (any URLSessionDelegate)? = nil,
55 | delegateQueue: OperationQueue? = nil,
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/ATProtoKit/Utilities/APIClientConfiguration.swift:24:9: warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' contains non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject'); this is an error in the Swift 6 language mode
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' contains non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject'); this is an error in the Swift 6 language mode
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// An instance of ``ATRequestExecutor``.
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/ATProtoKit/Utilities/APIClientService.swift:20:54: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:81: error: cannot infer contextual base in reference to member 'default'
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:120:133: error: cannot find type 'URLRequest' in scope
118 | public func createRequest(forRequest requestURL: URL, andMethod httpMethod: HTTPMethod, acceptValue: String? = "application/json",
119 | contentTypeValue: String? = "application/json", authorizationValue: String? = nil,
120 | labelersValue: String? = nil, proxyValue: String? = nil, isRelatedToBskyChat: Bool = false) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
121 | var request = URLRequest(url: requestURL)
122 | request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:189:54: error: cannot find type 'URLRequest' in scope
187 | /// - decodeTo: The type to decode the response into.
188 | /// - Returns: An instance of the specified `Decodable` type.
189 | public func sendRequest<T: Decodable>(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
190 | let data = try await self.performRequest(request, withEncodingBody: body)
191 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:209:40: error: cannot find type 'URLRequest' in scope
207 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
208 | /// - Returns: A `Data` object that contains the blob.
209 | public func sendRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
210 | let data = try await self.performRequest(request, withEncodingBody: body)
211 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:221:54: error: cannot find type 'URLRequest' in scope
219 | /// - decodeTo: The type to decode the response into.
220 | /// - Returns: An instance of the specified `Decodable` type.
221 | public func sendRequest<T: Decodable>(_ request: URLRequest, withDataBody data: Data, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
222 | let urlRequest = request
223 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:247:44: error: cannot find type 'URLRequest' in scope
245 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
246 | /// - Returns: A tuple containing the data and the HTTPURLResponse.
247 | private func performRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
248 | // Wait for ATRecordTypeRegistry to be ready before proceeding
249 | await ATRecordTypeRegistry.shared.waitUntilRegistryIsRead()
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:29: warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:97:64: error: reference to member 'default' cannot be resolved without a contextual type
95 | /// - ``APIClientConfiguration``
96 | public init(with configuration: APIClientConfiguration) {
97 | let config = configuration.urlSessionConfiguration ?? .default
| `- error: reference to member 'default' cannot be resolved without a contextual type
98 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
99 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:99:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | let config = configuration.urlSessionConfiguration ?? .default
98 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
99 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | self.executor = configuration.responseProvider
101 | self.logger = configuration.logger
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:121:23: error: cannot find 'URLRequest' in scope
119 | contentTypeValue: String? = "application/json", authorizationValue: String? = nil,
120 | labelersValue: String? = nil, proxyValue: String? = nil, isRelatedToBskyChat: Bool = false) -> URLRequest {
121 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
122 | request.httpMethod = httpMethod.rawValue
123 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:225:61: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
223 |
224 | // let (data, response) = try await
225 | let (responseData, response) = try await urlSession.upload(for: urlRequest, from: data)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
226 |
227 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:268:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |
267 | do {
268 | let (data, response): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 | if let executor = self.executor {
270 | (data, response) = try await executor.execute(urlRequest)
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/ATProtoKit/Utilities/APIClientService.swift:272:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
270 | (data, response) = try await executor.execute(urlRequest)
271 | } else {
272 | (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
273 | }
274 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:279:44: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
277 | #endif
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
280 | switch httpResponse.statusCode {
281 | case 200:
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:279:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
277 | #endif
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
280 | switch httpResponse.statusCode {
281 | case 200:
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/ATProtoKit/Utilities/APIClientService.swift:280:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
280 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 | case 200:
282 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:291:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
289 | throw ATAPIError.badRequest(error: errorResponse)
290 | case 401:
291 | let wwwAuthenticateHeader = httpResponse.allHeaderFields["WWW-Authenticate"] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
292 | let errorResponse = try JSONDecoder().decode(ATHTTPResponseError.self, from: data)
293 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:327:101: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
325 | throw ATAPIError.payloadTooLarge(error: errorResponse)
326 | case 429:
327 | let retryAfterValue: TimeInterval? = if let retryAfterHeader = httpResponse.allHeaderFields["ratelimit-reset"] as? String {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
328 | TimeInterval(retryAfterHeader)
329 | } else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:375:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
373 | default:
374 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
375 | let errorCode = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
376 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
377 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:376:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
374 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
375 | let errorCode = httpResponse.statusCode
376 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
377 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
378 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:113:33: error: cannot find 'DispatchQueue' in scope
111 |
112 | /// A private dispatch queue for the registry.
113 | private let registryQueue = DispatchQueue(label: "com.cjrriley.ATProtoKit.ATRecordTypeRegistryQueue")
| `- error: cannot find 'DispatchQueue' in scope
114 |
115 | /// A private property of ``recordRegistry``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:116:29: warning: static property '_recordRegistry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
114 |
115 | /// A private property of ``recordRegistry``.
116 | private(set) static var _recordRegistry: [String: any ATRecordProtocol.Type] = [:]
| |- warning: static property '_recordRegistry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert '_recordRegistry' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_recordRegistry' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The registry itself.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:139:36: warning: static property 'areBlueskyRecordsRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
137 | ///
138 | /// - Warning: Don't touch this property; this should only be used for ``ATProtoKit``.
139 | public private(set) static var areBlueskyRecordsRegistered = false
| |- warning: static property 'areBlueskyRecordsRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'areBlueskyRecordsRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'areBlueskyRecordsRegistered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | /// Tracks whether the registry is currently being modified.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:35:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | ///
34 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
35 | func execute(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:42:39: error: cannot find type 'URLRequest' in scope
40 | /// - request: The `URLRequest` about to be sent.
41 | /// - body: The encoded HTTP body data for the request. Optional.
42 | public func logRequest(_ request: URLRequest, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
43 | print("\n--- API REQUEST ---")
44 | print("URL: \(request.url?.absoluteString ?? "(nil)")")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:62:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | /// - data: The raw response data, if any. Optional.
61 | /// - error: An `Error` if the request failed. Optional.
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:64:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:64:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:65:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
65 | print("Status: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
66 | print("Headers: \(httpResponse.allHeaderFields)")
67 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:66:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
64 | if let httpResponse = response as? HTTPURLResponse {
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
67 | }
68 | if let data = data, let jsonString = String(data: data, encoding: .utf8) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:55:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// - data: The raw response data, if any. Optional.
54 | /// - error: An `Error` if the request failed. Optional.
55 | func logResponse(_ response: URLResponse?, data: Data?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | }
57 |
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
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[408/582] Compiling ATProtoKit Logging.swift
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:24:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
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/ATProtoKit/Utilities/APIClientConfiguration.swift:28:24: error: cannot find type 'URLSessionDelegate' in scope
26 | /// A session delegate object that handles requests for authentication and other session-related events.
27 | /// Optional. Defaults to `nil`.
28 | var delegate: (any URLSessionDelegate)? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
29 |
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:32:24: error: cannot find type 'OperationQueue' in scope
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
31 | /// Defaults to `nil`.
32 | var delegateQueue: OperationQueue? = nil
| `- error: cannot find type 'OperationQueue' in scope
33 |
34 | /// A provider used for the response of the `URLRequest`. Optional. Defaults to `nil`.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:35:29: error: cannot find type 'URLRequest' in scope
33 | ///
34 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
35 | func execute(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
36 | }
37 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:44:32: error: cannot find type 'URLRequest' in scope
42 | /// - request: The `URLRequest` about to be sent.
43 | /// - body: The encoded HTTP body data for the request. Optional.
44 | func logRequest(_ request: URLRequest, body: Data?)
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | /// Creates a log immediately after a response is received (or a request fails).
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:54:24: error: cannot find type 'URLSessionDelegate' in scope
52 | public init(
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
54 | delegate: (any URLSessionDelegate)? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
55 | delegateQueue: OperationQueue? = nil,
56 | responseProvider: ATRequestExecutor? = nil,
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:55:24: error: cannot find type 'OperationQueue' in scope
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
54 | delegate: (any URLSessionDelegate)? = nil,
55 | delegateQueue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
56 | responseProvider: ATRequestExecutor? = nil,
57 | logger: SessionDebuggable? = nil
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:53:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | /// Defaults to `nil`.
52 | public init(
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | delegate: (any URLSessionDelegate)? = nil,
55 | delegateQueue: OperationQueue? = nil,
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/ATProtoKit/Utilities/APIClientConfiguration.swift:24:9: warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' contains non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject'); this is an error in the Swift 6 language mode
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' contains non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject'); this is an error in the Swift 6 language mode
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// An instance of ``ATRequestExecutor``.
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/ATProtoKit/Utilities/APIClientService.swift:20:54: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:81: error: cannot infer contextual base in reference to member 'default'
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:120:133: error: cannot find type 'URLRequest' in scope
118 | public func createRequest(forRequest requestURL: URL, andMethod httpMethod: HTTPMethod, acceptValue: String? = "application/json",
119 | contentTypeValue: String? = "application/json", authorizationValue: String? = nil,
120 | labelersValue: String? = nil, proxyValue: String? = nil, isRelatedToBskyChat: Bool = false) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
121 | var request = URLRequest(url: requestURL)
122 | request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:189:54: error: cannot find type 'URLRequest' in scope
187 | /// - decodeTo: The type to decode the response into.
188 | /// - Returns: An instance of the specified `Decodable` type.
189 | public func sendRequest<T: Decodable>(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
190 | let data = try await self.performRequest(request, withEncodingBody: body)
191 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:209:40: error: cannot find type 'URLRequest' in scope
207 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
208 | /// - Returns: A `Data` object that contains the blob.
209 | public func sendRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
210 | let data = try await self.performRequest(request, withEncodingBody: body)
211 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:221:54: error: cannot find type 'URLRequest' in scope
219 | /// - decodeTo: The type to decode the response into.
220 | /// - Returns: An instance of the specified `Decodable` type.
221 | public func sendRequest<T: Decodable>(_ request: URLRequest, withDataBody data: Data, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
222 | let urlRequest = request
223 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:247:44: error: cannot find type 'URLRequest' in scope
245 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
246 | /// - Returns: A tuple containing the data and the HTTPURLResponse.
247 | private func performRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
248 | // Wait for ATRecordTypeRegistry to be ready before proceeding
249 | await ATRecordTypeRegistry.shared.waitUntilRegistryIsRead()
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:29: warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:97:64: error: reference to member 'default' cannot be resolved without a contextual type
95 | /// - ``APIClientConfiguration``
96 | public init(with configuration: APIClientConfiguration) {
97 | let config = configuration.urlSessionConfiguration ?? .default
| `- error: reference to member 'default' cannot be resolved without a contextual type
98 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
99 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:99:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | let config = configuration.urlSessionConfiguration ?? .default
98 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
99 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | self.executor = configuration.responseProvider
101 | self.logger = configuration.logger
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:121:23: error: cannot find 'URLRequest' in scope
119 | contentTypeValue: String? = "application/json", authorizationValue: String? = nil,
120 | labelersValue: String? = nil, proxyValue: String? = nil, isRelatedToBskyChat: Bool = false) -> URLRequest {
121 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
122 | request.httpMethod = httpMethod.rawValue
123 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:225:61: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
223 |
224 | // let (data, response) = try await
225 | let (responseData, response) = try await urlSession.upload(for: urlRequest, from: data)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
226 |
227 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:268:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |
267 | do {
268 | let (data, response): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 | if let executor = self.executor {
270 | (data, response) = try await executor.execute(urlRequest)
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/ATProtoKit/Utilities/APIClientService.swift:272:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
270 | (data, response) = try await executor.execute(urlRequest)
271 | } else {
272 | (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
273 | }
274 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:279:44: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
277 | #endif
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
280 | switch httpResponse.statusCode {
281 | case 200:
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:279:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
277 | #endif
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
280 | switch httpResponse.statusCode {
281 | case 200:
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/ATProtoKit/Utilities/APIClientService.swift:280:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
280 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 | case 200:
282 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:291:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
289 | throw ATAPIError.badRequest(error: errorResponse)
290 | case 401:
291 | let wwwAuthenticateHeader = httpResponse.allHeaderFields["WWW-Authenticate"] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
292 | let errorResponse = try JSONDecoder().decode(ATHTTPResponseError.self, from: data)
293 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:327:101: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
325 | throw ATAPIError.payloadTooLarge(error: errorResponse)
326 | case 429:
327 | let retryAfterValue: TimeInterval? = if let retryAfterHeader = httpResponse.allHeaderFields["ratelimit-reset"] as? String {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
328 | TimeInterval(retryAfterHeader)
329 | } else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:375:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
373 | default:
374 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
375 | let errorCode = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
376 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
377 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:376:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
374 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
375 | let errorCode = httpResponse.statusCode
376 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
377 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
378 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:113:33: error: cannot find 'DispatchQueue' in scope
111 |
112 | /// A private dispatch queue for the registry.
113 | private let registryQueue = DispatchQueue(label: "com.cjrriley.ATProtoKit.ATRecordTypeRegistryQueue")
| `- error: cannot find 'DispatchQueue' in scope
114 |
115 | /// A private property of ``recordRegistry``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:116:29: warning: static property '_recordRegistry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
114 |
115 | /// A private property of ``recordRegistry``.
116 | private(set) static var _recordRegistry: [String: any ATRecordProtocol.Type] = [:]
| |- warning: static property '_recordRegistry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert '_recordRegistry' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_recordRegistry' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The registry itself.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:139:36: warning: static property 'areBlueskyRecordsRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
137 | ///
138 | /// - Warning: Don't touch this property; this should only be used for ``ATProtoKit``.
139 | public private(set) static var areBlueskyRecordsRegistered = false
| |- warning: static property 'areBlueskyRecordsRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'areBlueskyRecordsRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'areBlueskyRecordsRegistered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | /// Tracks whether the registry is currently being modified.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:35:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | ///
34 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
35 | func execute(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:42:39: error: cannot find type 'URLRequest' in scope
40 | /// - request: The `URLRequest` about to be sent.
41 | /// - body: The encoded HTTP body data for the request. Optional.
42 | public func logRequest(_ request: URLRequest, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
43 | print("\n--- API REQUEST ---")
44 | print("URL: \(request.url?.absoluteString ?? "(nil)")")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:62:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | /// - data: The raw response data, if any. Optional.
61 | /// - error: An `Error` if the request failed. Optional.
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:64:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:64:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:65:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
65 | print("Status: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
66 | print("Headers: \(httpResponse.allHeaderFields)")
67 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:66:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
64 | if let httpResponse = response as? HTTPURLResponse {
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
67 | }
68 | if let data = data, let jsonString = String(data: data, encoding: .utf8) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:55:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// - data: The raw response data, if any. Optional.
54 | /// - error: An `Error` if the request failed. Optional.
55 | func logResponse(_ response: URLResponse?, data: Data?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | }
57 |
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
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[409/582] Compiling ATProtoKit LoggingBootStrapping.swift
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:24:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
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/ATProtoKit/Utilities/APIClientConfiguration.swift:28:24: error: cannot find type 'URLSessionDelegate' in scope
26 | /// A session delegate object that handles requests for authentication and other session-related events.
27 | /// Optional. Defaults to `nil`.
28 | var delegate: (any URLSessionDelegate)? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
29 |
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:32:24: error: cannot find type 'OperationQueue' in scope
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
31 | /// Defaults to `nil`.
32 | var delegateQueue: OperationQueue? = nil
| `- error: cannot find type 'OperationQueue' in scope
33 |
34 | /// A provider used for the response of the `URLRequest`. Optional. Defaults to `nil`.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:35:29: error: cannot find type 'URLRequest' in scope
33 | ///
34 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
35 | func execute(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
36 | }
37 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:44:32: error: cannot find type 'URLRequest' in scope
42 | /// - request: The `URLRequest` about to be sent.
43 | /// - body: The encoded HTTP body data for the request. Optional.
44 | func logRequest(_ request: URLRequest, body: Data?)
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | /// Creates a log immediately after a response is received (or a request fails).
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:54:24: error: cannot find type 'URLSessionDelegate' in scope
52 | public init(
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
54 | delegate: (any URLSessionDelegate)? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
55 | delegateQueue: OperationQueue? = nil,
56 | responseProvider: ATRequestExecutor? = nil,
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:55:24: error: cannot find type 'OperationQueue' in scope
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
54 | delegate: (any URLSessionDelegate)? = nil,
55 | delegateQueue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
56 | responseProvider: ATRequestExecutor? = nil,
57 | logger: SessionDebuggable? = nil
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:53:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | /// Defaults to `nil`.
52 | public init(
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | delegate: (any URLSessionDelegate)? = nil,
55 | delegateQueue: OperationQueue? = nil,
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/ATProtoKit/Utilities/APIClientConfiguration.swift:24:9: warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' contains non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject'); this is an error in the Swift 6 language mode
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' contains non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject'); this is an error in the Swift 6 language mode
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// An instance of ``ATRequestExecutor``.
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/ATProtoKit/Utilities/APIClientService.swift:20:54: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:81: error: cannot infer contextual base in reference to member 'default'
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:120:133: error: cannot find type 'URLRequest' in scope
118 | public func createRequest(forRequest requestURL: URL, andMethod httpMethod: HTTPMethod, acceptValue: String? = "application/json",
119 | contentTypeValue: String? = "application/json", authorizationValue: String? = nil,
120 | labelersValue: String? = nil, proxyValue: String? = nil, isRelatedToBskyChat: Bool = false) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
121 | var request = URLRequest(url: requestURL)
122 | request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:189:54: error: cannot find type 'URLRequest' in scope
187 | /// - decodeTo: The type to decode the response into.
188 | /// - Returns: An instance of the specified `Decodable` type.
189 | public func sendRequest<T: Decodable>(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
190 | let data = try await self.performRequest(request, withEncodingBody: body)
191 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:209:40: error: cannot find type 'URLRequest' in scope
207 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
208 | /// - Returns: A `Data` object that contains the blob.
209 | public func sendRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
210 | let data = try await self.performRequest(request, withEncodingBody: body)
211 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:221:54: error: cannot find type 'URLRequest' in scope
219 | /// - decodeTo: The type to decode the response into.
220 | /// - Returns: An instance of the specified `Decodable` type.
221 | public func sendRequest<T: Decodable>(_ request: URLRequest, withDataBody data: Data, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
222 | let urlRequest = request
223 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:247:44: error: cannot find type 'URLRequest' in scope
245 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
246 | /// - Returns: A tuple containing the data and the HTTPURLResponse.
247 | private func performRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
248 | // Wait for ATRecordTypeRegistry to be ready before proceeding
249 | await ATRecordTypeRegistry.shared.waitUntilRegistryIsRead()
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:29: warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:97:64: error: reference to member 'default' cannot be resolved without a contextual type
95 | /// - ``APIClientConfiguration``
96 | public init(with configuration: APIClientConfiguration) {
97 | let config = configuration.urlSessionConfiguration ?? .default
| `- error: reference to member 'default' cannot be resolved without a contextual type
98 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
99 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:99:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | let config = configuration.urlSessionConfiguration ?? .default
98 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
99 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | self.executor = configuration.responseProvider
101 | self.logger = configuration.logger
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:121:23: error: cannot find 'URLRequest' in scope
119 | contentTypeValue: String? = "application/json", authorizationValue: String? = nil,
120 | labelersValue: String? = nil, proxyValue: String? = nil, isRelatedToBskyChat: Bool = false) -> URLRequest {
121 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
122 | request.httpMethod = httpMethod.rawValue
123 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:225:61: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
223 |
224 | // let (data, response) = try await
225 | let (responseData, response) = try await urlSession.upload(for: urlRequest, from: data)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
226 |
227 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:268:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |
267 | do {
268 | let (data, response): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 | if let executor = self.executor {
270 | (data, response) = try await executor.execute(urlRequest)
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/ATProtoKit/Utilities/APIClientService.swift:272:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
270 | (data, response) = try await executor.execute(urlRequest)
271 | } else {
272 | (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
273 | }
274 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:279:44: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
277 | #endif
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
280 | switch httpResponse.statusCode {
281 | case 200:
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:279:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
277 | #endif
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
280 | switch httpResponse.statusCode {
281 | case 200:
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/ATProtoKit/Utilities/APIClientService.swift:280:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
280 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 | case 200:
282 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:291:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
289 | throw ATAPIError.badRequest(error: errorResponse)
290 | case 401:
291 | let wwwAuthenticateHeader = httpResponse.allHeaderFields["WWW-Authenticate"] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
292 | let errorResponse = try JSONDecoder().decode(ATHTTPResponseError.self, from: data)
293 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:327:101: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
325 | throw ATAPIError.payloadTooLarge(error: errorResponse)
326 | case 429:
327 | let retryAfterValue: TimeInterval? = if let retryAfterHeader = httpResponse.allHeaderFields["ratelimit-reset"] as? String {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
328 | TimeInterval(retryAfterHeader)
329 | } else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:375:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
373 | default:
374 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
375 | let errorCode = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
376 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
377 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:376:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
374 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
375 | let errorCode = httpResponse.statusCode
376 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
377 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
378 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:113:33: error: cannot find 'DispatchQueue' in scope
111 |
112 | /// A private dispatch queue for the registry.
113 | private let registryQueue = DispatchQueue(label: "com.cjrriley.ATProtoKit.ATRecordTypeRegistryQueue")
| `- error: cannot find 'DispatchQueue' in scope
114 |
115 | /// A private property of ``recordRegistry``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:116:29: warning: static property '_recordRegistry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
114 |
115 | /// A private property of ``recordRegistry``.
116 | private(set) static var _recordRegistry: [String: any ATRecordProtocol.Type] = [:]
| |- warning: static property '_recordRegistry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert '_recordRegistry' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_recordRegistry' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The registry itself.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:139:36: warning: static property 'areBlueskyRecordsRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
137 | ///
138 | /// - Warning: Don't touch this property; this should only be used for ``ATProtoKit``.
139 | public private(set) static var areBlueskyRecordsRegistered = false
| |- warning: static property 'areBlueskyRecordsRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'areBlueskyRecordsRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'areBlueskyRecordsRegistered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | /// Tracks whether the registry is currently being modified.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:35:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | ///
34 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
35 | func execute(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:42:39: error: cannot find type 'URLRequest' in scope
40 | /// - request: The `URLRequest` about to be sent.
41 | /// - body: The encoded HTTP body data for the request. Optional.
42 | public func logRequest(_ request: URLRequest, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
43 | print("\n--- API REQUEST ---")
44 | print("URL: \(request.url?.absoluteString ?? "(nil)")")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:62:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | /// - data: The raw response data, if any. Optional.
61 | /// - error: An `Error` if the request failed. Optional.
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:64:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:64:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:65:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
65 | print("Status: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
66 | print("Headers: \(httpResponse.allHeaderFields)")
67 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:66:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
64 | if let httpResponse = response as? HTTPURLResponse {
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
67 | }
68 | if let data = data, let jsonString = String(data: data, encoding: .utf8) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:55:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// - data: The raw response data, if any. Optional.
54 | /// - error: An `Error` if the request failed. Optional.
55 | func logResponse(_ response: URLResponse?, data: Data?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | }
57 |
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
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[410/582] Compiling ATProtoKit SessionDebuggable.swift
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:24:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
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/ATProtoKit/Utilities/APIClientConfiguration.swift:28:24: error: cannot find type 'URLSessionDelegate' in scope
26 | /// A session delegate object that handles requests for authentication and other session-related events.
27 | /// Optional. Defaults to `nil`.
28 | var delegate: (any URLSessionDelegate)? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
29 |
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:32:24: error: cannot find type 'OperationQueue' in scope
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
31 | /// Defaults to `nil`.
32 | var delegateQueue: OperationQueue? = nil
| `- error: cannot find type 'OperationQueue' in scope
33 |
34 | /// A provider used for the response of the `URLRequest`. Optional. Defaults to `nil`.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:35:29: error: cannot find type 'URLRequest' in scope
33 | ///
34 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
35 | func execute(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
36 | }
37 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:44:32: error: cannot find type 'URLRequest' in scope
42 | /// - request: The `URLRequest` about to be sent.
43 | /// - body: The encoded HTTP body data for the request. Optional.
44 | func logRequest(_ request: URLRequest, body: Data?)
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | /// Creates a log immediately after a response is received (or a request fails).
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:54:24: error: cannot find type 'URLSessionDelegate' in scope
52 | public init(
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
54 | delegate: (any URLSessionDelegate)? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
55 | delegateQueue: OperationQueue? = nil,
56 | responseProvider: ATRequestExecutor? = nil,
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:55:24: error: cannot find type 'OperationQueue' in scope
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
54 | delegate: (any URLSessionDelegate)? = nil,
55 | delegateQueue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
56 | responseProvider: ATRequestExecutor? = nil,
57 | logger: SessionDebuggable? = nil
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:53:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | /// Defaults to `nil`.
52 | public init(
53 | urlSessionConfiguration: URLSessionConfiguration? = nil,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | delegate: (any URLSessionDelegate)? = nil,
55 | delegateQueue: OperationQueue? = nil,
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/ATProtoKit/Utilities/APIClientConfiguration.swift:24:9: warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' contains non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject'); this is an error in the Swift 6 language mode
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' contains non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject'); this is an error in the Swift 6 language mode
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// An instance of ``ATRequestExecutor``.
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/ATProtoKit/Utilities/APIClientService.swift:20:54: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:81: error: cannot infer contextual base in reference to member 'default'
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:120:133: error: cannot find type 'URLRequest' in scope
118 | public func createRequest(forRequest requestURL: URL, andMethod httpMethod: HTTPMethod, acceptValue: String? = "application/json",
119 | contentTypeValue: String? = "application/json", authorizationValue: String? = nil,
120 | labelersValue: String? = nil, proxyValue: String? = nil, isRelatedToBskyChat: Bool = false) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
121 | var request = URLRequest(url: requestURL)
122 | request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:189:54: error: cannot find type 'URLRequest' in scope
187 | /// - decodeTo: The type to decode the response into.
188 | /// - Returns: An instance of the specified `Decodable` type.
189 | public func sendRequest<T: Decodable>(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
190 | let data = try await self.performRequest(request, withEncodingBody: body)
191 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:209:40: error: cannot find type 'URLRequest' in scope
207 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
208 | /// - Returns: A `Data` object that contains the blob.
209 | public func sendRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
210 | let data = try await self.performRequest(request, withEncodingBody: body)
211 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:221:54: error: cannot find type 'URLRequest' in scope
219 | /// - decodeTo: The type to decode the response into.
220 | /// - Returns: An instance of the specified `Decodable` type.
221 | public func sendRequest<T: Decodable>(_ request: URLRequest, withDataBody data: Data, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
222 | let urlRequest = request
223 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:247:44: error: cannot find type 'URLRequest' in scope
245 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
246 | /// - Returns: A tuple containing the data and the HTTPURLResponse.
247 | private func performRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
248 | // Wait for ATRecordTypeRegistry to be ready before proceeding
249 | await ATRecordTypeRegistry.shared.waitUntilRegistryIsRead()
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:29: warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:97:64: error: reference to member 'default' cannot be resolved without a contextual type
95 | /// - ``APIClientConfiguration``
96 | public init(with configuration: APIClientConfiguration) {
97 | let config = configuration.urlSessionConfiguration ?? .default
| `- error: reference to member 'default' cannot be resolved without a contextual type
98 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
99 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:99:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | let config = configuration.urlSessionConfiguration ?? .default
98 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
99 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | self.executor = configuration.responseProvider
101 | self.logger = configuration.logger
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:121:23: error: cannot find 'URLRequest' in scope
119 | contentTypeValue: String? = "application/json", authorizationValue: String? = nil,
120 | labelersValue: String? = nil, proxyValue: String? = nil, isRelatedToBskyChat: Bool = false) -> URLRequest {
121 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
122 | request.httpMethod = httpMethod.rawValue
123 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:225:61: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
223 |
224 | // let (data, response) = try await
225 | let (responseData, response) = try await urlSession.upload(for: urlRequest, from: data)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
226 |
227 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:268:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |
267 | do {
268 | let (data, response): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 | if let executor = self.executor {
270 | (data, response) = try await executor.execute(urlRequest)
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/ATProtoKit/Utilities/APIClientService.swift:272:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
270 | (data, response) = try await executor.execute(urlRequest)
271 | } else {
272 | (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
273 | }
274 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:279:44: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
277 | #endif
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
280 | switch httpResponse.statusCode {
281 | case 200:
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:279:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
277 | #endif
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
280 | switch httpResponse.statusCode {
281 | case 200:
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/ATProtoKit/Utilities/APIClientService.swift:280:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
278 |
279 | if let httpResponse = response as? HTTPURLResponse {
280 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
281 | case 200:
282 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:291:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
289 | throw ATAPIError.badRequest(error: errorResponse)
290 | case 401:
291 | let wwwAuthenticateHeader = httpResponse.allHeaderFields["WWW-Authenticate"] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
292 | let errorResponse = try JSONDecoder().decode(ATHTTPResponseError.self, from: data)
293 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:327:101: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
325 | throw ATAPIError.payloadTooLarge(error: errorResponse)
326 | case 429:
327 | let retryAfterValue: TimeInterval? = if let retryAfterHeader = httpResponse.allHeaderFields["ratelimit-reset"] as? String {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
328 | TimeInterval(retryAfterHeader)
329 | } else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:375:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
373 | default:
374 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
375 | let errorCode = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
376 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
377 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:376:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
374 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
375 | let errorCode = httpResponse.statusCode
376 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
377 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
378 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:113:33: error: cannot find 'DispatchQueue' in scope
111 |
112 | /// A private dispatch queue for the registry.
113 | private let registryQueue = DispatchQueue(label: "com.cjrriley.ATProtoKit.ATRecordTypeRegistryQueue")
| `- error: cannot find 'DispatchQueue' in scope
114 |
115 | /// A private property of ``recordRegistry``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:116:29: warning: static property '_recordRegistry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
114 |
115 | /// A private property of ``recordRegistry``.
116 | private(set) static var _recordRegistry: [String: any ATRecordProtocol.Type] = [:]
| |- warning: static property '_recordRegistry' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert '_recordRegistry' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_recordRegistry' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | /// The registry itself.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:139:36: warning: static property 'areBlueskyRecordsRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
137 | ///
138 | /// - Warning: Don't touch this property; this should only be used for ``ATProtoKit``.
139 | public private(set) static var areBlueskyRecordsRegistered = false
| |- warning: static property 'areBlueskyRecordsRegistered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
| |- note: convert 'areBlueskyRecordsRegistered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'areBlueskyRecordsRegistered' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | /// Tracks whether the registry is currently being modified.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:35:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | ///
34 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
35 | func execute(_ request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:42:39: error: cannot find type 'URLRequest' in scope
40 | /// - request: The `URLRequest` about to be sent.
41 | /// - body: The encoded HTTP body data for the request. Optional.
42 | public func logRequest(_ request: URLRequest, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
43 | print("\n--- API REQUEST ---")
44 | print("URL: \(request.url?.absoluteString ?? "(nil)")")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:62:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | /// - data: The raw response data, if any. Optional.
61 | /// - error: An `Error` if the request failed. Optional.
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:64:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:64:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:65:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 | print("\n--- API RESPONSE ---")
64 | if let httpResponse = response as? HTTPURLResponse {
65 | print("Status: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
66 | print("Headers: \(httpResponse.allHeaderFields)")
67 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:66:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
64 | if let httpResponse = response as? HTTPURLResponse {
65 | print("Status: \(httpResponse.statusCode)")
66 | print("Headers: \(httpResponse.allHeaderFields)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
67 | }
68 | if let data = data, let jsonString = String(data: data, encoding: .utf8) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:55:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// - data: The raw response data, if any. Optional.
54 | /// - error: An `Error` if the request failed. Optional.
55 | func logResponse(_ response: URLResponse?, data: Data?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | }
57 |
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
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[411/582] Compiling ATProtoKit ComAtprotoServerRefreshSession.swift
[412/582] Compiling ATProtoKit ComAtprotoServerRequestEmailUpdate.swift
[413/582] Compiling ATProtoKit ComAtprotoServerRequestPasswordReset.swift
[414/582] Compiling ATProtoKit ComAtprotoServerReserveSigningKey.swift
[415/582] Compiling ATProtoKit ComAtprotoServerResetPassword.swift
[416/582] Compiling ATProtoKit ComAtprotoServerRevokeAppPassword.swift
[417/582] Compiling ATProtoKit ComAtprotoServerUpdateEmail.swift
[418/582] Compiling ATProtoKit ComAtprotoSyncDefs.swift
[419/582] Compiling ATProtoKit ComAtprotoSyncGetHostStatus.swift
[420/582] Compiling ATProtoKit ComAtprotoSyncGetLatestCommit.swift
[421/582] Compiling ATProtoKit ComAtprotoSyncGetRepoStatus.swift
[422/582] Compiling ATProtoKit ComAtprotoSyncListBlobs.swift
[423/582] Compiling ATProtoKit ComAtprotoSyncListHosts.swift
[424/582] Compiling ATProtoKit ComAtprotoSyncListRepos.swift
[425/582] Compiling ATProtoKit ComAtprotoSyncListReposByCollection.swift
[426/582] Compiling ATProtoKit ComAtprotoSyncNotifyOfUpdate.swift
[427/582] Compiling ATProtoKit ComAtprotoSyncRequestCrawl.swift
[428/582] Compiling ATProtoKit ComAtprotoSyncSubscribeRepos.swift
[429/582] Compiling ATProtoKit ComAtprotoTempAddReservedHandle.swift
[430/582] Compiling ATProtoKit ComAtprotoTempCheckHandleAvailabilityCheckHandleAvailability.swift
[431/582] Compiling ATProtoKit ComAtprotoTempCheckSignupQueue.swift
[432/582] Compiling ATProtoKit ComAtprotoTempDereferenceScope.swift
[433/582] Compiling ATProtoKit ComAtprotoTempRequestPhoneVerification.swift
[434/582] Compiling ATProtoKit ComAtprotoTempRevokeAccountCredentials.swift
[435/582] Compiling ATProtoKit AppBskyFeedGetFeed.swift
[436/582] Compiling ATProtoKit AppBskyFeedGetFeedGenerator.swift
[437/582] Compiling ATProtoKit AppBskyFeedGetFeedGenerators.swift
[438/582] Compiling ATProtoKit AppBskyFeedGetFeedSkeleton.swift
[439/582] Compiling ATProtoKit AppBskyFeedGetLikes.swift
[440/582] Compiling ATProtoKit AppBskyFeedGetListFeed.swift
[441/582] Compiling ATProtoKit AppBskyFeedGetPostThread.swift
[442/582] Compiling ATProtoKit AppBskyFeedGetPosts.swift
[443/582] Compiling ATProtoKit AppBskyFeedGetQuotes.swift
[444/582] Compiling ATProtoKit AppBskyFeedGetRepostedBy.swift
[445/582] Compiling ATProtoKit AppBskyFeedGetSuggestedFeeds.swift
[446/582] Compiling ATProtoKit AppBskyFeedGetTimeline.swift
[447/582] Compiling ATProtoKit AppBskyFeedLike.swift
[448/582] Compiling ATProtoKit AppBskyFeedPost.swift
[449/582] Compiling ATProtoKit AppBskyFeedPostgate.swift
[450/582] Compiling ATProtoKit AppBskyFeedRepost.swift
[451/582] Compiling ATProtoKit AppBskyFeedSearchPosts.swift
[452/582] Compiling ATProtoKit AppBskyFeedSendInteractions.swift
[453/582] Compiling ATProtoKit AppBskyFeedThreadgate.swift
[454/582] Compiling ATProtoKit AppBskyGraphBlock.swift
[455/582] Compiling ATProtoKit AppBskyGraphDefs.swift
[456/582] Compiling ATProtoKit AppBskyGraphFollow.swift
[457/582] Compiling ATProtoKit AppBskyGraphGetActorStarterPacks.swift
[458/582] Compiling ATProtoKit AppBskyGraphGetBlocks.swift
[459/582] Compiling ATProtoKit AppBskyGraphGetFollowers.swift
[460/582] Compiling ATProtoKit ToolsOzoneServerGetConfig.swift
[461/582] Compiling ATProtoKit ToolsOzoneModerationSetAddValues.swift
[462/582] Compiling ATProtoKit ToolsOzoneSetDefs.swift
[463/582] Compiling ATProtoKit ToolsOzoneSetDeleteSet.swift
[464/582] Compiling ATProtoKit ToolsOzoneSetDeleteValues.swift
[465/582] Compiling ATProtoKit ToolsOzoneSetGetValues.swift
[466/582] Compiling ATProtoKit ToolsOzoneSetQuerySets.swift
[467/582] Compiling ATProtoKit ToolsOzoneSettingDefs.swift
[468/582] Compiling ATProtoKit ToolsOzoneSettingListOptions.swift
[469/582] Compiling ATProtoKit ToolsOzoneSettingRemoveOptions.swift
[470/582] Compiling ATProtoKit ToolsOzoneSettingUpsertOption.swift
[471/582] Compiling ATProtoKit ToolsOzoneSignatureDefs.swift
[472/582] Compiling ATProtoKit ToolsOzoneSignatureFindCorrelation.swift
[473/582] Compiling ATProtoKit ToolsOzoneSignatureFindRelatedAccounts.swift
[474/582] Compiling ATProtoKit ToolsOzoneSignatureSearchAccounts.swift
[475/582] Compiling ATProtoKit ToolsOzoneTeamAddMember.swift
[476/582] Compiling ATProtoKit ToolsOzoneTeamDefs.swift
[477/582] Compiling ATProtoKit ToolsOzoneTeamDeleteMember.swift
[478/582] Compiling ATProtoKit ToolsOzoneTeamListMembers.swift
[479/582] Compiling ATProtoKit ToolsOzoneTeamUpdateMember.swift
[480/582] Compiling ATProtoKit ToolsOzoneLexicon.swift
[481/582] Compiling ATProtoKit ToolsOzoneVerificationDefs.swift
[482/582] Compiling ATProtoKit ToolsOzoneVerificationGrantVerifications.swift
[483/582] Compiling ATProtoKit ToolsOzoneVerificationListVerifications.swift
[484/582] Compiling ATProtoKit ChatBskyConvoGetLog.swift
[485/582] Compiling ATProtoKit ChatBskyConvoGetMessages.swift
[486/582] Compiling ATProtoKit ChatBskyConvoLeaveConvo.swift
[487/582] Compiling ATProtoKit ChatBskyConvoListConvos.swift
[488/582] Compiling ATProtoKit ChatBskyConvoMuteConvo.swift
[489/582] Compiling ATProtoKit ChatBskyConvoRemoveReaction.swift
[490/582] Compiling ATProtoKit ChatBskyConvoSendMessage.swift
[491/582] Compiling ATProtoKit ChatBskyConvoSendMessageBatch.swift
[492/582] Compiling ATProtoKit ChatBskyConvoUnmuteConvo.swift
[493/582] Compiling ATProtoKit ChatBskyConvoUpdateAllRead.swift
[494/582] Compiling ATProtoKit ChatBskyConvoUpdateRead.swift
[495/582] Compiling ATProtoKit ChatBskyModerationGetActorMetadata.swift
[496/582] Compiling ATProtoKit ChatBskyModerationGetMessageContext.swift
[497/582] Compiling ATProtoKit ChatBskyModerationUpdateActorAccess.swift
[498/582] Compiling ATProtoKit ComAtprotoAdminDefs.swift
[499/582] Compiling ATProtoKit ComAtprotoAdminDeleteAccount.swift
[500/582] Compiling ATProtoKit ComAtprotoAdminDisableAccountInvites.swift
[501/582] Compiling ATProtoKit ComAtprotoAdminDisableInviteCodes.swift
[502/582] Compiling ATProtoKit ComAtprotoAdminEnableAccountInvites.swift
[503/582] Compiling ATProtoKit ComAtprotoAdminGetAccountInfos.swift
[504/582] Compiling ATProtoKit ComAtprotoAdminGetInviteCodes.swift
[505/582] Compiling ATProtoKit ComAtprotoAdminGetSubjectStatus.swift
[506/582] Compiling ATProtoKit ComAtprotoAdminSearchAccounts.swift
[507/582] Compiling ATProtoKit ComAtprotoAdminSearchRepos.swift
[508/582] Compiling ATProtoKit ComAtprotoAdminSendEmail.swift
[509/582] Compiling ATProtoKit ToolsOzoneCommunicationCreateTemplate.swift
[510/582] Compiling ATProtoKit ToolsOzoneCommunicationDefs.swift
[511/582] Compiling ATProtoKit ToolsOzoneCommunicationDeleteTemplate.swift
[512/582] Compiling ATProtoKit ToolsOzoneCommunicationListTemplates.swift
[513/582] Compiling ATProtoKit ToolsOzoneCommunicationUpdateTemplate.swift
[514/582] Compiling ATProtoKit ToolsOzoneHostingGetAccountHistory.swift
[515/582] Compiling ATProtoKit ToolsOzoneModerationCancelScheduledActions.swift
[516/582] Compiling ATProtoKit ToolsOzoneModerationDefs.swift
[517/582] Compiling ATProtoKit ToolsOzoneModerationEmitEvent.swift
[518/582] Compiling ATProtoKit ToolsOzoneModerationGetAccountTimeline.swift
[519/582] Compiling ATProtoKit ToolsOzoneModerationGetRecords.swift
[520/582] Compiling ATProtoKit ToolsOzoneModerationGetReporterStats.swift
[521/582] Compiling ATProtoKit ToolsOzoneModerationGetRepos.swift
[522/582] Compiling ATProtoKit ToolsOzoneModerationGetSubjects.swift
[523/582] Compiling ATProtoKit ToolsOzoneModerationListScheduledActions.swift
[524/582] Compiling ATProtoKit ToolsOzoneModerationQueryEvents.swift
[525/582] Compiling ATProtoKit ToolsOzoneModerationQueryStatuses.swift
[526/582] Compiling ATProtoKit ToolsOzoneModerationSearchRepos.swift
[527/582] Compiling ATProtoKit ToolsOzoneSafelinkAddRule.swift
[528/582] Compiling ATProtoKit ToolsOzoneSafelinkDefs.swift
[529/582] Compiling ATProtoKit ToolsOzoneSafelinkQueryEvents.swift
[530/582] Compiling ATProtoKit ToolsOzoneSafelinkQueryRules.swift
[531/582] Compiling ATProtoKit ToolsOzoneSafelinkRemoveRule.swift
[532/582] Compiling ATProtoKit ToolsOzoneSafelinkUpdateRule.swift
[533/582] Compiling ATProtoKit AppBskyUnspeccedGetSuggestedUsersSkeleton.swift
[534/582] Compiling ATProtoKit AppBskyUnspeccedGetSuggestionsSkeleton.swift
[535/582] Compiling ATProtoKit AppBskyUnspeccedGetTaggedSuggestions.swift
[536/582] Compiling ATProtoKit AppBskyUnspeccedGetTrendingTopics.swift
[537/582] Compiling ATProtoKit AppBskyUnspeccedGetTrends.swift
[538/582] Compiling ATProtoKit AppBskyUnspeccedGetTrendsSkeleton.swift
[539/582] Compiling ATProtoKit AppBskyUnspeccedInitAgeAssurance.swift
[540/582] Compiling ATProtoKit AppBskyUnspeccedSearchActorsSkeleton.swift
[541/582] Compiling ATProtoKit AppBskyUnspeccedSearchPostsSkeleton.swift
[542/582] Compiling ATProtoKit AppBskyUnspeccedStarterPacksSkeleton.swift
[543/582] Compiling ATProtoKit AppBskyVideoDefs.swift
[544/582] Compiling ATProtoKit AppBskyVideoGetJobStatus.swift
[545/582] Compiling ATProtoKit AppBskyVideoGetUploadLimits.swift
[546/582] Compiling ATProtoKit AppBskyVideoUploadVideo.swift
[547/582] Compiling ATProtoKit ChatBskyActorDeclaration.swift
[548/582] Compiling ATProtoKit ChatBskyActorDefs.swift
[549/582] Compiling ATProtoKit ChatBskyActorDeleteAccount.swift
[550/582] Compiling ATProtoKit ChatBskyLexicon.swift
[551/582] Compiling ATProtoKit ChatBskyConvoAcceptConvo.swift
[552/582] Compiling ATProtoKit ChatBskyConvoAddReaction.swift
[553/582] Compiling ATProtoKit ChatBskyConvoDefs.swift
[554/582] Compiling ATProtoKit ChatBskyConvoDeleteMessageForSelf.swift
[555/582] Compiling ATProtoKit ChatBskyConvoGetConvo.swift
[556/582] Compiling ATProtoKit ChatBskyConvoGetConvoAvailability.swift
[557/582] Compiling ATProtoKit ChatBskyConvoGetConvoForMembers.swift
[558/582] Compiling ATProtoKit AppBskyActorGetProfile.swift
[559/582] Compiling ATProtoKit AppBskyActorGetProfiles.swift
[560/582] Compiling ATProtoKit AppBskyActorGetSuggestions.swift
[561/582] Compiling ATProtoKit AppBskyActorProfile.swift
[562/582] Compiling ATProtoKit AppBskyActorPutPreferences.swift
[563/582] Compiling ATProtoKit AppBskyActorSearchActors.swift
[564/582] Compiling ATProtoKit AppBskyActorSearchActorsTypeahead.swift
[565/582] Compiling ATProtoKit AppBskyActorStatus.swift
[566/582] Compiling ATProtoKit AppBskyLexicon.swift
[567/582] Compiling ATProtoKit AppBskyBookmarkCreateBookmark.swift
[568/582] Compiling ATProtoKit AppBskyBookmarkDefs.swift
[569/582] Compiling ATProtoKit AppBskyBookmarkDeleteBookmark.swift
[570/582] Compiling ATProtoKit AppBskyBookmarkGetBookmark.swift
[571/582] Compiling ATProtoKit AppBskyEmbedDefs.swift
[572/582] Compiling ATProtoKit AppBskyEmbedExternal.swift
[573/582] Compiling ATProtoKit AppBskyEmbedImages.swift
[574/582] Compiling ATProtoKit AppBskyEmbedRecord.swift
[575/582] Compiling ATProtoKit AppBskyEmbedRecordWithMedia.swift
[576/582] Compiling ATProtoKit AppBskyEmbedVideo.swift
[577/582] Compiling ATProtoKit AppBskyFeedDefs.swift
[578/582] Compiling ATProtoKit AppBskyFeedDescribeFeedGenerator.swift
[579/582] Compiling ATProtoKit AppBskyFeedGenerator.swift
[580/582] Compiling ATProtoKit AppBskyFeedGetActorFeeds.swift
[581/582] Compiling ATProtoKit AppBskyFeedGetActorLikes.swift
[582/582] Compiling ATProtoKit AppBskyFeedGetAuthorFeed.swift
BUILD FAILURE 6.2 wasm