The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OAuthenticator, reference main (b455b1), with Swift 6.4 for Wasm on 27 Sep 2026 18:25:04 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ATProtoKit/OAuthenticator.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/ATProtoKit/OAuthenticator
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b455b12 Adopt ATProtoKit's CODE_OF_CONDUCT.md
Cloned https://github.com/ATProtoKit/OAuthenticator.git
Revision (git rev-parse @):
b455b1259da75f056d1e24f8926227eaa13e1c7a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ATProtoKit/OAuthenticator.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/ATProtoKit/OAuthenticator.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:32:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 | 	case issuingServerMismatch(String, String)
 31 | 	case pkceRequired
 32 | 	case rateLimited(HTTPURLResponse)
    |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 | }
 34 |
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/OAuthenticator/Authenticator.swift:32:7: warning: associated value 'rateLimited' of 'Sendable'-conforming enum 'AuthenticatorError' has non-Sendable type 'AnyObject'
 30 | 	case issuingServerMismatch(String, String)
 31 | 	case pkceRequired
 32 | 	case rateLimited(HTTPURLResponse)
    |       `- warning: associated value 'rateLimited' of 'Sendable'-conforming enum 'AuthenticatorError' has non-Sendable type 'AnyObject'
 33 | }
 34 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:9:13: error: type 'AuthenticatorError' does not conform to protocol 'Hashable'
  7 | #endif
  8 |
  9 | public enum AuthenticatorError: Error, Hashable {
    |             `- error: type 'AuthenticatorError' does not conform to protocol 'Hashable'
 10 | 	case missingScheme
 11 | 	case missingAuthorizationCode
    :
 30 | 	case issuingServerMismatch(String, String)
 31 | 	case pkceRequired
 32 | 	case rateLimited(HTTPURLResponse)
    |                   `- note: associated value type 'HTTPURLResponse' (aka 'AnyObject') does not conform to protocol 'Hashable', preventing synthesized conformance of 'AuthenticatorError' to 'Hashable'
 33 | }
 34 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:9:13: error: type 'AuthenticatorError' does not conform to protocol 'Equatable'
  7 | #endif
  8 |
  9 | public enum AuthenticatorError: Error, Hashable {
    |             |- error: type 'AuthenticatorError' does not conform to protocol 'Equatable'
    |             `- note: add stubs for conformance
 10 | 	case missingScheme
 11 | 	case missingAuthorizationCode
    :
 30 | 	case issuingServerMismatch(String, String)
 31 | 	case pkceRequired
 32 | 	case rateLimited(HTTPURLResponse)
    |                   `- note: associated value type 'HTTPURLResponse' (aka 'AnyObject') does not conform to protocol 'Equatable', preventing synthesized conformance of 'AuthenticatorError' to 'Equatable'
 33 | }
 34 |
Swift.==:1:24: note: candidate would match if 'AuthenticatorError' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
  |                        `- note: candidate would match if 'AuthenticatorError' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'AuthenticatorError' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'AuthenticatorError' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'AuthenticatorError' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'AuthenticatorError' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'AuthenticatorError' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'AuthenticatorError' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'AuthenticatorError' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
  |                               `- note: candidate would match if 'AuthenticatorError' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'AuthenticatorError' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'AuthenticatorError' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'AuthenticatorError' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
  |                               `- note: candidate would match if 'AuthenticatorError' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'AuthenticatorError' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'AuthenticatorError' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'AuthenticatorError' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'AuthenticatorError' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'AuthenticatorError' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'AuthenticatorError' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'AuthenticatorError' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
  |                    `- note: candidate would match if 'AuthenticatorError' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(borrowing AuthenticatorError, borrowing AuthenticatorError) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: borrowing Self, rhs: borrowing Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(borrowing AuthenticatorError, borrowing AuthenticatorError) -> Bool'
3 |
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:140:17: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
138 | 	@MainActor
139 | 	public static let defaultResponseProvider: URLResponseProvider = {
140 | 		let session = URLSession(configuration: .default)
    |                 `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
141 |
142 | 		return session.responseProvider
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:146:36: error: cannot find type 'URLRequest' in scope
144 |
145 | 	/// Add authentication for `request`, execute it, and return its result.
146 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
147 | 		let userAuthenticator = config.userAuthenticator
148 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:146:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 |
145 | 	/// Add authentication for `request`, execute it, and return its result.
146 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | 		let userAuthenticator = config.userAuthenticator
148 |
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/OAuthenticator/Authenticator.swift:187:43: error: cannot find type 'URLRequest' in scope
185 | 	}
186 |
187 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
188 | 		var authedRequest = request
189 | 		let token = login.accessToken.value
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:187:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 | 	}
186 |
187 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 | 		var authedRequest = request
189 | 		let token = login.accessToken.value
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/OAuthenticator/Authenticator.swift:448:41: error: cannot find type 'URLRequest' in scope
446 | 	}
447 |
448 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (
    |                                         `- error: cannot find type 'URLRequest' in scope
449 | 		Data, URLResponse
450 | 	) {
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:449:9: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
447 |
448 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (
449 | 		Data, URLResponse
    |         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
450 | 	) {
451 | 		var issuer: String? = nil
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/OAuthenticator/Authenticator.swift:469:41: error: cannot find type 'URLRequest' in scope
467 | 	}
468 |
469 | 	private func dpopResponse(for request: URLRequest, login: Login?, isAuthServer: Bool?)
    |                                         `- error: cannot find type 'URLRequest' in scope
470 | 		async throws -> (Data, URLResponse)
471 | 	{
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:470:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
468 |
469 | 	private func dpopResponse(for request: URLRequest, login: Login?, isAuthServer: Bool?)
470 | 		async throws -> (Data, URLResponse)
    |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
471 | 	{
472 | 		print("Request: \(request.httpMethod!) - \(request.url?.absoluteString ?? "missing url")")
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/OAuthenticator/Authenticator.swift:133:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
131 | 		self.config = config
132 |
133 | 		self.urlLoader = loader ?? URLSession.defaultProvider
    |                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
134 | 	}
135 |
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:82:22: error: cannot find type 'URLRequest' in scope
 80 | public enum DPoPError: Error, Equatable {
 81 | 	case urlResponseToHttpUrlResponseConversionFailed
 82 | 	case requestInvalid(URLRequest)
    |                      `- error: cannot find type 'URLRequest' in scope
 83 | }
 84 |
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:80:13: error: type 'DPoPError' does not conform to protocol 'Equatable'
 78 | }
 79 |
 80 | public enum DPoPError: Error, Equatable {
    |             |- error: type 'DPoPError' does not conform to protocol 'Equatable'
    |             `- note: add stubs for conformance
 81 | 	case urlResponseToHttpUrlResponseConversionFailed
 82 | 	case requestInvalid(URLRequest)
    |                      `- note: associated value type '_' does not conform to protocol 'Equatable', preventing synthesized conformance of 'DPoPError' to 'Equatable'
 83 | }
 84 |
Swift.==:1:24: note: candidate would match if 'DPoPError' conformed to 'RawRepresentable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
  |                        `- note: candidate would match if 'DPoPError' conformed to 'RawRepresentable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'DPoPError' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'DPoPError' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'DPoPError' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'DPoPError' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'DPoPError' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'DPoPError' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'DPoPError' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
  |                               `- note: candidate would match if 'DPoPError' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'DPoPError' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'DPoPError' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'DPoPError' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
  |                               `- note: candidate would match if 'DPoPError' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'DPoPError' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'DPoPError' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'DPoPError' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'DPoPError' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'DPoPError' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'DPoPError' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'DPoPError' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
  |                    `- note: candidate would match if 'DPoPError' conformed to 'AttributedStringProtocol'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(borrowing DPoPError, borrowing DPoPError) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: borrowing Self, rhs: borrowing Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(borrowing DPoPError, borrowing DPoPError) -> Bool'
3 |
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:103:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |
102 | 	// Return value is (origin, nonce)
103 | 	public typealias NonceDecoder = (Data, HTTPURLResponse) throws -> NonceValue?
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | 	private let nonceCache: NSCache<NSString, NonceValue> = NSCache()
105 | 	private let nonceDecoder: NonceDecoder
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/OAuthenticator/DPoPSigner.swift:107:62: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | 	private let nonceDecoder: NonceDecoder
106 |
107 | 	public static func nonceHeaderDecoder(data: Data, response: HTTPURLResponse) throws -> NonceValue?
    |                                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 | 	{
109 | 		guard let value = response.value(forHTTPHeaderField: "DPoP-Nonce") else {
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/OAuthenticator/DPoPSigner.swift:139:14: error: cannot find type 'URLRequest' in scope
137 | extension DPoPSigner {
138 | 	private func makeRequest(
139 | 		_ request: URLRequest,
    |              `- error: cannot find type 'URLRequest' in scope
140 | 		isolation: isolated (any Actor),
141 | 		responseProvider: URLResponseProvider
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:143:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | 		responseProvider: URLResponseProvider
142 | 	)
143 | 		async throws -> (Data, HTTPURLResponse)
    |                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 | 	{
145 | 		let (data, urlResponse) = try await responseProvider(request)
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/OAuthenticator/DPoPSigner.swift:160:20: error: cannot find type 'URLRequest' in scope
158 | 		token: String?,
159 | 		tokenHash: String?
160 | 	) async throws -> URLRequest {
    |                    `- error: cannot find type 'URLRequest' in scope
161 | 		guard
162 | 			let method = request.httpMethod,
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:154:14: error: cannot find type 'URLRequest' in scope
152 |
153 | 	public func buildProof(
154 | 		_ request: URLRequest,
    |              `- error: cannot find type 'URLRequest' in scope
155 | 		isolation: isolated (any Actor),
156 | 		using jwtGenerator: JWTGenerator,
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:198:16: error: cannot find type 'URLRequest' in scope
196 | 	public func response(
197 | 		isolation: isolated (any Actor),
198 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
199 | 		using jwtGenerator: JWTGenerator,
200 | 		token: String?,
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:206:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 | 		isAuthServer: Bool?,
205 | 		responseProvider: URLResponseProvider
206 | 	) async throws -> (Data, HTTPURLResponse) {
    |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | 		// FIXME: calculate tokenHash using the value from the request Authorization
208 | 		// header:
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/OAuthenticator/DPoPSigner.swift:282:52: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
280 | 	// The logic here is taken from:
281 | 	// https://github.com/bluesky-social/atproto/blob/4e96e2c7/packages/oauth/oauth-client/src/fetch-dpop.ts#L195
282 | 	private func isUseDpopError(data: Data, response: HTTPURLResponse, isAuthServer: Bool?) -> Bool {
    |                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
283 | 		print(
284 | 			"isAuthServer: " + (isAuthServer == nil ? "nil" : (isAuthServer == true ? "true" : "false")))
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/OAuthenticator/Models.swift:155:22: error: '@escaping' only applies to function types
153 | 			credentials: AppCredentials,
154 | 			redirectURL: URL,
155 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: '@escaping' only applies to function types
156 | 			stateToken: String,
157 | 			pkce: PKCEVerifier?
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:179:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
177 | 	public typealias LoginProvider = @Sendable (LoginProviderParameters) async throws -> Login
178 | 	public typealias RefreshProvider = @Sendable (Login, AppCredentials, URLResponseProvider) async throws -> Login
179 | 	public typealias ResponseStatusProvider = @Sendable ((Data, URLResponse)) throws -> ResponseStatus
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 |
181 | 	public let authorizationURLProvider: AuthorizationURLProvider
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/OAuthenticator/Models.swift:209:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 |
208 | 	@Sendable
209 | 	public static func allResponsesValid(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | 		return .valid
211 | 	}
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/OAuthenticator/Models.swift:214:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 |
213 | 	@Sendable
214 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 | 		guard let response = result.1 as? HTTPURLResponse else {
216 | 			throw AuthenticatorError.httpResponseExpected
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/OAuthenticator/Services/GitHub.swift:109:93: error: cannot find type 'URLRequest' in scope
107 | 	}
108 |
109 | 	static func authenticationRequest(with url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
110 | 		let code = try url.authorizationCode
111 |
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:122:88: error: cannot find type 'URLRequest' in scope
120 | 	///
121 | 	/// The `code` is exchanged for an access / refresh token pair using the granted scope in part 1
122 | 	static func authenticationRequest(url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
123 | 		let code = try url.authorizationCode
124 |
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:192:99: error: cannot find type 'URLRequest' in scope
190 | 	///   - appCredentials: The Application credentials
191 | 	/// - Returns: The URLRequest to refresh the access token
192 | 	static func authenticationRefreshRequest(login: Login, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                   `- error: cannot find type 'URLRequest' in scope
193 | 		guard let refreshToken = login.refreshToken,
194 | 			  !refreshToken.value.isEmpty else { throw AuthenticatorError.missingRefreshToken }
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Mastodon.swift:111:126: error: cannot find type 'URLRequest' in scope
109 | 	}
110 |
111 | 	static func authenticationRequest(with parameters: UserTokenParameters, url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                                              `- error: cannot find type 'URLRequest' in scope
112 | 		let code = try url.authorizationCode
113 |
/host/spi-builder-workspace/Sources/OAuthenticator/URLSession+ResponseProvider.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 8 | }
 9 |
10 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
11 | 	/// Convert a `URLSession` instance into a `URLResponseProvider`.
12 | 	public var responseProvider: URLResponseProvider {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/.build/out/Intermediates.noindex/OAuthenticator.build/Debug-webassembly-wasm32/OAuthenticator-t.build/DerivedSources/resource_bundle_accessor.swift /host/spi-builder-workspace/Sources/OAuthenticator/ASWebAuthenticationSession+Utility.swift /host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift /host/spi-builder-workspace/Sources/OAuthenticator/CredentialWindowProvider.swift /host/spi-builder-workspace/Sources/OAuthenticator/DPoPKey.swift /host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift /host/spi-builder-workspace/Sources/OAuthenticator/Data+Base64URLEncode.swift /host/spi-builder-workspace/Sources/OAuthenticator/Models.swift /host/spi-builder-workspace/Sources/OAuthenticator/OAuthTypes.swift /host/spi-builder-workspace/Sources/OAuthenticator/PKCE.swift /host/spi-builder-workspace/Sources/OAuthenticator/Services/Bluesky.swift /host/spi-builder-workspace/Sources/OAuthenticator/Services/GitHub.swift /host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift /host/spi-builder-workspace/Sources/OAuthenticator/Services/Mastodon.swift /host/spi-builder-workspace/Sources/OAuthenticator/URL+Origin.swift /host/spi-builder-workspace/Sources/OAuthenticator/URL+QueryParams.swift /host/spi-builder-workspace/Sources/OAuthenticator/URL+TargetURI.swift /host/spi-builder-workspace/Sources/OAuthenticator/URLHelpers.swift /host/spi-builder-workspace/Sources/OAuthenticator/URLSession+ResponseProvider.swift /host/spi-builder-workspace/Sources/OAuthenticator/WebAuthenticationSession+Utility.swift /host/spi-builder-workspace/Sources/OAuthenticator/WellknownEndpoints.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/OAuthenticator.build/Debug-webassembly-wasm32/OAuthenticator-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/OAuthenticator.build/Debug-webassembly-wasm32/OAuthenticator-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/OAuthenticator.build/Debug-webassembly-wasm32/OAuthenticator-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name OAuthenticator -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/OAuthenticator.build/Debug-webassembly-wasm32/OAuthenticator-t.build/Objects-normal/wasm32/OAuthenticator_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OAuthenticator.build/Debug-webassembly-wasm32/OAuthenticator-t.build/Objects-normal/wasm32/Modules/OAuthenticator.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OAuthenticator.build/Debug-webassembly-wasm32/OAuthenticator-t.build/Objects-normal/wasm32/Modules/OAuthenticator.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OAuthenticator.build/Debug-webassembly-wasm32/OAuthenticator-t.build/Objects-normal/wasm32/OAuthenticator-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OAuthenticator.build/Debug-webassembly-wasm32/OAuthenticator-t.build/Objects-normal/wasm32/OAuthenticator-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/OAuthenticator.build/Debug-webassembly-wasm32/OAuthenticator-t.build/Objects-normal/wasm32/OAuthenticator-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/OAuthenticator.build/Debug-webassembly-wasm32/OAuthenticator-t.build/Objects-normal/wasm32/Modules/OAuthenticator.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm