Build Information
Failed to build CodableValue with Swift 5.9 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-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.9
Building package at path: $workDir
https://github.com/Denis5161/CodableValue.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Building for debugging...
[1/8] Compiling CodableValue UIColor+Ext.swift
[2/9] Compiling CodableValue UIImage+Ext.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/9] 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 {
^~~~~~~~~~~~~~
[4/9] 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 {
^~~~~~~~~~~~~~~~~
[5/9] Compiling CodableValue NSColor+Ext.swift
[6/9] Compiling CodableValue DecodingValueError.swift
[7/9] Compiling CodableValue NSImage+Ext.swift
[8/9] Compiling CodableValue CodableValueSupported.swift
[9/9] Compiling CodableValue Optional+Ext.swift
error: fatalError
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] 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 {
^~~~~~~~~~~~~~
[2/2] 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.9 linux
Build Machine: Linux 1