Build Information
Successful build of BetterCodable, reference 0.4.0 (611531
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 18:47:13 UTC.
Swift 6 data race errors: 2
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marksands/BetterCodable.git
Reference: 0.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/marksands/BetterCodable
* tag 0.4.0 -> FETCH_HEAD
HEAD is now at 6115317 Adds ISO8601WithFractionalSecondsStrategy
Cloned https://github.com/marksands/BetterCodable.git
Revision (git rev-parse @):
61153170668db7a46a20a87e35e70f80b24d4eb5
SUCCESS checkout https://github.com/marksands/BetterCodable.git at 0.4.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "bettercodable",
"name": "BetterCodable",
"url": "https://github.com/marksands/BetterCodable.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BetterCodable",
"dependencies": [
]
}
]
}
Fetching https://github.com/marksands/BetterCodable.git
[1/592] Fetching bettercodable
Fetched https://github.com/marksands/BetterCodable.git from cache (0.88s)
Creating working copy for https://github.com/marksands/BetterCodable.git
Working copy of https://github.com/marksands/BetterCodable.git resolved at 0.4.0 (6115317)
warning: '.resolve-product-dependencies': dependency 'bettercodable' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/marksands/BetterCodable.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/19] Compiling BetterCodable LossyOptional.swift
[4/19] Compiling BetterCodable RFC2822Strategy.swift
[5/19] Compiling BetterCodable DefaultEmptyArray.swift
[6/19] Compiling BetterCodable DefaultEmptyDictionary.swift
[7/20] Compiling BetterCodable RFC3339Strategy.swift
[8/20] Emitting module BetterCodable
/Users/admin/builder/spi-builder-workspace/Sources/BetterCodable/ISO8601WithFractionalSecondsStrategy.swift:13:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
11 | @available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, *)
12 | public struct ISO8601WithFractionalSecondsStrategy: DateValueCodableStrategy {
13 | private static let formatter: ISO8601DateFormatter = {
| |- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'formatter' 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
14 | let formatter = ISO8601DateFormatter()
15 | formatter.formatOptions = [.withInternetDateTime, .withFractionalSeconds]
Foundation.ISO8601DateFormatter:2:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.12, *)
2 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
3 | open var timeZone: TimeZone! { get set }
4 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/Users/admin/builder/spi-builder-workspace/Sources/BetterCodable/LossyDictionary.swift:32:40: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
5 | /// This is useful if the Dictionary is intended to contain non-optional values.
6 | @propertyWrapper
7 | public struct LossyDictionary<Key: Hashable, Value> {
| `- note: 'Value' previously declared here
8 | public var wrappedValue: [Key: Value]
9 |
:
30 |
31 | private struct AnyDecodableValue: Decodable {}
32 | private struct LossyDecodableValue<Value: Decodable>: Decodable {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
33 | let value: Value
34 |
[9/20] Compiling BetterCodable DateValue.swift
[10/20] Compiling BetterCodable DefaultCodable.swift
[11/20] Compiling BetterCodable TimestampStrategy.swift
[12/20] Compiling BetterCodable ISO8601Strategy.swift
/Users/admin/builder/spi-builder-workspace/Sources/BetterCodable/ISO8601WithFractionalSecondsStrategy.swift:13:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
11 | @available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, *)
12 | public struct ISO8601WithFractionalSecondsStrategy: DateValueCodableStrategy {
13 | private static let formatter: ISO8601DateFormatter = {
| |- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'formatter' 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
14 | let formatter = ISO8601DateFormatter()
15 | formatter.formatOptions = [.withInternetDateTime, .withFractionalSeconds]
Foundation.ISO8601DateFormatter:2:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.12, *)
2 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
3 | open var timeZone: TimeZone! { get set }
4 | open var formatOptions: ISO8601DateFormatter.Options { get set }
[13/20] Compiling BetterCodable ISO8601WithFractionalSecondsStrategy.swift
/Users/admin/builder/spi-builder-workspace/Sources/BetterCodable/ISO8601WithFractionalSecondsStrategy.swift:13:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
11 | @available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, *)
12 | public struct ISO8601WithFractionalSecondsStrategy: DateValueCodableStrategy {
13 | private static let formatter: ISO8601DateFormatter = {
| |- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'formatter' 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
14 | let formatter = ISO8601DateFormatter()
15 | formatter.formatOptions = [.withInternetDateTime, .withFractionalSeconds]
Foundation.ISO8601DateFormatter:2:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.12, *)
2 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
3 | open var timeZone: TimeZone! { get set }
4 | open var formatOptions: ISO8601DateFormatter.Options { get set }
[14/20] Compiling BetterCodable LossyArray.swift
/Users/admin/builder/spi-builder-workspace/Sources/BetterCodable/LossyDictionary.swift:32:40: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
5 | /// This is useful if the Dictionary is intended to contain non-optional values.
6 | @propertyWrapper
7 | public struct LossyDictionary<Key: Hashable, Value> {
| `- note: 'Value' previously declared here
8 | public var wrappedValue: [Key: Value]
9 |
:
30 |
31 | private struct AnyDecodableValue: Decodable {}
32 | private struct LossyDecodableValue<Value: Decodable>: Decodable {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
33 | let value: Value
34 |
[15/20] Compiling BetterCodable LossyDictionary.swift
/Users/admin/builder/spi-builder-workspace/Sources/BetterCodable/LossyDictionary.swift:32:40: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
5 | /// This is useful if the Dictionary is intended to contain non-optional values.
6 | @propertyWrapper
7 | public struct LossyDictionary<Key: Hashable, Value> {
| `- note: 'Value' previously declared here
8 | public var wrappedValue: [Key: Value]
9 |
:
30 |
31 | private struct AnyDecodableValue: Decodable {}
32 | private struct LossyDecodableValue<Value: Decodable>: Decodable {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
33 | let value: Value
34 |
[16/20] Compiling BetterCodable DefaultFalse.swift
[17/20] Compiling BetterCodable DefaultTrue.swift
[18/20] Compiling BetterCodable LosslessArray.swift
[19/20] Compiling BetterCodable LosslessValue.swift
[20/20] Compiling BetterCodable YearMonthDayStrategy.swift
Build complete! (11.10s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "BetterCodable",
"name" : "BetterCodable",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "3.0"
}
],
"products" : [
{
"name" : "BetterCodable",
"targets" : [
"BetterCodable"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "BetterCodableTests",
"module_type" : "SwiftTarget",
"name" : "BetterCodableTests",
"path" : "Tests/BetterCodableTests",
"sources" : [
"DateValueTests.swift",
"DefaulEmptyDictionaryTests.swift",
"DefaultEmptyArrayTests.swift",
"DefaultFalseTests.swift",
"DefaultTrueTests.swift",
"LosslessArrayTests.swift",
"LosslessCustomValueTests.swift",
"LosslessValueTests.swift",
"LossyArrayTests.swift",
"LossyDictionaryTests.swift",
"LossyOptionalTests.swift",
"RawRepresentableTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"BetterCodable"
],
"type" : "test"
},
{
"c99name" : "BetterCodable",
"module_type" : "SwiftTarget",
"name" : "BetterCodable",
"path" : "Sources/BetterCodable",
"product_memberships" : [
"BetterCodable"
],
"sources" : [
"DateValue.swift",
"DefaultCodable.swift",
"DefaultEmptyArray.swift",
"DefaultEmptyDictionary.swift",
"DefaultFalse.swift",
"DefaultTrue.swift",
"ISO8601Strategy.swift",
"ISO8601WithFractionalSecondsStrategy.swift",
"LosslessArray.swift",
"LosslessValue.swift",
"LossyArray.swift",
"LossyDictionary.swift",
"LossyOptional.swift",
"RFC2822Strategy.swift",
"RFC3339Strategy.swift",
"TimestampStrategy.swift",
"YearMonthDayStrategy.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.