The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WWCacheManager, reference 1.1.0 (f1cb47), with Swift 6.2 for Wasm on 27 Jun 2026 17:11:03 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/William-Weng/WWCacheManager.git
Reference: 1.1.0
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/William-Weng/WWCacheManager
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at f1cb47f - 增加執行緒安全功能 (讀寫鎖) - Swift 5.7 + iOS 16
Cloned https://github.com/William-Weng/WWCacheManager.git
Revision (git rev-parse @):
f1cb47f9ecf8bd4c323432a1145f4b5628bb7bab
SUCCESS checkout https://github.com/William-Weng/WWCacheManager.git at 1.1.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/William-Weng/WWCacheManager.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:dc8dffc38f1d92eca7ee5312617822470123661393ed20672e77964f9dcaaffb
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/3] Write sources
[1/3] Copying Privacy
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Compiling WWCacheManager resource_bundle_accessor.swift
[5/7] Emitting module WWCacheManager
/host/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:21:25: error: cannot find 'DispatchQueue' in scope
 19 |     /// - sync: 讀取可並行(多 reader)
 20 |     /// - barrier: 寫入互斥(單 writer)
 21 |     private let queue = DispatchQueue(label: "com.wwcache.async", attributes: .concurrent)
    |                         `- error: cannot find 'DispatchQueue' in scope
 22 |
 23 |     private var cache: [KeyType: ObjectType] = [:]      // 快取資料:Key -> Value
/host/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:21:80: error: cannot infer contextual base in reference to member 'concurrent'
 19 |     /// - sync: 讀取可並行(多 reader)
 20 |     /// - barrier: 寫入互斥(單 writer)
 21 |     private let queue = DispatchQueue(label: "com.wwcache.async", attributes: .concurrent)
    |                                                                                `- error: cannot infer contextual base in reference to member 'concurrent'
 22 |
 23 |     private var cache: [KeyType: ObjectType] = [:]      // 快取資料:Key -> Value
[6/7] Compiling WWCacheManager WWCacheManager.swift
/host/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:21:25: error: cannot find 'DispatchQueue' in scope
 19 |     /// - sync: 讀取可並行(多 reader)
 20 |     /// - barrier: 寫入互斥(單 writer)
 21 |     private let queue = DispatchQueue(label: "com.wwcache.async", attributes: .concurrent)
    |                         `- error: cannot find 'DispatchQueue' in scope
 22 |
 23 |     private var cache: [KeyType: ObjectType] = [:]      // 快取資料:Key -> Value
/host/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:21:80: error: cannot infer contextual base in reference to member 'concurrent'
 19 |     /// - sync: 讀取可並行(多 reader)
 20 |     /// - barrier: 寫入互斥(單 writer)
 21 |     private let queue = DispatchQueue(label: "com.wwcache.async", attributes: .concurrent)
    |                                                                                `- error: cannot infer contextual base in reference to member 'concurrent'
 22 |
 23 |     private var cache: [KeyType: ObjectType] = [:]      // 快取資料:Key -> Value
/host/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:79:29: error: cannot infer contextual base in reference to member 'barrier'
 77 |     func setValue(_ value: ObjectType, forKey key: KeyType, cost: Int = 0) {
 78 |
 79 |         queue.async(flags: .barrier) { [self] in
    |                             `- error: cannot infer contextual base in reference to member 'barrier'
 80 |             cache[key] = value
 81 |             costs[key] = cost
/host/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:89:29: error: cannot infer contextual base in reference to member 'barrier'
 87 |     func removeValue(forKey key: KeyType) {
 88 |
 89 |         queue.async(flags: .barrier) { [self] in
    |                             `- error: cannot infer contextual base in reference to member 'barrier'
 90 |             cache.removeValue(forKey: key)
 91 |             costs.removeValue(forKey: key)
/host/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:98:29: error: cannot infer contextual base in reference to member 'barrier'
 96 |     func removeAll() {
 97 |
 98 |         queue.async(flags: .barrier) { [self] in
    |                             `- error: cannot infer contextual base in reference to member 'barrier'
 99 |             cache.removeAll()
100 |             costs.removeAll()
/host/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:108:29: error: cannot infer contextual base in reference to member 'barrier'
106 |     func setCountLimit(_ limit: Int) {
107 |
108 |         queue.async(flags: .barrier) { [self] in
    |                             `- error: cannot infer contextual base in reference to member 'barrier'
109 |             _countLimit = limit
110 |         }
/host/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:117:29: error: cannot infer contextual base in reference to member 'barrier'
115 |     func setTotalCostLimit(_ limit: Int) {
116 |
117 |         queue.async(flags: .barrier) { [self] in
    |                             `- error: cannot infer contextual base in reference to member 'barrier'
118 |             _totalCostLimit = limit
119 |         }
[7/7] Compiling WWCacheManager WWCacheValue.swift
/host/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:21:25: error: cannot find 'DispatchQueue' in scope
 19 |     /// - sync: 讀取可並行(多 reader)
 20 |     /// - barrier: 寫入互斥(單 writer)
 21 |     private let queue = DispatchQueue(label: "com.wwcache.async", attributes: .concurrent)
    |                         `- error: cannot find 'DispatchQueue' in scope
 22 |
 23 |     private var cache: [KeyType: ObjectType] = [:]      // 快取資料:Key -> Value
/host/spi-builder-workspace/Sources/WWCacheManager/WWCacheManager.swift:21:80: error: cannot infer contextual base in reference to member 'concurrent'
 19 |     /// - sync: 讀取可並行(多 reader)
 20 |     /// - barrier: 寫入互斥(單 writer)
 21 |     private let queue = DispatchQueue(label: "com.wwcache.async", attributes: .concurrent)
    |                                                                                `- error: cannot infer contextual base in reference to member 'concurrent'
 22 |
 23 |     private var cache: [KeyType: ObjectType] = [:]      // 快取資料:Key -> Value
BUILD FAILURE 6.2 wasm