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 Textbook, reference main (536f2a), with Swift 6.1 for Wasm on 15 Dec 2025 04:11:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ChimeHQ/Textbook.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/ChimeHQ/Textbook
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 536f2a4 less-specific destination
Cloned https://github.com/ChimeHQ/Textbook.git
Revision (git rev-parse @):
536f2a482effdebf3c64c818484541636ea4bf54
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ChimeHQ/Textbook.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ChimeHQ/Textbook.git
https://github.com/ChimeHQ/Textbook.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Textbook",
  "name" : "Textbook",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "Textbook",
      "targets" : [
        "Textbook"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TextbookTests",
      "module_type" : "SwiftTarget",
      "name" : "TextbookTests",
      "path" : "Tests/TextbookTests",
      "sources" : [
        "BaseTextViewTests.swift",
        "TextViewTests.swift"
      ],
      "target_dependencies" : [
        "Textbook"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Textbook",
      "module_type" : "SwiftTarget",
      "name" : "Textbook",
      "path" : "Sources/Textbook",
      "product_memberships" : [
        "Textbook"
      ],
      "sources" : [
        "BaseTextView_AppKit.swift",
        "NSTextView+Behavior.swift",
        "Platform.swift",
        "TextView_AppKit.swift",
        "TextView_UIKit.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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.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:dbcbf45695e2d1afcaee9a5a93239e71a6cc4a5872f338d6e993e9ceefe7df1b
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/8] Emitting module Textbook
/host/spi-builder-workspace/Sources/Textbook/TextView_AppKit.swift:1:8: error: no such module 'SwiftUI'
 1 | import SwiftUI
   |        `- error: no such module 'SwiftUI'
 2 |
 3 | #if os(macOS) && !targetEnvironment(macCatalyst)
[4/8] Compiling Textbook TextView_UIKit.swift
/host/spi-builder-workspace/Sources/Textbook/TextView_AppKit.swift:1:8: error: no such module 'SwiftUI'
 1 | import SwiftUI
   |        `- error: no such module 'SwiftUI'
 2 |
 3 | #if os(macOS) && !targetEnvironment(macCatalyst)
[5/8] Compiling Textbook BaseTextView_AppKit.swift
/host/spi-builder-workspace/Sources/Textbook/TextView_AppKit.swift:1:8: error: no such module 'SwiftUI'
 1 | import SwiftUI
   |        `- error: no such module 'SwiftUI'
 2 |
 3 | #if os(macOS) && !targetEnvironment(macCatalyst)
[6/8] Compiling Textbook TextView_AppKit.swift
/host/spi-builder-workspace/Sources/Textbook/TextView_AppKit.swift:1:8: error: no such module 'SwiftUI'
 1 | import SwiftUI
   |        `- error: no such module 'SwiftUI'
 2 |
 3 | #if os(macOS) && !targetEnvironment(macCatalyst)
[7/8] Compiling Textbook NSTextView+Behavior.swift
/host/spi-builder-workspace/Sources/Textbook/TextView_AppKit.swift:1:8: error: no such module 'SwiftUI'
 1 | import SwiftUI
   |        `- error: no such module 'SwiftUI'
 2 |
 3 | #if os(macOS) && !targetEnvironment(macCatalyst)
[8/8] Compiling Textbook Platform.swift
/host/spi-builder-workspace/Sources/Textbook/TextView_AppKit.swift:1:8: error: no such module 'SwiftUI'
 1 | import SwiftUI
   |        `- error: no such module 'SwiftUI'
 2 |
 3 | #if os(macOS) && !targetEnvironment(macCatalyst)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:dbcbf45695e2d1afcaee9a5a93239e71a6cc4a5872f338d6e993e9ceefe7df1b
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/7] Emitting module Textbook
/host/spi-builder-workspace/Sources/Textbook/TextView_AppKit.swift:1:8: error: no such module 'SwiftUI'
 1 | import SwiftUI
   |        `- error: no such module 'SwiftUI'
 2 |
 3 | #if os(macOS) && !targetEnvironment(macCatalyst)
[3/7] Compiling Textbook Platform.swift
/host/spi-builder-workspace/Sources/Textbook/TextView_AppKit.swift:1:8: error: no such module 'SwiftUI'
 1 | import SwiftUI
   |        `- error: no such module 'SwiftUI'
 2 |
 3 | #if os(macOS) && !targetEnvironment(macCatalyst)
[4/7] Compiling Textbook NSTextView+Behavior.swift
/host/spi-builder-workspace/Sources/Textbook/TextView_AppKit.swift:1:8: error: no such module 'SwiftUI'
 1 | import SwiftUI
   |        `- error: no such module 'SwiftUI'
 2 |
 3 | #if os(macOS) && !targetEnvironment(macCatalyst)
[5/7] Compiling Textbook TextView_AppKit.swift
/host/spi-builder-workspace/Sources/Textbook/TextView_AppKit.swift:1:8: error: no such module 'SwiftUI'
 1 | import SwiftUI
   |        `- error: no such module 'SwiftUI'
 2 |
 3 | #if os(macOS) && !targetEnvironment(macCatalyst)
[6/7] Compiling Textbook BaseTextView_AppKit.swift
/host/spi-builder-workspace/Sources/Textbook/TextView_AppKit.swift:1:8: error: no such module 'SwiftUI'
 1 | import SwiftUI
   |        `- error: no such module 'SwiftUI'
 2 |
 3 | #if os(macOS) && !targetEnvironment(macCatalyst)
[7/7] Compiling Textbook TextView_UIKit.swift
/host/spi-builder-workspace/Sources/Textbook/TextView_AppKit.swift:1:8: error: no such module 'SwiftUI'
 1 | import SwiftUI
   |        `- error: no such module 'SwiftUI'
 2 |
 3 | #if os(macOS) && !targetEnvironment(macCatalyst)
BUILD FAILURE 6.1 wasm