The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CodableValue, reference main (e627e8), with Swift 6.2 for Linux on 21 Jun 2025 08:28:09 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" 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.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Denis5161/CodableValue.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/Denis5161/CodableValue
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e627e89 Add .spi.yml file
Cloned https://github.com/Denis5161/CodableValue.git
Revision (git rev-parse @):
e627e896db96924bc9fc22b8ee1d2bb939c7a39a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Denis5161/CodableValue.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/Denis5161/CodableValue.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" 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:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling CodableValue CodableValue.swift
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:59:38: error: cannot find type 'NSObject' in scope
57 |     ///     The decoded object as type `T`.
58 |     /// - Throws: DecodingValueError when decoding fails.
59 |     private static func decode<Base: NSObject>(_ base: Base.Type, from decoder: Decoder) throws -> T where Base: NSSecureCoding {
   |                                      `- error: cannot find type 'NSObject' in scope
60 |         let container = try decoder.singleValueContainer()
61 |         let data = try container.decode(Data.self)
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:59:114: error: cannot find type 'NSSecureCoding' in scope
57 |     ///     The decoded object as type `T`.
58 |     /// - Throws: DecodingValueError when decoding fails.
59 |     private static func decode<Base: NSObject>(_ base: Base.Type, from decoder: Decoder) throws -> T where Base: NSSecureCoding {
   |                                                                                                                  `- error: cannot find type 'NSSecureCoding' in scope
60 |         let container = try decoder.singleValueContainer()
61 |         let data = try container.decode(Data.self)
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:48:24: error: cannot find 'NSKeyedArchiver' in scope
46 |     public func encode(to encoder: Encoder) throws {
47 |         var container = encoder.singleValueContainer()
48 |         let data = try NSKeyedArchiver.archivedData(withRootObject: wrappedValue, requiringSecureCoding: true)
   |                        `- error: cannot find 'NSKeyedArchiver' in scope
49 |         try container.encode(data)
50 |     }
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:61:41: error: cannot find 'Data' in scope
59 |     private static func decode<Base: NSObject>(_ base: Base.Type, from decoder: Decoder) throws -> T where Base: NSSecureCoding {
60 |         let container = try decoder.singleValueContainer()
61 |         let data = try container.decode(Data.self)
   |                                         `- error: cannot find 'Data' in scope
62 |         if let decoded = try? NSKeyedUnarchiver.unarchivedObject(ofClass: base, from: data) as? T {
63 |             return decoded
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:62:31: error: cannot find 'NSKeyedUnarchiver' in scope
60 |         let container = try decoder.singleValueContainer()
61 |         let data = try container.decode(Data.self)
62 |         if let decoded = try? NSKeyedUnarchiver.unarchivedObject(ofClass: base, from: data) as? T {
   |                               `- error: cannot find 'NSKeyedUnarchiver' in scope
63 |             return decoded
64 |         } else {
[4/11] Compiling CodableValue UIImage+Ext.swift
[5/11] Compiling CodableValue NSColor+Ext.swift
[6/11] Compiling CodableValue NSImage+Ext.swift
[7/11] Compiling CodableValue UIColor+Ext.swift
[8/11] Compiling CodableValue Optional+Ext.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/11] Emitting module CodableValue
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:59:38: error: cannot find type 'NSObject' in scope
57 |     ///     The decoded object as type `T`.
58 |     /// - Throws: DecodingValueError when decoding fails.
59 |     private static func decode<Base: NSObject>(_ base: Base.Type, from decoder: Decoder) throws -> T where Base: NSSecureCoding {
   |                                      `- error: cannot find type 'NSObject' in scope
60 |         let container = try decoder.singleValueContainer()
61 |         let data = try container.decode(Data.self)
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:59:114: error: cannot find type 'NSSecureCoding' in scope
57 |     ///     The decoded object as type `T`.
58 |     /// - Throws: DecodingValueError when decoding fails.
59 |     private static func decode<Base: NSObject>(_ base: Base.Type, from decoder: Decoder) throws -> T where Base: NSSecureCoding {
   |                                                                                                                  `- error: cannot find type 'NSSecureCoding' in scope
60 |         let container = try decoder.singleValueContainer()
61 |         let data = try container.decode(Data.self)
[10/11] Compiling CodableValue CodableValueSupported.swift
[11/11] Compiling CodableValue DecodingValueError.swift
BUILD FAILURE 6.2 linux