The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SmartCodable, reference main (bc1522), with Swift 6.4 for Wasm on 29 Sep 2026 11:19:58 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-1":/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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/iAmMccc/SmartCodable.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/iAmMccc/SmartCodable
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at bc1522f Merge pull request #139 from iAmMccc/7.0.1
Cloned https://github.com/iAmMccc/SmartCodable.git
Revision (git rev-parse @):
bc1522f6b635128ea992331867fe65f231492dc0
SUCCESS checkout https://github.com/iAmMccc/SmartCodable.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/iAmMccc/SmartCodable.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-1":/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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Pre-planning 1 / 66]
[Planning deferred tasks]
[18 / 26] SmartCodable
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:36:30: error: cannot find type 'ColorObject' in scope
 34 | public struct SmartHexColor: PropertyWrapperable {
 35 |
 36 |     public var wrappedValue: ColorObject?
    |                              `- error: cannot find type 'ColorObject' in scope
 37 |     public init(wrappedValue: ColorObject?) {
 38 |         self.wrappedValue = wrappedValue
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:37:31: error: cannot find type 'ColorObject' in scope
 35 |
 36 |     public var wrappedValue: ColorObject?
 37 |     public init(wrappedValue: ColorObject?) {
    |                               `- error: cannot find type 'ColorObject' in scope
 38 |         self.wrappedValue = wrappedValue
 39 |     }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:55:31: error: cannot find type 'ColorObject' in scope
 53 |     var encodeHexFormat: HexFormat?
 54 |
 55 |     public init(wrappedValue: ColorObject?, encodeHexFormat: HexFormat? = nil) {
    |                               `- error: cannot find type 'ColorObject' in scope
 56 |         self.wrappedValue = wrappedValue
 57 |         self.encodeHexFormat = encodeHexFormat
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:34:15: error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
 32 |
 33 | @propertyWrapper
 34 | public struct SmartHexColor: PropertyWrapperable {
    |               |- error: type 'SmartHexColor' does not conform to protocol 'PropertyWrapperable'
    |               `- note: add stubs for conformance
 35 |
 36 |     public var wrappedValue: ColorObject?
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift:18:20: note: protocol requires nested type 'WrappedValue'
 16 |  */
 17 | public protocol PropertyWrapperable {
 18 |     associatedtype WrappedValue
    |                    `- note: protocol requires nested type 'WrappedValue'
 19 |
 20 |     var wrappedValue: WrappedValue { get }
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:125:86: error: cannot find type 'ColorObject' in scope
123 | extension SmartHexColor {
124 |
125 |     public static func toColor(from hex: String, format: SmartHexColor.HexFormat) -> ColorObject? {
    |                                                                                      `- error: cannot find type 'ColorObject' in scope
126 |         // 1. 移除前缀
127 |         let hexString = normalizedHexString(from: hex, prefix: format.prefix)
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:184:41: error: cannot find type 'ColorObject' in scope
182 |
183 |
184 |     static func toHexString(from color: ColorObject, format: SmartHexColor.HexFormat) -> String? {
    |                                         `- error: cannot find type 'ColorObject' in scope
185 |         guard let components = color.rgbaComponents else { return nil }
186 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift:313:11: error: cannot find type 'ColorObject' in scope
311 |
312 |
313 | extension ColorObject {
    |           `- error: cannot find type 'ColorObject' in scope
314 |     var rgbaComponents: (r: CGFloat, g: CGFloat, b: CGFloat, a: CGFloat)? {
315 | #if os(macOS)
/host/spi-builder-workspace/Sources/SmartCodable/Core/Sentinel/SmartSentinel.swift:62:39: error: cannot find 'DispatchQueue' in scope
 60 |
 61 |     /// 用于同步访问 logsHandler 的队列
 62 |     private static let handlerQueue = DispatchQueue(label: "com.smartcodable.handler", qos: .utility)
    |                                       `- error: cannot find 'DispatchQueue' in scope
 63 |
 64 | }
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:14:31: error: cannot find type 'ColorObject' in scope
12 | public struct SmartHexColorTransformer: ValueTransformable {
13 |
14 |     public typealias Object = ColorObject
   |                               `- error: cannot find type 'ColorObject' in scope
15 |     public typealias JSON = String
16 |
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:21:52: error: cannot find type 'ColorObject' in scope
19 |         self.colorFormat = colorFormat
20 |     }
21 |     public func transformFromJSON(_ value: Any) -> ColorObject? {
   |                                                    `- error: cannot find type 'ColorObject' in scope
22 |         if let colorStr = value as? String {
23 |             return SmartHexColor.toColor(from: colorStr, format: colorFormat)
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:28:42: error: cannot find type 'ColorObject' in scope
26 |     }
27 |
28 |     public func transformToJSON(_ value: ColorObject) -> String? {
   |                                          `- error: cannot find type 'ColorObject' in scope
29 |         SmartHexColor.toHexString(from: value, format: colorFormat)
30 |     }
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift:12:15: error: type 'SmartHexColorTransformer' does not conform to protocol 'ValueTransformable'
10 |
11 |
12 | public struct SmartHexColorTransformer: ValueTransformable {
   |               |- error: type 'SmartHexColorTransformer' does not conform to protocol 'ValueTransformable'
   |               `- note: add stubs for conformance
13 |
14 |     public typealias Object = ColorObject
/host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/Transformer.swift:51:20: note: protocol requires nested type 'Object'
 49 |
 50 | public protocol ValueTransformable {
 51 |     associatedtype Object
    |                    `- note: protocol requires nested type 'Object'
 52 |     associatedtype JSON
 53 |
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/SmartCodable/Core/Cache/Cachable.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/DecodingError+Extension.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/DecodingSnapshot.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/Impl/JSONDecoderImpl+KeyedContainer.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/Impl/JSONDecoderImpl+SingleValueContainer.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/Impl/JSONDecoderImpl+UnkeyedContainer.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/Impl/JSONDecoderImpl+Unwrap.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/Impl/JSONDecoderImpl.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/KeysMapper.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/SmartJSONDecoder.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Decoder/SmartKeyDecodingStrategy.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Patcher/Patcher+Provider.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Patcher/Patcher+Transformer.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONDecoder/Patcher/Patcher.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONEncoder/Container/JSONKeyedEncodingContainer.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONEncoder/Container/JSONSingleValueEncodingContainer.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONEncoder/Container/JSONUnkeyedEncodingContainer.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONEncoder/EncodingCache.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONEncoder/Impl/JSONEncoderImpl.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONEncoder/Impl/_SpecialTreatmentEncoder.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONEncoder/JSONFuture.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONEncoder/SmartJSONEncoder.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONEncoder/SmartKeyEncodingStrategy.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONExtractor/JSONExtractor.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONValue/JSONValue+Extension.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/JSONValue/JSONValue.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/PropertyWrapperProtocol.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAny.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartAny/SmartAnyImpl.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartCompact/SmartCompact.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartCompact/SmartCompactArray.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartCompact/SmartCompactDictionary.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartDate.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartFlat.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartHexColor.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartIgnored.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/PropertyWrapper/SmartPublished.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/Sentinel/LogCache.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/Sentinel/LogContainer.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/Sentinel/LogItem.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/Sentinel/SafeDictionary.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/Sentinel/SmartSentinel.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/SmartCodable/SmartCodable.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/SmartCodable/SmartCodableOptions.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/SmartCodable/SmartDecodable.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/SmartCodable/SmartEncodable.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/SmartCodable/SmartUpdater.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/SmartType/SmartCaseDefaultable.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/DataTransformer.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/DateTransformer.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/HexColorTransformer.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/Transformer.swift /host/spi-builder-workspace/Sources/SmartCodable/Core/Transformer/URLTransformer.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SmartCodable.build/Debug-webassembly-wasm32/SmartCodable-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SmartCodable.build/Debug-webassembly-wasm32/SmartCodable-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SmartCodable.build/Debug-webassembly-wasm32/SmartCodable-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SmartCodable -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SmartCodable.build/Debug-webassembly-wasm32/SmartCodable-t.build/Objects-normal/wasm32/SmartCodable_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SmartCodable.build/Debug-webassembly-wasm32/SmartCodable-t.build/Objects-normal/wasm32/Modules/SmartCodable.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SmartCodable.build/Debug-webassembly-wasm32/SmartCodable-t.build/Objects-normal/wasm32/Modules/SmartCodable.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SmartCodable.build/Debug-webassembly-wasm32/SmartCodable-t.build/Objects-normal/wasm32/SmartCodable-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SmartCodable.build/Debug-webassembly-wasm32/SmartCodable-t.build/Objects-normal/wasm32/SmartCodable-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SmartCodable.build/Debug-webassembly-wasm32/SmartCodable-t.build/Objects-normal/wasm32/SmartCodable-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SmartCodable.build/Debug-webassembly-wasm32/SmartCodable-t.build/Objects-normal/wasm32/Modules/SmartCodable.swiftmodule
[27 / 35] SmartCodable
error: Build failed
BUILD FAILURE 6.4 wasm