Build Information
Failed to build CodableValue, reference main (e627e8), with Swift 6.2 for Android on 21 Jun 2025 08:28:00 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build 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: android
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-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/10] Compiling CodableValue UIColor+Ext.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/11] Compiling CodableValue NSColor+Ext.swift
[5/11] Compiling CodableValue NSImage+Ext.swift
[6/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)
[7/11] 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 {
[8/11] Compiling CodableValue UIImage+Ext.swift
[9/11] Compiling CodableValue DecodingValueError.swift
[10/11] Compiling CodableValue Optional+Ext.swift
[11/11] Compiling CodableValue CodableValueSupported.swift
BUILD FAILURE 6.2 android