The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DeviceGuru, reference master (0e551a), with Swift 6.2 for Linux on 20 Oct 2025 12:36:04 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/InderKumarRathore/DeviceGuru.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/InderKumarRathore/DeviceGuru
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 0e551a5 Bumping 10.0.11
Cloned https://github.com/InderKumarRathore/DeviceGuru.git
Revision (git rev-parse @):
0e551a59320f932888513458848021ccc8401881
SUCCESS checkout https://github.com/InderKumarRathore/DeviceGuru.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/InderKumarRathore/DeviceGuru.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b3eaa5734a03a9b8084848018342ef6c4e4ec1a618756d8de460b693a5f488ea
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/4] Write sources
[0/4] Copying PrivacyInfo.xcprivacy
[0/4] Copying DeviceList.plist
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/12] Emitting module DeviceGuru
/host/spi-builder-workspace/Sources/DeviceGuruImplementation.swift:241:1: error: type 'UserDefaults' does not conform to protocol 'LocalStorage'
239 | // Mark:- Private UserDefaults
240 |
241 | extension UserDefaults: LocalStorage {}
    | |- error: type 'UserDefaults' does not conform to protocol 'LocalStorage'
    | `- note: add stubs for conformance
242 |
243 | private enum Constants {
/host/spi-builder-workspace/Sources/DeviceGuru.swift:29:10: note: protocol requires function 'setValue(_:forKey:)' with type '(Any?, String) -> ()'
27 |
28 | public protocol LocalStorage {
29 |     func setValue(_ value: Any?, forKey key: String)
   |          `- note: protocol requires function 'setValue(_:forKey:)' with type '(Any?, String) -> ()'
30 |     func object(forKey defaultName: String) -> Any?
31 | }
[6/13] Compiling DeviceGuru Hardware.swift
[7/13] Compiling DeviceGuru DeviceVersion.swift
[8/13] Compiling DeviceGuru HardwareDetailProvider.swift
/host/spi-builder-workspace/Sources/HardwareDetailProvider.swift:14:30: error: cannot find 'CTL_HW' in scope
12 |
13 |     public var hardwareString: String {
14 |         var name: [Int32] = [CTL_HW, HW_MACHINE]
   |                              `- error: cannot find 'CTL_HW' in scope
15 |         var size: Int = 2
16 |         sysctl(&name, 2, nil, &size, nil, 0)
/host/spi-builder-workspace/Sources/HardwareDetailProvider.swift:14:38: error: cannot find 'HW_MACHINE' in scope
12 |
13 |     public var hardwareString: String {
14 |         var name: [Int32] = [CTL_HW, HW_MACHINE]
   |                                      `- error: cannot find 'HW_MACHINE' in scope
15 |         var size: Int = 2
16 |         sysctl(&name, 2, nil, &size, nil, 0)
/host/spi-builder-workspace/Sources/HardwareDetailProvider.swift:16:9: error: cannot find 'sysctl' in scope
14 |         var name: [Int32] = [CTL_HW, HW_MACHINE]
15 |         var size: Int = 2
16 |         sysctl(&name, 2, nil, &size, nil, 0)
   |         `- error: cannot find 'sysctl' in scope
17 |         var hw_machine = [CChar](repeating: 0, count: Int(size))
18 |         sysctl(&name, 2, &hw_machine, &size, nil, 0)
/host/spi-builder-workspace/Sources/HardwareDetailProvider.swift:16:26: error: 'nil' requires a contextual type
14 |         var name: [Int32] = [CTL_HW, HW_MACHINE]
15 |         var size: Int = 2
16 |         sysctl(&name, 2, nil, &size, nil, 0)
   |                          `- error: 'nil' requires a contextual type
17 |         var hw_machine = [CChar](repeating: 0, count: Int(size))
18 |         sysctl(&name, 2, &hw_machine, &size, nil, 0)
/host/spi-builder-workspace/Sources/HardwareDetailProvider.swift:16:38: error: 'nil' requires a contextual type
14 |         var name: [Int32] = [CTL_HW, HW_MACHINE]
15 |         var size: Int = 2
16 |         sysctl(&name, 2, nil, &size, nil, 0)
   |                                      `- error: 'nil' requires a contextual type
17 |         var hw_machine = [CChar](repeating: 0, count: Int(size))
18 |         sysctl(&name, 2, &hw_machine, &size, nil, 0)
/host/spi-builder-workspace/Sources/HardwareDetailProvider.swift:18:9: error: cannot find 'sysctl' in scope
16 |         sysctl(&name, 2, nil, &size, nil, 0)
17 |         var hw_machine = [CChar](repeating: 0, count: Int(size))
18 |         sysctl(&name, 2, &hw_machine, &size, nil, 0)
   |         `- error: cannot find 'sysctl' in scope
19 |
20 |         var hardware: String = String(cString: hw_machine)
/host/spi-builder-workspace/Sources/HardwareDetailProvider.swift:18:46: error: 'nil' requires a contextual type
16 |         sysctl(&name, 2, nil, &size, nil, 0)
17 |         var hw_machine = [CChar](repeating: 0, count: Int(size))
18 |         sysctl(&name, 2, &hw_machine, &size, nil, 0)
   |                                              `- error: 'nil' requires a contextual type
19 |
20 |         var hardware: String = String(cString: hw_machine)
[9/13] Compiling DeviceGuru DeviceGuru.swift
[10/13] Compiling DeviceGuru DeviceGuruImplementation+Extension.swift
[11/13] Compiling DeviceGuru DeviceGuruImplementation.swift
/host/spi-builder-workspace/Sources/DeviceGuruImplementation.swift:241:1: error: type 'UserDefaults' does not conform to protocol 'LocalStorage'
239 | // Mark:- Private UserDefaults
240 |
241 | extension UserDefaults: LocalStorage {}
    | |- error: type 'UserDefaults' does not conform to protocol 'LocalStorage'
    | `- note: add stubs for conformance
242 |
243 | private enum Constants {
/host/spi-builder-workspace/Sources/DeviceGuru.swift:29:10: note: protocol requires function 'setValue(_:forKey:)' with type '(Any?, String) -> ()'
27 |
28 | public protocol LocalStorage {
29 |     func setValue(_ value: Any?, forKey key: String)
   |          `- note: protocol requires function 'setValue(_:forKey:)' with type '(Any?, String) -> ()'
30 |     func object(forKey defaultName: String) -> Any?
31 | }
/host/spi-builder-workspace/Sources/DeviceGuruImplementation.swift:180:32: warning: 'init(contentsOfFile:)' is deprecated [#DeprecatedDeclaration]
178 |
179 |     func loadDeviceDictionary(fromPath path: String) -> [String: AnyObject] {
180 |         guard let dictionary = NSDictionary(contentsOfFile: path) as? [String: AnyObject] else {
    |                                `- warning: 'init(contentsOfFile:)' is deprecated [#DeprecatedDeclaration]
181 |             assertionFailure("Plist is malformed")
182 |             return [:]
/host/spi-builder-workspace/Sources/DeviceGuruImplementation.swift:197:32: warning: 'init(contentsOfFile:)' is deprecated [#DeprecatedDeclaration]
195 |
196 |         guard let path = bundle.path(forResource: Constants.plistFileName, ofType: Constants.plistFileType),
197 |               let dictionary = NSDictionary(contentsOfFile: path) as? [String: AnyObject] else {
    |                                `- warning: 'init(contentsOfFile:)' is deprecated [#DeprecatedDeclaration]
198 |                   assertionFailure("DeviceList.plist not found in the bundle.")
199 |                   return nil
/host/spi-builder-workspace/Sources/DeviceGuruImplementation.swift:208:32: warning: 'init(contentsOfFile:)' is deprecated [#DeprecatedDeclaration]
206 |
207 |         guard let path = bundle.path(forResource: Constants.plistFileName, ofType: Constants.plistFileType),
208 |               let dictionary = NSDictionary(contentsOfFile: path) as? [String: AnyObject] else {
    |                                `- warning: 'init(contentsOfFile:)' is deprecated [#DeprecatedDeclaration]
209 |            return nil
210 |         }
/host/spi-builder-workspace/Sources/DeviceGuruImplementation.swift:217:32: warning: 'init(contentsOfFile:)' is deprecated [#DeprecatedDeclaration]
215 |     func loadDeviceDictionaryFromMainBundle() -> [String: AnyObject]? {
216 |         guard let path = Bundle.main.path(forResource: Constants.plistFileName, ofType: Constants.plistFileType),
217 |               let dictionary = NSDictionary(contentsOfFile: path) as? [String: AnyObject] else {
    |                                `- warning: 'init(contentsOfFile:)' is deprecated [#DeprecatedDeclaration]
218 |            return nil
219 |        }
/host/spi-builder-workspace/Sources/DeviceGuruImplementation.swift:229:32: warning: 'init(contentsOfFile:)' is deprecated [#DeprecatedDeclaration]
227 |         let type = "plist"
228 |         guard let path = Bundle.module.path(forResource: resource, ofType: type),
229 |               let dictionary = NSDictionary(contentsOfFile: path) as? [String: AnyObject] else {
    |                                `- warning: 'init(contentsOfFile:)' is deprecated [#DeprecatedDeclaration]
230 |                   return nil
231 |               }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[12/13] Compiling DeviceGuru Platform.swift
[13/13] Compiling DeviceGuru resource_bundle_accessor.swift
BUILD FAILURE 6.2 linux