The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ScopedDefaults, reference 0.1.0 (a243ec), with Swift 6.4 for Linux on 16 Sep 2026 00:45:20 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-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:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/regexident/ScopedDefaults.git
Reference: 0.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/regexident/ScopedDefaults
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at a243ecc Added ignored ‘.xcodeproj’ contents
Cloned https://github.com/regexident/ScopedDefaults.git
Revision (git rev-parse @):
a243ecc9292ac67dbdbbe223b75775f8cc439942
SUCCESS checkout https://github.com/regexident/ScopedDefaults.git at 0.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/regexident/ScopedDefaults.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal x86_64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefault.swift:47:27: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
17 | }
18 |
19 | public struct ScopedUserDefault<Scope, Value>: UserDefaultProtocol, AnyUserDefault
   |                                        `- note: 'Value' previously declared here
20 |     where
21 |     Scope: UserDefaultsScope,
   :
45 |
46 | extension ScopedUserDefault: Equatable {
47 |     public static func ==<Value>(
   |                           `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
48 |         lhs: ScopedUserDefault<Scope, Value>,
49 |         rhs: ScopedUserDefault<Scope, Value>
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefault.swift:74:27: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
53 | }
54 |
55 | public struct UserDefault<Value: Codable>: UserDefaultProtocol, AnyUserDefault {
   |                           `- note: 'Value' previously declared here
56 |     public let key: String
57 |     public let defaultValue: () -> Value
   :
72 |
73 | extension UserDefault: Equatable {
74 |     public static func ==<Value>(
   |                           `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
75 |         lhs: UserDefault<Value>,
76 |         rhs: UserDefault<Value>
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:16:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 14 |
 15 | public extension UserDefaults {
 16 |     public func get<T: UserDefaultProtocol>(for userDefault: T) -> T.Value {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 17 |         return self.get(for: userDefault, default: userDefault.defaultValue())
 18 |     }
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:20:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 18 |     }
 19 |
 20 |     public func get<T: UserDefaultProtocol>(
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 21 |         for userDefault: T,
 22 |         `default` defaultValue: @autoclosure () -> T.Value
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:45:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 43 |     }
 44 |
 45 |     public func set<T: UserDefaultProtocol>(_ value: T.Value, for userDefault: T) {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 46 |         typealias ValueType = T.Value
 47 |         typealias ContainerType = PropertyListContainer<T.Value>
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:65:5: warning: 'public' modifier is redundant for instance method declared in a public extension
 63 |     }
 64 |
 65 |     public func removeValue<T: UserDefaultProtocol>(for userDefault: T) {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
 66 |         self.removeObject(forKey: userDefault.keyPath)
 67 |     }
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:25:32: error: value of type 'UserDefaults' has no member 'value'
 23 |         ) -> T.Value {
 24 |         typealias ValueType = T.Value
 25 |         guard let plist = self.value(forKey: userDefault.keyPath) else {
    |                                `- error: value of type 'UserDefaults' has no member 'value'
 26 |             return defaultValue()
 27 |         }
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift:50:18: error: value of type 'UserDefaults' has no member 'setValue'
 48 |         do {
 49 |             let plist = try value.asPlist()
 50 |             self.setValue(plist, forKey: userDefault.keyPath)
    |                  `- error: value of type 'UserDefaults' has no member 'setValue'
 51 |         } catch let error {
 52 |             do {
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:14:5: warning: 'public' modifier is redundant for static property declared in a public extension
12 |
13 | public extension UserDefaultsScope {
14 |     public static var keyPath: String {
   |     `- warning: 'public' modifier is redundant for static property declared in a public extension
15 |         if let outer = Self.outer {
16 |             return "\(outer.keyPath).\(Self.key)"
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:35:5: warning: 'public' modifier is redundant for static method declared in a public extension
33 |
34 | public extension EnumerableUserDefaultsScope {
35 |     public static func factoryDefaults() -> [String : Any] {
   |     `- warning: 'public' modifier is redundant for static method declared in a public extension
36 |         var dictionary: [String : Any] = [:]
37 |
/host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift:54:5: warning: 'public' modifier is redundant for static method declared in a public extension
52 |     }
53 |
54 |     public static func register(on userDefaults: UserDefaults) {
   |     `- warning: 'public' modifier is redundant for static method declared in a public extension
55 |         let dictionary = self.factoryDefaults()
56 |         userDefaults.register(defaults: dictionary)
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/ScopedDefaults/UserDefault.swift /host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaults+Extensions.swift /host/spi-builder-workspace/Sources/ScopedDefaults/UserDefaultsScope.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -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 4 -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 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fno-omit-frame-pointer -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-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/ScopedDefaults.build/Debug-linux-x86_64/ScopedDefaults-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/ScopedDefaults.build/Debug-linux-x86_64/ScopedDefaults-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/ScopedDefaults.build/Debug-linux-x86_64/ScopedDefaults-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name ScopedDefaults -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/ScopedDefaults.build/Debug-linux-x86_64/ScopedDefaults-t.build/Objects-normal/x86_64/ScopedDefaults_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/ScopedDefaults.build/Debug-linux-x86_64/ScopedDefaults-t.build/Objects-normal/x86_64/Modules/ScopedDefaults.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/ScopedDefaults.build/Debug-linux-x86_64/ScopedDefaults-t.build/Objects-normal/x86_64/Modules/ScopedDefaults.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/ScopedDefaults.build/Debug-linux-x86_64/ScopedDefaults-t.build/Objects-normal/x86_64/ScopedDefaults-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/ScopedDefaults.build/Debug-linux-x86_64/ScopedDefaults-t.build/Objects-normal/x86_64/ScopedDefaults-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/ScopedDefaults.build/Debug-linux-x86_64/ScopedDefaults-t.build/Objects-normal/x86_64/ScopedDefaults-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/ScopedDefaults.build/Debug-linux-x86_64/ScopedDefaults-t.build/Objects-normal/x86_64/Modules/ScopedDefaults.swiftmodule
error: Build failed
BUILD FAILURE 6.4 linux