The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CodableValue with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.34.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Denis5161/CodableValue.git
Reference: 6.0.2
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
 * tag               6.0.2      -> FETCH_HEAD
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: $workDir/.spi.yml
SUCCESS checkout https://github.com/Denis5161/CodableValue.git at 6.0.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/Denis5161/CodableValue.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling CodableValue UIColor+Ext.swift
[4/11] Compiling CodableValue UIImage+Ext.swift
[5/11] Compiling CodableValue Optional+Ext.swift
[6/11] Compiling CodableValue DecodingValueError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/11] Compiling CodableValue NSImage+Ext.swift
[8/11] Compiling CodableValue NSColor+Ext.swift
[9/11] Compiling CodableValue CodableValueSupported.swift
[10/11] Emitting module CodableValue
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:59:38: error: cannot find type 'NSObject' in scope
    private static func decode<Base: NSObject>(_ base: Base.Type, from decoder: Decoder) throws -> T where Base: NSSecureCoding {
                                     ^~~~~~~~
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:59:114: error: cannot find type 'NSSecureCoding' in scope
    private static func decode<Base: NSObject>(_ base: Base.Type, from decoder: Decoder) throws -> T where Base: NSSecureCoding {
                                                                                                                 ^~~~~~~~~~~~~~
[11/11] Compiling CodableValue CodableValue.swift
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:59:38: error: cannot find type 'NSObject' in scope
    private static func decode<Base: NSObject>(_ base: Base.Type, from decoder: Decoder) throws -> T where Base: NSSecureCoding {
                                     ^~~~~~~~
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:59:114: error: cannot find type 'NSSecureCoding' in scope
    private static func decode<Base: NSObject>(_ base: Base.Type, from decoder: Decoder) throws -> T where Base: NSSecureCoding {
                                                                                                                 ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:48:24: error: cannot find 'NSKeyedArchiver' in scope
        let data = try NSKeyedArchiver.archivedData(withRootObject: wrappedValue, requiringSecureCoding: true)
                       ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:61:41: error: cannot find 'Data' in scope
        let data = try container.decode(Data.self)
                                        ^~~~
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:62:31: error: cannot find 'NSKeyedUnarchiver' in scope
        if let decoded = try? NSKeyedUnarchiver.unarchivedObject(ofClass: base, from: data) as? T {
                              ^~~~~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module CodableValue
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:59:38: error: cannot find type 'NSObject' in scope
    private static func decode<Base: NSObject>(_ base: Base.Type, from decoder: Decoder) throws -> T where Base: NSSecureCoding {
                                     ^~~~~~~~
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:59:114: error: cannot find type 'NSSecureCoding' in scope
    private static func decode<Base: NSObject>(_ base: Base.Type, from decoder: Decoder) throws -> T where Base: NSSecureCoding {
                                                                                                                 ^~~~~~~~~~~~~~
[3/3] Compiling CodableValue CodableValue.swift
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:59:38: error: cannot find type 'NSObject' in scope
    private static func decode<Base: NSObject>(_ base: Base.Type, from decoder: Decoder) throws -> T where Base: NSSecureCoding {
                                     ^~~~~~~~
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:59:114: error: cannot find type 'NSSecureCoding' in scope
    private static func decode<Base: NSObject>(_ base: Base.Type, from decoder: Decoder) throws -> T where Base: NSSecureCoding {
                                                                                                                 ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:48:24: error: cannot find 'NSKeyedArchiver' in scope
        let data = try NSKeyedArchiver.archivedData(withRootObject: wrappedValue, requiringSecureCoding: true)
                       ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:61:41: error: cannot find 'Data' in scope
        let data = try container.decode(Data.self)
                                        ^~~~
/host/spi-builder-workspace/Sources/CodableValue/Shared/CodableValue.swift:62:31: error: cannot find 'NSKeyedUnarchiver' in scope
        if let decoded = try? NSKeyedUnarchiver.unarchivedObject(ofClass: base, from: data) as? T {
                              ^~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2