The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Stem with Swift 5.7 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.33.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/linhay/Stem.git
Reference: master
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/linhay/Stem
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 1585887 chore: 增强
Cloned https://github.com/linhay/Stem.git
Revision (git rev-parse @):
15858877b983f2a3d81198fc5b81439741772734
SUCCESS checkout https://github.com/linhay/Stem.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.7
Building package at path:  $workDir
https://github.com/linhay/Stem.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Tests/StemTests/Resource/fixture.xcassets
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Tests/StemColorTests/Resource/fixture.xcassets
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)[1/177] Emitting module StemHybrid
/host/spi-builder-workspace/Sources/StemHybrid/StemHybridConfiguration.swift:8:8: error: no such module 'WebKit'
import WebKit
       ^
[2/177] Compiling StemHybrid StemHybridWebView.swift
/host/spi-builder-workspace/Sources/StemHybrid/StemHybridConfiguration.swift:8:8: error: no such module 'WebKit'
import WebKit
       ^
[3/177] Compiling StemHybrid StemHybridConfiguration.swift
/host/spi-builder-workspace/Sources/StemHybrid/StemHybridConfiguration.swift:8:8: error: no such module 'WebKit'
import WebKit
       ^
[4/177] Compiling StemHybrid StemHybridViewController.swift
/host/spi-builder-workspace/Sources/StemHybrid/StemHybridConfiguration.swift:8:8: error: no such module 'WebKit'
import WebKit
       ^
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Tests/StemTests/Resource/fixture.xcassets
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Tests/StemColorTests/Resource/fixture.xcassets
[0/1] Planning build
Building for debugging...
[1/31] Compiling StemHybrid StemHybridWebView.swift
/host/spi-builder-workspace/Sources/StemHybrid/StemHybridConfiguration.swift:8:8: error: no such module 'WebKit'
import WebKit
       ^
[2/31] Compiling StemHybrid StemHybridConfiguration.swift
/host/spi-builder-workspace/Sources/StemHybrid/StemHybridConfiguration.swift:8:8: error: no such module 'WebKit'
import WebKit
       ^
[3/31] Compiling StemHybrid StemHybridViewController.swift
/host/spi-builder-workspace/Sources/StemHybrid/StemHybridConfiguration.swift:8:8: error: no such module 'WebKit'
import WebKit
       ^
error: emit-module command failed with exit code 1 (use -v to see invocation)[4/35] Emitting module StemHybrid
/host/spi-builder-workspace/Sources/StemHybrid/StemHybridConfiguration.swift:8:8: error: no such module 'WebKit'
import WebKit
       ^
BUILD FAILURE 5.7 linux

Build Machine: Linux 2