The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftWebview, reference main (b7582b), with Swift 6.2 for Wasm on 20 Jun 2025 09:16:42 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-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/jakenvac/SwiftWebview.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/jakenvac/SwiftWebview
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b7582ba Update README.md
Cloned https://github.com/jakenvac/SwiftWebview.git
Revision (git rev-parse @):
b7582bab77f890e3eadc2ba3c0ece113b64685d7
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/jakenvac/SwiftWebview.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/jakenvac/SwiftWebview.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Building for debugging...
[0/3] Write sources
In file included from /host/spi-builder-workspace/Sources/cWebview/include/webview.cc:1:
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:199:2: error: "please, specify webview backend"
  199 | #error "please, specify webview backend"
      |  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2174:24: error: expected class name
 2174 | class webview : public browser_engine {
      |                        ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2177:9: error: member initializer 'browser_engine' does not name a non-static data member or base class
 2177 |       : browser_engine(debug, wnd) {}
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2181:7: error: use of undeclared identifier 'browser_engine'
 2181 |       browser_engine::navigate("about:blank");
      |       ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2184:5: error: use of undeclared identifier 'browser_engine'
 2184 |     browser_engine::navigate(url);
      |     ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2231:5: error: use of undeclared identifier 'init'; did you mean 'int'?
 2231 |     init(js);
      |     ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2232:5: error: use of undeclared identifier 'eval'
 2232 |     eval(js);
      |     ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2239:7: error: use of undeclared identifier 'init'; did you mean 'int'?
 2239 |       init(js);
      |       ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2240:7: error: use of undeclared identifier 'eval'
 2240 |       eval(js);
      |       ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2248:9: error: use of undeclared identifier 'eval'
 2248 |         eval("window._rpc[" + seq + "].resolve(" + result +
      |         ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2251:9: error: use of undeclared identifier 'eval'
 2251 |         eval("window._rpc[" + seq + "].reject(" + result +
      |         ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2246:5: error: use of undeclared identifier 'dispatch'
 2246 |     dispatch([seq, status, result, this]() {
      |     ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2276:11: error: no member named 'window' in 'webview::webview'
 2276 |   if (!w->window()) {
      |        ~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2288:39: error: no member named 'run' in 'webview::webview'
 2288 |   static_cast<webview::webview *>(w)->run();
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2292:39: error: no member named 'terminate' in 'webview::webview'
 2292 |   static_cast<webview::webview *>(w)->terminate();
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2297:39: error: no member named 'dispatch' in 'webview::webview'
 2297 |   static_cast<webview::webview *>(w)->dispatch([=]() { fn(w, arg); });
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2301:46: error: no member named 'window' in 'webview::webview'
 2301 |   return static_cast<webview::webview *>(w)->window();
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2305:39: error: no member named 'set_title' in 'webview::webview'
 2305 |   static_cast<webview::webview *>(w)->set_title(title);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/host/spi-builder-workspace/Sources/cWebview/include/webview.h:2310:39: error: no member named 'set_size' in 'webview::webview'
 2310 |   static_cast<webview::webview *>(w)->set_size(width, height, hints);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[1/3] Compiling webview.cc
[1/3] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.2 wasm