The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build CaptchaKit, reference main (2a65d1), with Swift 6.1 for Wasm on 9 Jul 2025 09:52:27 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mikuwithbeer/CaptchaKit.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/mikuwithbeer/CaptchaKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2a65d1e bump to 1.1.0
Cloned https://github.com/mikuwithbeer/CaptchaKit.git
Revision (git rev-parse @):
2a65d1e4ce86ffcde93b72a5cd6788b41bdfc5d8
SUCCESS checkout https://github.com/mikuwithbeer/CaptchaKit.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/mikuwithbeer/CaptchaKit.git
https://github.com/mikuwithbeer/CaptchaKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CaptchaKit",
  "name" : "CaptchaKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "CaptchaKit",
      "targets" : [
        "CaptchaKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CaptchaKitTests",
      "module_type" : "SwiftTarget",
      "name" : "CaptchaKitTests",
      "path" : "Tests/CaptchaKitTests",
      "sources" : [
        "CaptchaKitTests.swift"
      ],
      "target_dependencies" : [
        "CaptchaKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CaptchaKit",
      "module_type" : "SwiftTarget",
      "name" : "CaptchaKit",
      "path" : "Sources/CaptchaKit",
      "product_memberships" : [
        "CaptchaKit"
      ],
      "sources" : [
        "CaptchaAPI.swift",
        "CaptchaError.swift",
        "CaptchaKit.swift",
        "CaptchaService.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/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 finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] Compiling CaptchaKit CaptchaError.swift
[4/7] Compiling CaptchaKit CaptchaKit.swift
[5/7] Compiling CaptchaKit CaptchaService.swift
[6/7] Emitting module CaptchaKit
/host/spi-builder-workspace/Sources/CaptchaKit/CaptchaAPI.swift:70:48: error: cannot find type 'URLRequest' in scope
 68 |     /// - Throws: ``CaptchaError`` if the request body cannot be created.
 69 |     /// - Returns: A configured ``URLRequest``.
 70 |     func makeRequest() throws(CaptchaError) -> URLRequest {
    |                                                `- error: cannot find type 'URLRequest' in scope
 71 |         var request = URLRequest(url: service.url)
 72 |
[7/7] Compiling CaptchaKit CaptchaAPI.swift
/host/spi-builder-workspace/Sources/CaptchaKit/CaptchaAPI.swift:70:48: error: cannot find type 'URLRequest' in scope
 68 |     /// - Throws: ``CaptchaError`` if the request body cannot be created.
 69 |     /// - Returns: A configured ``URLRequest``.
 70 |     func makeRequest() throws(CaptchaError) -> URLRequest {
    |                                                `- error: cannot find type 'URLRequest' in scope
 71 |         var request = URLRequest(url: service.url)
 72 |
/host/spi-builder-workspace/Sources/CaptchaKit/CaptchaAPI.swift:71:23: error: cannot find 'URLRequest' in scope
 69 |     /// - Returns: A configured ``URLRequest``.
 70 |     func makeRequest() throws(CaptchaError) -> URLRequest {
 71 |         var request = URLRequest(url: service.url)
    |                       `- error: cannot find 'URLRequest' in scope
 72 |
 73 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/CaptchaKit/CaptchaAPI.swift:90:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 88 |
 89 |         do {
 90 |             let (data, _) = try await URLSession.shared.data(for: request)
    |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 91 |             let response = try JSONDecoder().decode(CaptchaResponseData.self, from: data)
 92 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/6] Emitting module CaptchaKit
/host/spi-builder-workspace/Sources/CaptchaKit/CaptchaAPI.swift:70:48: error: cannot find type 'URLRequest' in scope
 68 |     /// - Throws: ``CaptchaError`` if the request body cannot be created.
 69 |     /// - Returns: A configured ``URLRequest``.
 70 |     func makeRequest() throws(CaptchaError) -> URLRequest {
    |                                                `- error: cannot find type 'URLRequest' in scope
 71 |         var request = URLRequest(url: service.url)
 72 |
[3/6] Compiling CaptchaKit CaptchaAPI.swift
/host/spi-builder-workspace/Sources/CaptchaKit/CaptchaAPI.swift:70:48: error: cannot find type 'URLRequest' in scope
 68 |     /// - Throws: ``CaptchaError`` if the request body cannot be created.
 69 |     /// - Returns: A configured ``URLRequest``.
 70 |     func makeRequest() throws(CaptchaError) -> URLRequest {
    |                                                `- error: cannot find type 'URLRequest' in scope
 71 |         var request = URLRequest(url: service.url)
 72 |
/host/spi-builder-workspace/Sources/CaptchaKit/CaptchaAPI.swift:71:23: error: cannot find 'URLRequest' in scope
 69 |     /// - Returns: A configured ``URLRequest``.
 70 |     func makeRequest() throws(CaptchaError) -> URLRequest {
 71 |         var request = URLRequest(url: service.url)
    |                       `- error: cannot find 'URLRequest' in scope
 72 |
 73 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/CaptchaKit/CaptchaAPI.swift:90:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 88 |
 89 |         do {
 90 |             let (data, _) = try await URLSession.shared.data(for: request)
    |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 91 |             let response = try JSONDecoder().decode(CaptchaResponseData.self, from: data)
 92 |
[4/6] Compiling CaptchaKit CaptchaKit.swift
[5/6] Compiling CaptchaKit CaptchaError.swift
[6/6] Compiling CaptchaKit CaptchaService.swift
BUILD FAILURE 6.1 wasm