Build Information
Successful build of BetterCodable with Swift 6.0 for Linux.
Swift 6 data race errors: 5
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/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/marksands/BetterCodable.git
Reference: master
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/marksands/BetterCodable
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 2b4a27f Adds nested property wrapper example test
Cloned https://github.com/marksands/BetterCodable.git
Revision (git rev-parse @):
2b4a27f03c8fe80f195ac2b6ac1764213406ee89
SUCCESS checkout https://github.com/marksands/BetterCodable.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/marksands/BetterCodable.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/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/20] Emitting module BetterCodable
/host/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
14 | let formatter = ISO8601DateFormatter()
15 | formatter.formatOptions = [.withInternetDateTime, .withFractionalSeconds]
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/BetterCodable/ISO8601WithFractionalSecondsStrategy.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | /// Decodes `String` values as an ISO8601 `Date`.
:
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 = {
| |- 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]
/host/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 |
/host/spi-builder-workspace/Sources/BetterCodable/RFC2822Strategy.swift:12:24: warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// -00:00 from UTC (Pacific Standard Time).
11 | public struct RFC2822Strategy: DateValueCodableStrategy {
12 | private static let dateFormatter: DateFormatter = {
| `- warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
13 | let dateFormatter = DateFormatter()
14 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/BetterCodable/RFC2822Strategy.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | /// Decodes `String` values as an RFC 2822 `Date`.
:
10 | /// -00:00 from UTC (Pacific Standard Time).
11 | public struct RFC2822Strategy: DateValueCodableStrategy {
12 | private static let dateFormatter: DateFormatter = {
| |- note: annotate 'dateFormatter' 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
13 | let dateFormatter = DateFormatter()
14 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
/host/spi-builder-workspace/Sources/BetterCodable/RFC3339Strategy.swift:12:24: warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// from UTC (Pacific Standard Time).
11 | public struct RFC3339Strategy: DateValueCodableStrategy {
12 | private static let dateFormatter: DateFormatter = {
| `- warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
13 | let dateFormatter = DateFormatter()
14 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/BetterCodable/RFC3339Strategy.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | /// Decodes `String` values as an RFC 3339 `Date`.
:
10 | /// from UTC (Pacific Standard Time).
11 | public struct RFC3339Strategy: DateValueCodableStrategy {
12 | private static let dateFormatter: DateFormatter = {
| |- note: annotate 'dateFormatter' 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
13 | let dateFormatter = DateFormatter()
14 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
/host/spi-builder-workspace/Sources/BetterCodable/YearMonthDayStrategy.swift:11:24: warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
9 | /// January 1st, 2001.
10 | public struct YearMonthDayStrategy: DateValueCodableStrategy {
11 | private static let dateFormatter: DateFormatter = {
| `- warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
12 | let dateFormatter = DateFormatter()
13 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/BetterCodable/YearMonthDayStrategy.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | /// Decodes `String` values of format `y-MM-dd` as a `Date`.
:
9 | /// January 1st, 2001.
10 | public struct YearMonthDayStrategy: DateValueCodableStrategy {
11 | private static let dateFormatter: DateFormatter = {
| |- note: annotate 'dateFormatter' 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
12 | let dateFormatter = DateFormatter()
13 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
[4/22] Compiling BetterCodable LossyDictionary.swift
/host/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 |
[5/22] Compiling BetterCodable LossyOptional.swift
/host/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 |
[6/22] Compiling BetterCodable RFC2822Strategy.swift
/host/spi-builder-workspace/Sources/BetterCodable/RFC2822Strategy.swift:12:24: warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// -00:00 from UTC (Pacific Standard Time).
11 | public struct RFC2822Strategy: DateValueCodableStrategy {
12 | private static let dateFormatter: DateFormatter = {
| `- warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
13 | let dateFormatter = DateFormatter()
14 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/BetterCodable/RFC2822Strategy.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | /// Decodes `String` values as an RFC 2822 `Date`.
:
10 | /// -00:00 from UTC (Pacific Standard Time).
11 | public struct RFC2822Strategy: DateValueCodableStrategy {
12 | private static let dateFormatter: DateFormatter = {
| |- note: annotate 'dateFormatter' 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
13 | let dateFormatter = DateFormatter()
14 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
/host/spi-builder-workspace/Sources/BetterCodable/RFC3339Strategy.swift:12:24: warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// from UTC (Pacific Standard Time).
11 | public struct RFC3339Strategy: DateValueCodableStrategy {
12 | private static let dateFormatter: DateFormatter = {
| `- warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
13 | let dateFormatter = DateFormatter()
14 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/BetterCodable/RFC3339Strategy.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | /// Decodes `String` values as an RFC 3339 `Date`.
:
10 | /// from UTC (Pacific Standard Time).
11 | public struct RFC3339Strategy: DateValueCodableStrategy {
12 | private static let dateFormatter: DateFormatter = {
| |- note: annotate 'dateFormatter' 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
13 | let dateFormatter = DateFormatter()
14 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
[7/22] Compiling BetterCodable RFC3339Strategy.swift
/host/spi-builder-workspace/Sources/BetterCodable/RFC2822Strategy.swift:12:24: warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// -00:00 from UTC (Pacific Standard Time).
11 | public struct RFC2822Strategy: DateValueCodableStrategy {
12 | private static let dateFormatter: DateFormatter = {
| `- warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
13 | let dateFormatter = DateFormatter()
14 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/BetterCodable/RFC2822Strategy.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | /// Decodes `String` values as an RFC 2822 `Date`.
:
10 | /// -00:00 from UTC (Pacific Standard Time).
11 | public struct RFC2822Strategy: DateValueCodableStrategy {
12 | private static let dateFormatter: DateFormatter = {
| |- note: annotate 'dateFormatter' 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
13 | let dateFormatter = DateFormatter()
14 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
/host/spi-builder-workspace/Sources/BetterCodable/RFC3339Strategy.swift:12:24: warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
10 | /// from UTC (Pacific Standard Time).
11 | public struct RFC3339Strategy: DateValueCodableStrategy {
12 | private static let dateFormatter: DateFormatter = {
| `- warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
13 | let dateFormatter = DateFormatter()
14 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/BetterCodable/RFC3339Strategy.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | /// Decodes `String` values as an RFC 3339 `Date`.
:
10 | /// from UTC (Pacific Standard Time).
11 | public struct RFC3339Strategy: DateValueCodableStrategy {
12 | private static let dateFormatter: DateFormatter = {
| |- note: annotate 'dateFormatter' 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
13 | let dateFormatter = DateFormatter()
14 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
[8/22] Compiling BetterCodable Base64Strategy.swift
[9/22] Compiling BetterCodable DataValue.swift
[10/22] Compiling BetterCodable DateValue.swift
[11/22] Compiling BetterCodable DefaultFalse.swift
[12/22] Compiling BetterCodable DefaultTrue.swift
[13/22] Compiling BetterCodable ISO8601Strategy.swift
[14/22] Compiling BetterCodable TimestampStrategy.swift
/host/spi-builder-workspace/Sources/BetterCodable/YearMonthDayStrategy.swift:11:24: warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
9 | /// January 1st, 2001.
10 | public struct YearMonthDayStrategy: DateValueCodableStrategy {
11 | private static let dateFormatter: DateFormatter = {
| `- warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
12 | let dateFormatter = DateFormatter()
13 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/BetterCodable/YearMonthDayStrategy.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | /// Decodes `String` values of format `y-MM-dd` as a `Date`.
:
9 | /// January 1st, 2001.
10 | public struct YearMonthDayStrategy: DateValueCodableStrategy {
11 | private static let dateFormatter: DateFormatter = {
| |- note: annotate 'dateFormatter' 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
12 | let dateFormatter = DateFormatter()
13 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
[15/22] Compiling BetterCodable YearMonthDayStrategy.swift
/host/spi-builder-workspace/Sources/BetterCodable/YearMonthDayStrategy.swift:11:24: warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
9 | /// January 1st, 2001.
10 | public struct YearMonthDayStrategy: DateValueCodableStrategy {
11 | private static let dateFormatter: DateFormatter = {
| `- warning: static property 'dateFormatter' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
12 | let dateFormatter = DateFormatter()
13 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/BetterCodable/YearMonthDayStrategy.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | /// Decodes `String` values of format `y-MM-dd` as a `Date`.
:
9 | /// January 1st, 2001.
10 | public struct YearMonthDayStrategy: DateValueCodableStrategy {
11 | private static let dateFormatter: DateFormatter = {
| |- note: annotate 'dateFormatter' 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
12 | let dateFormatter = DateFormatter()
13 | dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
[16/22] Compiling BetterCodable DefaultCodable.swift
[17/22] Compiling BetterCodable DefaultEmptyArray.swift
[18/22] Compiling BetterCodable DefaultEmptyDictionary.swift
[19/22] Compiling BetterCodable LosslessValue.swift
[20/22] Compiling BetterCodable LossyArray.swift
[21/22] Compiling BetterCodable ISO8601WithFractionalSecondsStrategy.swift
/host/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
14 | let formatter = ISO8601DateFormatter()
15 | formatter.formatOptions = [.withInternetDateTime, .withFractionalSeconds]
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/BetterCodable/ISO8601WithFractionalSecondsStrategy.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | /// Decodes `String` values as an ISO8601 `Date`.
:
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 = {
| |- 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]
[22/22] Compiling BetterCodable LosslessArray.swift
/host/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
14 | let formatter = ISO8601DateFormatter()
15 | formatter.formatOptions = [.withInternetDateTime, .withFractionalSeconds]
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/BetterCodable/ISO8601WithFractionalSecondsStrategy.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
1 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
2 |
3 | /// Decodes `String` values as an ISO8601 `Date`.
:
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 = {
| |- 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]
Build complete! (15.34s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "BetterCodable",
"name" : "BetterCodable",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.13"
},
{
"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" : [
"DataValueTests.swift",
"DateValueTests.swift",
"DefaulEmptyDictionaryTests.swift",
"DefaultCodableTests.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" : [
"Base64Strategy.swift",
"DataValue.swift",
"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.