The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build CodableValue, reference 6.0.2 (e627e8), with Swift 6.0 for Linux on 13 Oct 2024 04:47:32 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.55.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: $PWD/.spi.yml
SUCCESS checkout https://github.com/Denis5161/CodableValue.git at 6.0.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Denis5161/CodableValue.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:b1f5b321a5d74ef5eaf6f5f3afbfebaaa54c7954de6f859009c18a90e0e1c3b4
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.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] 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)
[6/11] Compiling CodableValue UIImage+Ext.swift
[7/11] Compiling CodableValue Optional+Ext.swift
[8/11] Compiling CodableValue CodableValueSupported.swift
[9/11] Compiling CodableValue NSImage+Ext.swift
[10/11] Compiling CodableValue DecodingValueError.swift
[11/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 {
BUILD FAILURE 6.0 linux