This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 DictionaryCoding with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/elegantchaos/DictionaryCoding.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/elegantchaos/DictionaryCoding
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6c2dafa updated to MIT license
Cloned https://github.com/elegantchaos/DictionaryCoding.git
Revision (git rev-parse @):
6c2dafae704a75900c0f9ffcfa93f4e72dae366f
SUCCESS checkout https://github.com/elegantchaos/DictionaryCoding.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/elegantchaos/DictionaryCoding.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/7] Emitting module DictionaryCoding
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1356:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
1354 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
1355 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
1356 | internal var _iso8601Formatter: ISO8601DateFormatter = {
     |              |- warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
     |              |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
     |              |- note: annotate '_iso8601Formatter' with '@MainActor' if property should only be accessed from the main actor
     |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1357 |     let formatter = ISO8601DateFormatter()
1358 |     formatter.formatOptions = .withInternetDateTime
[4/7] Compiling DictionaryCoding DictionaryDecoder.swift
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1356:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
1354 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
1355 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
1356 | internal var _iso8601Formatter: ISO8601DateFormatter = {
     |              |- warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
     |              |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
     |              |- note: annotate '_iso8601Formatter' with '@MainActor' if property should only be accessed from the main actor
     |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1357 |     let formatter = ISO8601DateFormatter()
1358 |     formatter.formatOptions = .withInternetDateTime
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:955:27: error: cannot find 'kCFBooleanTrue' in scope
 953 |         if let number = value as? NSNumber {
 954 |
 955 |             if number === kCFBooleanTrue as NSNumber {
     |                           `- error: cannot find 'kCFBooleanTrue' in scope
 956 |                 return true
 957 |             } else if number === kCFBooleanFalse as NSNumber {
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:957:34: error: cannot find 'kCFBooleanFalse' in scope
 955 |             if number === kCFBooleanTrue as NSNumber {
 956 |                 return true
 957 |             } else if number === kCFBooleanFalse as NSNumber {
     |                                  `- error: cannot find 'kCFBooleanFalse' in scope
 958 |                 return false
 959 |             } else {
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:976:59: error: cannot find 'kCFBooleanTrue' in scope
 974 |         guard !(value is NSNull) else { return nil }
 975 |
 976 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                           `- error: cannot find 'kCFBooleanTrue' in scope
 977 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
 978 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:976:86: error: cannot find 'kCFBooleanFalse' in scope
 974 |         guard !(value is NSNull) else { return nil }
 975 |
 976 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                                                      `- error: cannot find 'kCFBooleanFalse' in scope
 977 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
 978 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:991:59: error: cannot find 'kCFBooleanTrue' in scope
 989 |         guard !(value is NSNull) else { return nil }
 990 |
 991 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                           `- error: cannot find 'kCFBooleanTrue' in scope
 992 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
 993 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:991:86: error: cannot find 'kCFBooleanFalse' in scope
 989 |         guard !(value is NSNull) else { return nil }
 990 |
 991 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                                                      `- error: cannot find 'kCFBooleanFalse' in scope
 992 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
 993 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1006:59: error: cannot find 'kCFBooleanTrue' in scope
1004 |         guard !(value is NSNull) else { return nil }
1005 |
1006 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                           `- error: cannot find 'kCFBooleanTrue' in scope
1007 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
1008 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1006:86: error: cannot find 'kCFBooleanFalse' in scope
1004 |         guard !(value is NSNull) else { return nil }
1005 |
1006 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                                                      `- error: cannot find 'kCFBooleanFalse' in scope
1007 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
1008 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1021:59: error: cannot find 'kCFBooleanTrue' in scope
1019 |         guard !(value is NSNull) else { return nil }
1020 |
1021 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                           `- error: cannot find 'kCFBooleanTrue' in scope
1022 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
1023 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1021:86: error: cannot find 'kCFBooleanFalse' in scope
1019 |         guard !(value is NSNull) else { return nil }
1020 |
1021 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                                                      `- error: cannot find 'kCFBooleanFalse' in scope
1022 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
1023 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1036:59: error: cannot find 'kCFBooleanTrue' in scope
1034 |         guard !(value is NSNull) else { return nil }
1035 |
1036 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                           `- error: cannot find 'kCFBooleanTrue' in scope
1037 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
1038 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1036:86: error: cannot find 'kCFBooleanFalse' in scope
1034 |         guard !(value is NSNull) else { return nil }
1035 |
1036 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                                                      `- error: cannot find 'kCFBooleanFalse' in scope
1037 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
1038 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1051:59: error: cannot find 'kCFBooleanTrue' in scope
1049 |         guard !(value is NSNull) else { return nil }
1050 |
1051 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                           `- error: cannot find 'kCFBooleanTrue' in scope
1052 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
1053 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1051:86: error: cannot find 'kCFBooleanFalse' in scope
1049 |         guard !(value is NSNull) else { return nil }
1050 |
1051 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                                                      `- error: cannot find 'kCFBooleanFalse' in scope
1052 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
1053 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1066:59: error: cannot find 'kCFBooleanTrue' in scope
1064 |         guard !(value is NSNull) else { return nil }
1065 |
1066 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                           `- error: cannot find 'kCFBooleanTrue' in scope
1067 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
1068 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1066:86: error: cannot find 'kCFBooleanFalse' in scope
1064 |         guard !(value is NSNull) else { return nil }
1065 |
1066 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                                                      `- error: cannot find 'kCFBooleanFalse' in scope
1067 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
1068 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1081:59: error: cannot find 'kCFBooleanTrue' in scope
1079 |         guard !(value is NSNull) else { return nil }
1080 |
1081 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                           `- error: cannot find 'kCFBooleanTrue' in scope
1082 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
1083 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1081:86: error: cannot find 'kCFBooleanFalse' in scope
1079 |         guard !(value is NSNull) else { return nil }
1080 |
1081 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                                                      `- error: cannot find 'kCFBooleanFalse' in scope
1082 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
1083 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1096:59: error: cannot find 'kCFBooleanTrue' in scope
1094 |         guard !(value is NSNull) else { return nil }
1095 |
1096 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                           `- error: cannot find 'kCFBooleanTrue' in scope
1097 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
1098 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1096:86: error: cannot find 'kCFBooleanFalse' in scope
1094 |         guard !(value is NSNull) else { return nil }
1095 |
1096 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                                                      `- error: cannot find 'kCFBooleanFalse' in scope
1097 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
1098 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1111:59: error: cannot find 'kCFBooleanTrue' in scope
1109 |         guard !(value is NSNull) else { return nil }
1110 |
1111 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                           `- error: cannot find 'kCFBooleanTrue' in scope
1112 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
1113 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1111:86: error: cannot find 'kCFBooleanFalse' in scope
1109 |         guard !(value is NSNull) else { return nil }
1110 |
1111 |         guard let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse else {
     |                                                                                      `- error: cannot find 'kCFBooleanFalse' in scope
1112 |             throw DecodingError._typeMismatch(at: self.codingPath, expectation: type, reality: value)
1113 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1126:56: error: cannot find 'kCFBooleanTrue' in scope
1124 |         guard !(value is NSNull) else { return nil }
1125 |
1126 |         if let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse {
     |                                                        `- error: cannot find 'kCFBooleanTrue' in scope
1127 |             // We are willing to return a Float by losing precision:
1128 |             // * If the original value was integral,
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1126:83: error: cannot find 'kCFBooleanFalse' in scope
1124 |         guard !(value is NSNull) else { return nil }
1125 |
1126 |         if let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse {
     |                                                                                   `- error: cannot find 'kCFBooleanFalse' in scope
1127 |             // We are willing to return a Float by losing precision:
1128 |             // * If the original value was integral,
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1170:56: error: cannot find 'kCFBooleanTrue' in scope
1168 |         guard !(value is NSNull) else { return nil }
1169 |
1170 |         if let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse {
     |                                                        `- error: cannot find 'kCFBooleanTrue' in scope
1171 |             // We are always willing to return the number as a Double:
1172 |             // * If the original value was integral, it is guaranteed to fit in a Double; we are willing to lose precision past 2^53 if you encoded a UInt64 but requested a Double
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1170:83: error: cannot find 'kCFBooleanFalse' in scope
1168 |         guard !(value is NSNull) else { return nil }
1169 |
1170 |         if let number = value as? NSNumber, number !== kCFBooleanTrue, number !== kCFBooleanFalse {
     |                                                                                   `- error: cannot find 'kCFBooleanFalse' in scope
1171 |             // We are always willing to return the number as a Double:
1172 |             // * If the original value was integral, it is guaranteed to fit in a Double; we are willing to lose precision past 2^53 if you encoded a UInt64 but requested a Double
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1230:22: error: cannot find 'CFGetTypeID' in scope
1228 |         }
1229 |
1230 |         let cfType = CFGetTypeID(value as CFTypeRef)  // NB this could be dangerous - we're assuming that it's ok to call CFGetTypeID with the value, which may not be true
     |                      `- error: cannot find 'CFGetTypeID' in scope
1231 |         if cfType == CFUUIDGetTypeID() {
1232 |             let cfValue = value as! CFUUID
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1230:43: error: cannot find type 'CFTypeRef' in scope
1228 |         }
1229 |
1230 |         let cfType = CFGetTypeID(value as CFTypeRef)  // NB this could be dangerous - we're assuming that it's ok to call CFGetTypeID with the value, which may not be true
     |                                           `- error: cannot find type 'CFTypeRef' in scope
1231 |         if cfType == CFUUIDGetTypeID() {
1232 |             let cfValue = value as! CFUUID
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1231:22: error: cannot find 'CFUUIDGetTypeID' in scope
1229 |
1230 |         let cfType = CFGetTypeID(value as CFTypeRef)  // NB this could be dangerous - we're assuming that it's ok to call CFGetTypeID with the value, which may not be true
1231 |         if cfType == CFUUIDGetTypeID() {
     |                      `- error: cannot find 'CFUUIDGetTypeID' in scope
1232 |             let cfValue = value as! CFUUID
1233 |             let string = CFUUIDCreateString(kCFAllocatorDefault, cfValue) as String
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1232:37: error: cannot find type 'CFUUID' in scope
1230 |         let cfType = CFGetTypeID(value as CFTypeRef)  // NB this could be dangerous - we're assuming that it's ok to call CFGetTypeID with the value, which may not be true
1231 |         if cfType == CFUUIDGetTypeID() {
1232 |             let cfValue = value as! CFUUID
     |                                     `- error: cannot find type 'CFUUID' in scope
1233 |             let string = CFUUIDCreateString(kCFAllocatorDefault, cfValue) as String
1234 |             return UUID(uuidString: string)
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1233:26: error: cannot find 'CFUUIDCreateString' in scope
1231 |         if cfType == CFUUIDGetTypeID() {
1232 |             let cfValue = value as! CFUUID
1233 |             let string = CFUUIDCreateString(kCFAllocatorDefault, cfValue) as String
     |                          `- error: cannot find 'CFUUIDCreateString' in scope
1234 |             return UUID(uuidString: string)
1235 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1233:45: error: cannot find 'kCFAllocatorDefault' in scope
1231 |         if cfType == CFUUIDGetTypeID() {
1232 |             let cfValue = value as! CFUUID
1233 |             let string = CFUUIDCreateString(kCFAllocatorDefault, cfValue) as String
     |                                             `- error: cannot find 'kCFAllocatorDefault' in scope
1234 |             return UUID(uuidString: string)
1235 |         }
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1328:48: error: cannot find 'CFUUID' in scope
1326 |         } else if type == Data.self || type == NSData.self {
1327 |             return try self.unbox(value, as: Data.self) as? T
1328 |         } else if type == UUID.self || type == CFUUID.self {
     |                                                `- error: cannot find 'CFUUID' in scope
1329 |             return try self.unbox(value, as: UUID.self) as? T
1330 |         } else if type == URL.self || type == NSURL.self {
[5/7] Compiling DictionaryCoding DictionaryCodingKey.swift
[6/7] Compiling DictionaryCoding DictionaryEncoder.swift
/host/spi-builder-workspace/Sources/DictionaryCoding/DictionaryDecoder.swift:1356:14: warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
1354 | // NOTE: This value is implicitly lazy and _must_ be lazy. We're compiled against the latest SDK (w/ ISO8601DateFormatter), but linked against whichever Foundation the user has. ISO8601DateFormatter might not exist, so we better not hit this code path on an older OS.
1355 | @available(OSX 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
1356 | internal var _iso8601Formatter: ISO8601DateFormatter = {
     |              |- warning: var '_iso8601Formatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
     |              |- note: convert '_iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
     |              |- note: annotate '_iso8601Formatter' with '@MainActor' if property should only be accessed from the main actor
     |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1357 |     let formatter = ISO8601DateFormatter()
1358 |     formatter.formatOptions = .withInternetDateTime
[7/7] Compiling DictionaryCoding DictionaryErrors.swift
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.