The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-justhtml, reference 0.4.1 (7178a3), with Swift 6.1 for Wasm on 25 Mar 2026 07:50:39 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kylehowells/swift-justhtml.git
Reference: 0.4.1
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/kylehowells/swift-justhtml
 * tag               0.4.1      -> FETCH_HEAD
HEAD is now at 7178a35 Apply SwiftFormat fixes
Cloned https://github.com/kylehowells/swift-justhtml.git
Revision (git rev-parse @):
7178a35ca863bff6cbe79ac9b62823d4d3b6fc7f
SUCCESS checkout https://github.com/kylehowells/swift-justhtml.git at 0.4.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/kylehowells/swift-justhtml.git
https://github.com/kylehowells/swift-justhtml.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swiftlang/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "swift-justhtml",
  "name" : "swift-justhtml",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "justhtml",
      "targets" : [
        "justhtml"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "htmltool",
      "targets" : [
        "HTMLTool"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "HTML2MD",
      "targets" : [
        "HTML2MD"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "FetchPage",
      "targets" : [
        "FetchPage"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "ExtractLinks",
      "targets" : [
        "ExtractLinks"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "Benchmark",
      "targets" : [
        "Benchmark"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "swift_justhtmlTests",
      "module_type" : "SwiftTarget",
      "name" : "swift-justhtmlTests",
      "path" : "Tests/swift-justhtmlTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/swift-justhtmlTests/html5lib-tests",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "BenchmarkTests.swift",
        "DoSProtectionTests.swift",
        "EncodingTests.swift",
        "FuzzerTests.swift",
        "HTMLStreamTests.swift",
        "MarkdownTests.swift",
        "ProfilingTests.swift",
        "PublicAPITests.swift",
        "SelectorTests.swift",
        "SerializerTests.swift",
        "SmokeTests.swift",
        "TokenizerTests.swift",
        "TreeConstructionTests.swift"
      ],
      "target_dependencies" : [
        "justhtml"
      ],
      "type" : "test"
    },
    {
      "c99name" : "justhtml",
      "module_type" : "SwiftTarget",
      "name" : "justhtml",
      "path" : "Sources/swift-justhtml",
      "product_memberships" : [
        "justhtml",
        "htmltool",
        "HTML2MD",
        "FetchPage",
        "ExtractLinks",
        "Benchmark"
      ],
      "sources" : [
        "Constants.swift",
        "Encoding.swift",
        "Entities.swift",
        "EntitiesData.swift",
        "HTMLStream.swift",
        "JustHTML.swift",
        "Node.swift",
        "ParserLimits.swift",
        "Selector.swift",
        "Serialize.swift",
        "Tokenizer.swift",
        "Tokens.swift",
        "TreeBuilder.swift",
        "swift_justhtml.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HTMLTool",
      "module_type" : "SwiftTarget",
      "name" : "HTMLTool",
      "path" : "Examples/htmltool",
      "product_memberships" : [
        "htmltool"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "justhtml"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "HTML2MD",
      "module_type" : "SwiftTarget",
      "name" : "HTML2MD",
      "path" : "Examples/html2md",
      "product_memberships" : [
        "HTML2MD"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "justhtml"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "FetchPage",
      "module_type" : "SwiftTarget",
      "name" : "FetchPage",
      "path" : "Examples/fetchpage",
      "product_memberships" : [
        "FetchPage"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "justhtml"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "ExtractLinks",
      "module_type" : "SwiftTarget",
      "name" : "ExtractLinks",
      "path" : "Examples/extractlinks",
      "product_memberships" : [
        "ExtractLinks"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "justhtml"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Benchmark",
      "module_type" : "SwiftTarget",
      "name" : "Benchmark",
      "path" : "Benchmarks/Sources",
      "product_memberships" : [
        "Benchmark"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "justhtml"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7b4552feb759c014e60bb7d16019351f72ce4b9f19dbbaa081e1f5551c90672
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2171] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.03s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.6 (4.57s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3671] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.50s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.48s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.6
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/htmltool/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/html2md/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/fetchpage/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/extractlinks/README.md
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/25] Write sources
[8/25] Write swift-version-24593BA9C3E375BF.txt
[10/39] Compiling justhtml Tokenizer.swift
[11/39] Compiling justhtml Tokens.swift
[12/39] Compiling justhtml TreeBuilder.swift
[13/40] Compiling justhtml Selector.swift
[14/40] Compiling justhtml Serialize.swift
[15/40] Compiling justhtml HTMLStream.swift
[16/40] Compiling justhtml JustHTML.swift
[17/40] Compiling justhtml Node.swift
[18/40] Compiling justhtml ParserLimits.swift
[19/40] Compiling justhtml swift_justhtml.swift
[20/40] Emitting module justhtml
[21/40] Compiling justhtml Constants.swift
[22/40] Compiling justhtml Encoding.swift
[23/40] Compiling justhtml Entities.swift
[24/40] Compiling justhtml EntitiesData.swift
[25/41] Wrapping AST for justhtml for debugging
[27/51] Emitting module HTMLTool
[28/51] Compiling ExtractLinks main.swift
[29/51] Emitting module ExtractLinks
error: emit-module command failed with exit code 1 (use -v to see invocation)
[30/52] Emitting module FetchPage
/host/spi-builder-workspace/Examples/fetchpage/main.swift:66:16: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 | final class FetchResult: @unchecked Sendable {
 65 | 	var data: Data? = nil
 66 | 	var response: URLResponse? = nil
    |                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 | 	var error: Error? = nil
 68 | }
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
[31/52] Compiling FetchPage main.swift
/host/spi-builder-workspace/Examples/fetchpage/main.swift:66:16: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 | final class FetchResult: @unchecked Sendable {
 65 | 	var data: Data? = nil
 66 | 	var response: URLResponse? = nil
    |                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 | 	var error: Error? = nil
 68 | }
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/Examples/fetchpage/main.swift:76:16: error: cannot find 'URLRequest' in scope
 74 | 	}
 75 |
 76 | 	var request = URLRequest(url: url)
    |                `- error: cannot find 'URLRequest' in scope
 77 | 	request.timeoutInterval = 30
 78 |
/host/spi-builder-workspace/Examples/fetchpage/main.swift:79:18: error: cannot find 'DispatchSemaphore' in scope
 77 | 	request.timeoutInterval = 30
 78 |
 79 | 	let semaphore = DispatchSemaphore(value: 0)
    |                  `- error: cannot find 'DispatchSemaphore' in scope
 80 | 	let result = FetchResult()
 81 |
/host/spi-builder-workspace/Examples/fetchpage/main.swift:82:24: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 80 | 	let result = FetchResult()
 81 |
 82 | 	let task = URLSession.shared.dataTask(with: request) { data, response, error in
    |                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 83 | 		result.data = data
 84 | 		result.response = response
/host/spi-builder-workspace/Examples/fetchpage/main.swift:84:21: error: value of type '_' expected to be an instance of a class or class-constrained type in assignment
 82 | 	let task = URLSession.shared.dataTask(with: request) { data, response, error in
 83 | 		result.data = data
 84 | 		result.response = response
    |                     `- error: value of type '_' expected to be an instance of a class or class-constrained type in assignment
 85 | 		result.error = error
 86 | 		semaphore.signal()
/host/spi-builder-workspace/Examples/fetchpage/main.swift:99:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 97 | 	}
 98 |
 99 | 	guard let httpResponse = result.response as? HTTPURLResponse else {
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
100 | 		throw NSError(domain: "fetchpage", code: 2, userInfo: [NSLocalizedDescriptionKey: "Not an HTTP response"])
101 | 	}
/host/spi-builder-workspace/Examples/fetchpage/main.swift:99:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 | 	}
 98 |
 99 | 	guard let httpResponse = result.response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | 		throw NSError(domain: "fetchpage", code: 2, userInfo: [NSLocalizedDescriptionKey: "Not an HTTP response"])
101 | 	}
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/Examples/fetchpage/main.swift:103:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
101 | 	}
102 |
103 | 	guard (200 ... 299).contains(httpResponse.statusCode) else {
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 | 		throw NSError(
105 | 			domain: "fetchpage", code: 3,
/host/spi-builder-workspace/Examples/fetchpage/main.swift:106:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 | 		throw NSError(
105 | 			domain: "fetchpage", code: 3,
106 | 			userInfo: [NSLocalizedDescriptionKey: "HTTP \(httpResponse.statusCode)"])
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
107 | 	}
108 |
/host/spi-builder-workspace/Examples/fetchpage/main.swift:111:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
109 | 	// Determine encoding from Content-Type header, default to UTF-8
110 | 	var encoding = String.Encoding.utf8
111 | 	if let contentType = httpResponse.value(forHTTPHeaderField: "Content-Type"),
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
112 | 	   contentType.lowercased().contains("charset=iso-8859-1")
113 | 	{
/host/spi-builder-workspace/Examples/fetchpage/main.swift:122:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
120 |
121 | 	// Return final URL (after redirects)
122 | 	let finalURL = httpResponse.url ?? url
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
123 | 	return (html, finalURL)
124 | }
[32/52] Compiling HTML2MD main.swift
[33/52] Emitting module HTML2MD
[34/53] Emitting module Benchmark
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7b4552feb759c014e60bb7d16019351f72ce4b9f19dbbaa081e1f5551c90672
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/htmltool/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/html2md/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/fetchpage/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/extractlinks/README.md
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/19] Write swift-version-24593BA9C3E375BF.txt
[4/33] Compiling justhtml Selector.swift
[5/33] Compiling justhtml Serialize.swift
[6/33] Compiling justhtml Node.swift
[7/33] Compiling justhtml ParserLimits.swift
[8/34] Compiling justhtml swift_justhtml.swift
[9/34] Compiling justhtml Tokenizer.swift
[10/34] Compiling justhtml Tokens.swift
[11/34] Compiling justhtml HTMLStream.swift
[12/34] Compiling justhtml JustHTML.swift
[13/34] Compiling justhtml TreeBuilder.swift
[14/34] Compiling justhtml Entities.swift
[15/34] Compiling justhtml EntitiesData.swift
[16/34] Emitting module justhtml
[17/34] Compiling justhtml Constants.swift
[18/34] Compiling justhtml Encoding.swift
[20/44] Emitting module HTML2MD
[21/44] Compiling HTML2MD main.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/45] Emitting module FetchPage
/host/spi-builder-workspace/Examples/fetchpage/main.swift:66:16: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 | final class FetchResult: @unchecked Sendable {
 65 | 	var data: Data? = nil
 66 | 	var response: URLResponse? = nil
    |                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 | 	var error: Error? = nil
 68 | }
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
[23/45] Compiling FetchPage main.swift
/host/spi-builder-workspace/Examples/fetchpage/main.swift:66:16: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 | final class FetchResult: @unchecked Sendable {
 65 | 	var data: Data? = nil
 66 | 	var response: URLResponse? = nil
    |                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 | 	var error: Error? = nil
 68 | }
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/Examples/fetchpage/main.swift:76:16: error: cannot find 'URLRequest' in scope
 74 | 	}
 75 |
 76 | 	var request = URLRequest(url: url)
    |                `- error: cannot find 'URLRequest' in scope
 77 | 	request.timeoutInterval = 30
 78 |
/host/spi-builder-workspace/Examples/fetchpage/main.swift:79:18: error: cannot find 'DispatchSemaphore' in scope
 77 | 	request.timeoutInterval = 30
 78 |
 79 | 	let semaphore = DispatchSemaphore(value: 0)
    |                  `- error: cannot find 'DispatchSemaphore' in scope
 80 | 	let result = FetchResult()
 81 |
/host/spi-builder-workspace/Examples/fetchpage/main.swift:82:24: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 80 | 	let result = FetchResult()
 81 |
 82 | 	let task = URLSession.shared.dataTask(with: request) { data, response, error in
    |                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 83 | 		result.data = data
 84 | 		result.response = response
/host/spi-builder-workspace/Examples/fetchpage/main.swift:84:21: error: value of type '_' expected to be an instance of a class or class-constrained type in assignment
 82 | 	let task = URLSession.shared.dataTask(with: request) { data, response, error in
 83 | 		result.data = data
 84 | 		result.response = response
    |                     `- error: value of type '_' expected to be an instance of a class or class-constrained type in assignment
 85 | 		result.error = error
 86 | 		semaphore.signal()
/host/spi-builder-workspace/Examples/fetchpage/main.swift:99:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 97 | 	}
 98 |
 99 | 	guard let httpResponse = result.response as? HTTPURLResponse else {
    |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
100 | 		throw NSError(domain: "fetchpage", code: 2, userInfo: [NSLocalizedDescriptionKey: "Not an HTTP response"])
101 | 	}
/host/spi-builder-workspace/Examples/fetchpage/main.swift:99:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 | 	}
 98 |
 99 | 	guard let httpResponse = result.response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | 		throw NSError(domain: "fetchpage", code: 2, userInfo: [NSLocalizedDescriptionKey: "Not an HTTP response"])
101 | 	}
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/Examples/fetchpage/main.swift:103:44: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
101 | 	}
102 |
103 | 	guard (200 ... 299).contains(httpResponse.statusCode) else {
    |                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 | 		throw NSError(
105 | 			domain: "fetchpage", code: 3,
/host/spi-builder-workspace/Examples/fetchpage/main.swift:106:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 | 		throw NSError(
105 | 			domain: "fetchpage", code: 3,
106 | 			userInfo: [NSLocalizedDescriptionKey: "HTTP \(httpResponse.statusCode)"])
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
107 | 	}
108 |
/host/spi-builder-workspace/Examples/fetchpage/main.swift:111:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
109 | 	// Determine encoding from Content-Type header, default to UTF-8
110 | 	var encoding = String.Encoding.utf8
111 | 	if let contentType = httpResponse.value(forHTTPHeaderField: "Content-Type"),
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
112 | 	   contentType.lowercased().contains("charset=iso-8859-1")
113 | 	{
/host/spi-builder-workspace/Examples/fetchpage/main.swift:122:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
120 |
121 | 	// Return final URL (after redirects)
122 | 	let finalURL = httpResponse.url ?? url
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
123 | 	return (html, finalURL)
124 | }
[24/45] Emitting module ExtractLinks
[25/45] Emitting module HTMLTool
[26/45] Emitting module Benchmark
BUILD FAILURE 6.1 wasm