The Swift Package Index logo.Swift Package Index

Build Information

Failed to build YaSpellChecker, reference 1.0.1 (ed577c), with Swift 6.3 for Wasm on 16 Apr 2026 18:27:55 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/makoni/YaSpellChecker.git
Reference: 1.0.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/makoni/YaSpellChecker
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at ed577c3 Add agent instructions and enhance error localization tests. Fixed building for Linux
Cloned https://github.com/makoni/YaSpellChecker.git
Revision (git rev-parse @):
ed577c3ede9d2a6769e8c5b1d14a3821c3c29978
SUCCESS checkout https://github.com/makoni/YaSpellChecker.git at 1.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/makoni/YaSpellChecker.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/9] Copying Info.plist
[0/9] Copying Localizable.xcstrings
[2/9] Write sources
[4/9] Write swift-version-24593BA9C3E375BF.txt
[6/12] Emitting module YaSpellChecker
[7/12] Compiling YaSpellChecker resource_bundle_accessor.swift
[8/12] Compiling YaSpellChecker YaSpellChecker.swift
/host/spi-builder-workspace/Sources/YaSpellChecker/YaSpellChecker.swift:56:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     public func checkAndCorrect(text: String, lang: String = "ru,en", options: Int = 0, format: String = "plain") async throws -> String {
 55 |         let data: Data
 56 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |         guard let url = URL(string: endpoint) else {
 58 |             throw YaSpellCheckerError.invalidResponse
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/YaSpellChecker/YaSpellChecker.swift:60:23: error: cannot find 'URLRequest' in scope
 58 |             throw YaSpellCheckerError.invalidResponse
 59 |         }
 60 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 61 |         request.httpMethod = "POST"
 62 |         let params = [
/host/spi-builder-workspace/Sources/YaSpellChecker/YaSpellChecker.swift:73:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 71 |
 72 |         do {
 73 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 74 |         } catch {
 75 |             throw YaSpellCheckerError.networkError(error)
/host/spi-builder-workspace/Sources/YaSpellChecker/YaSpellChecker.swift:78:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 76 |         }
 77 |
 78 |         guard let httpResponse = response as? HTTPURLResponse, httpResponse.statusCode == 200 else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 79 |             throw YaSpellCheckerError.invalidResponse
 80 |         }
/host/spi-builder-workspace/Sources/YaSpellChecker/YaSpellChecker.swift:78:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         }
 77 |
 78 |         guard let httpResponse = response as? HTTPURLResponse, httpResponse.statusCode == 200 else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |             throw YaSpellCheckerError.invalidResponse
 80 |         }
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/YaSpellChecker/YaSpellChecker.swift:78:77: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 76 |         }
 77 |
 78 |         guard let httpResponse = response as? HTTPURLResponse, httpResponse.statusCode == 200 else {
    |                                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 79 |             throw YaSpellCheckerError.invalidResponse
 80 |         }
BUILD FAILURE 6.3 wasm