The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftScriptRunner, reference 1.0.1 (798b03), with Swift 6.3 for Wasm on 10 Apr 2026 13:48:59 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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.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/mgrebenets/SwiftScriptRunner.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/mgrebenets/SwiftScriptRunner
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at 798b03c Update examples
Cloned https://github.com/mgrebenets/SwiftScriptRunner.git
Revision (git rev-parse @):
798b03c37d809cc7f9e1f2086d600c7b0dfd8e6b
SUCCESS checkout https://github.com/mgrebenets/SwiftScriptRunner.git at 1.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/mgrebenets/SwiftScriptRunner.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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.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/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/4] Emitting module SwiftScriptRunner
/host/spi-builder-workspace/Sources/SwiftScriptRunner.swift:12:35: error: 'current' is unavailable: RunLoop is not available on WASI
10 |
11 |     /// Current run loop.
12 |     private let runLoop = RunLoop.current
   |                                   `- error: 'current' is unavailable: RunLoop is not available on WASI
13 |
14 |     /// Initializer.
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 |   open class var current: RunLoop { get }}
  |                  `- note: 'current' has been explicitly marked unavailable here
4 |
[4/4] Compiling SwiftScriptRunner SwiftScriptRunner.swift
/host/spi-builder-workspace/Sources/SwiftScriptRunner.swift:12:35: error: 'current' is unavailable: RunLoop is not available on WASI
10 |
11 |     /// Current run loop.
12 |     private let runLoop = RunLoop.current
   |                                   `- error: 'current' is unavailable: RunLoop is not available on WASI
13 |
14 |     /// Initializer.
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 |   open class var current: RunLoop { get }}
  |                  `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftScriptRunner.swift:30:21: error: value of type 'RunLoop' has no member 'run'
28 |     open func wait() {
29 |         while count > 0 &&
30 |             runLoop.run(mode: .defaultRunLoopMode, before: Date(timeIntervalSinceNow: 0.1)) {
   |                     `- error: value of type 'RunLoop' has no member 'run'
31 |                 // Run, run, run
32 |         }
/host/spi-builder-workspace/Sources/SwiftScriptRunner.swift:30:32: error: cannot infer contextual base in reference to member 'defaultRunLoopMode'
28 |     open func wait() {
29 |         while count > 0 &&
30 |             runLoop.run(mode: .defaultRunLoopMode, before: Date(timeIntervalSinceNow: 0.1)) {
   |                                `- error: cannot infer contextual base in reference to member 'defaultRunLoopMode'
31 |                 // Run, run, run
32 |         }
BUILD FAILURE 6.3 wasm