Build Information
Successful build of VDDate, reference main (2155df
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 23:46:52 UTC.
Swift 6 data race errors: 5
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/dankinsoid/VDDate.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dankinsoid/VDDate
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2155df4 0.14.0
Cloned https://github.com/dankinsoid/VDDate.git
Revision (git rev-parse @):
2155df428bc0446d5a749579c18bda1ff6569ec2
SUCCESS checkout https://github.com/dankinsoid/VDDate.git at main
========================================
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": "vddate",
"name": "VDDate",
"url": "https://github.com/dankinsoid/VDDate.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/VDDate",
"dependencies": [
]
}
]
}
Fetching https://github.com/dankinsoid/VDDate.git
[1/190] Fetching vddate
Fetched https://github.com/dankinsoid/VDDate.git from cache (0.75s)
Creating working copy for https://github.com/dankinsoid/VDDate.git
Working copy of https://github.com/dankinsoid/VDDate.git resolved at main (2155df4)
warning: '.resolve-product-dependencies': dependency 'vddate' 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/dankinsoid/VDDate.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/16] Compiling VDDate SearchDirectionSet.swift
[4/16] Compiling VDDate Weekdays.swift
[5/16] Compiling VDDate Locale++.swift
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Locale++.swift:48:16: warning: static property '_default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 | private extension Locale {
47 |
48 | static var _default: () -> Locale = { .autoupdatingCurrent }
| |- warning: static property '_default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_default' 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
49 | }
50 |
[6/16] Compiling VDDate AnyDateFormatStyle.swift
[7/16] Compiling VDDate DatesCollection.swift
[8/17] Compiling VDDate Date++.swift
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Date++.swift:604:13: warning: static property 'nowBuilder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
602 | private extension Date {
603 |
604 | static var nowBuilder: () -> Date = { Date() }
| |- warning: static property 'nowBuilder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nowBuilder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nowBuilder' 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
605 | }
606 |
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Format/DateFormat.swift:307:13: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormat' may have shared mutable state; this is an error in the Swift 6 language mode
5 | @available(tvOS, deprecated: 15.0, message: "use Date.FormatString")
6 | @available(watchOS, deprecated: 8.0, message: "use Date.FormatString")
7 | public struct DateFormat: ExpressibleByArrayLiteral, ExpressibleByStringInterpolation, Hashable, Codable, CustomStringConvertible {
| `- note: consider making struct 'DateFormat' conform to the 'Sendable' protocol
8 |
9 | public var string: String
:
305 | public extension DateFormat {
306 |
307 | static let iso8601: DateFormat = "\(.yyyy)-\(.MM)-\(.dd)T\(.HH):\(.mm):\(.ss).\(.SSS)\(.ZZZZZ)"
| |- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'iso8601' 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
308 | }
309 |
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Date++.swift:404:3: warning: switch must be exhaustive; this is an error in the Swift 6 language mode
402 | timeZone: TimeZone = .default
403 | ) -> String {
404 | switch component {
| |- warning: switch must be exhaustive; this is an error in the Swift 6 language mode
| `- note: add missing case: '.dayOfYear'
405 | case .era: return string("GGGG", locale: locale, timeZone: timeZone)
406 | case .year: return string("yyyy", locale: locale, timeZone: timeZone)
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Date++.swift:470:3: warning: switch must be exhaustive; this is an error in the Swift 6 language mode
468 |
469 | func setting(_ component: Calendar.Component, _ value: Int, calendar: Calendar = .default) -> Date? {
470 | switch component {
| |- warning: switch must be exhaustive; this is an error in the Swift 6 language mode
| `- note: add missing case: '.dayOfYear'
471 | case .nanosecond, .second, .minute, .hour:
472 | var comps = components(calendar: calendar)
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/DateComponents++.swift:3:1: warning: extension declares a conformance of imported type 'DateComponents' to imported protocols 'RawRepresentable', 'ExpressibleByDictionaryLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
1 | import Foundation
2 |
3 | extension DateComponents: RawRepresentable, ExpressibleByDictionaryLiteral {
| |- warning: extension declares a conformance of imported type 'DateComponents' to imported protocols 'RawRepresentable', 'ExpressibleByDictionaryLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
4 |
5 | public static func era(_ value: Int) -> DateComponents { .current(era: value) }
[9/17] Compiling VDDate DateComponents++.swift
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Date++.swift:604:13: warning: static property 'nowBuilder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
602 | private extension Date {
603 |
604 | static var nowBuilder: () -> Date = { Date() }
| |- warning: static property 'nowBuilder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nowBuilder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nowBuilder' 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
605 | }
606 |
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Format/DateFormat.swift:307:13: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormat' may have shared mutable state; this is an error in the Swift 6 language mode
5 | @available(tvOS, deprecated: 15.0, message: "use Date.FormatString")
6 | @available(watchOS, deprecated: 8.0, message: "use Date.FormatString")
7 | public struct DateFormat: ExpressibleByArrayLiteral, ExpressibleByStringInterpolation, Hashable, Codable, CustomStringConvertible {
| `- note: consider making struct 'DateFormat' conform to the 'Sendable' protocol
8 |
9 | public var string: String
:
305 | public extension DateFormat {
306 |
307 | static let iso8601: DateFormat = "\(.yyyy)-\(.MM)-\(.dd)T\(.HH):\(.mm):\(.ss).\(.SSS)\(.ZZZZZ)"
| |- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'iso8601' 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
308 | }
309 |
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Date++.swift:404:3: warning: switch must be exhaustive; this is an error in the Swift 6 language mode
402 | timeZone: TimeZone = .default
403 | ) -> String {
404 | switch component {
| |- warning: switch must be exhaustive; this is an error in the Swift 6 language mode
| `- note: add missing case: '.dayOfYear'
405 | case .era: return string("GGGG", locale: locale, timeZone: timeZone)
406 | case .year: return string("yyyy", locale: locale, timeZone: timeZone)
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Date++.swift:470:3: warning: switch must be exhaustive; this is an error in the Swift 6 language mode
468 |
469 | func setting(_ component: Calendar.Component, _ value: Int, calendar: Calendar = .default) -> Date? {
470 | switch component {
| |- warning: switch must be exhaustive; this is an error in the Swift 6 language mode
| `- note: add missing case: '.dayOfYear'
471 | case .nanosecond, .second, .minute, .hour:
472 | var comps = components(calendar: calendar)
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/DateComponents++.swift:3:1: warning: extension declares a conformance of imported type 'DateComponents' to imported protocols 'RawRepresentable', 'ExpressibleByDictionaryLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
1 | import Foundation
2 |
3 | extension DateComponents: RawRepresentable, ExpressibleByDictionaryLiteral {
| |- warning: extension declares a conformance of imported type 'DateComponents' to imported protocols 'RawRepresentable', 'ExpressibleByDictionaryLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
4 |
5 | public static func era(_ value: Int) -> DateComponents { .current(era: value) }
[10/17] Emitting module VDDate
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Calendar++.swift:72:13: warning: static property '_default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | private extension Calendar {
71 |
72 | static var _default: () -> Calendar = { .autoupdatingCurrent }
| |- warning: static property '_default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_default' 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
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/CalendarComponent++.swift:3:1: warning: extension declares a conformance of imported type 'Component' to imported protocols 'CaseIterable', 'Comparable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
1 | import Foundation
2 |
3 | extension Calendar.Component: CaseIterable, Comparable {
| |- warning: extension declares a conformance of imported type 'Component' to imported protocols 'CaseIterable', 'Comparable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
4 |
5 | public typealias AllCases = Set<Calendar.Component>
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/CalendarComponent++.swift:122:1: warning: extension declares a conformance of imported type 'Component' to imported protocols 'RawRepresentable', 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
120 | }
121 |
122 | extension Calendar.Component: Codable, RawRepresentable, CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'Component' to imported protocols 'RawRepresentable', 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
123 |
124 | public var rawValue: String {
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Date++.swift:604:13: warning: static property 'nowBuilder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
602 | private extension Date {
603 |
604 | static var nowBuilder: () -> Date = { Date() }
| |- warning: static property 'nowBuilder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nowBuilder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nowBuilder' 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
605 | }
606 |
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/DateComponents++.swift:3:1: warning: extension declares a conformance of imported type 'DateComponents' to imported protocols 'RawRepresentable', 'ExpressibleByDictionaryLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
1 | import Foundation
2 |
3 | extension DateComponents: RawRepresentable, ExpressibleByDictionaryLiteral {
| |- warning: extension declares a conformance of imported type 'DateComponents' to imported protocols 'RawRepresentable', 'ExpressibleByDictionaryLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
4 |
5 | public static func era(_ value: Int) -> DateComponents { .current(era: value) }
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Format/DateFormat.swift:307:13: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormat' may have shared mutable state; this is an error in the Swift 6 language mode
5 | @available(tvOS, deprecated: 15.0, message: "use Date.FormatString")
6 | @available(watchOS, deprecated: 8.0, message: "use Date.FormatString")
7 | public struct DateFormat: ExpressibleByArrayLiteral, ExpressibleByStringInterpolation, Hashable, Codable, CustomStringConvertible {
| `- note: consider making struct 'DateFormat' conform to the 'Sendable' protocol
8 |
9 | public var string: String
:
305 | public extension DateFormat {
306 |
307 | static let iso8601: DateFormat = "\(.yyyy)-\(.MM)-\(.dd)T\(.HH):\(.mm):\(.ss).\(.SSS)\(.ZZZZZ)"
| |- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'iso8601' 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
308 | }
309 |
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Locale++.swift:48:16: warning: static property '_default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 | private extension Locale {
47 |
48 | static var _default: () -> Locale = { .autoupdatingCurrent }
| |- warning: static property '_default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_default' 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
49 | }
50 |
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/TimeZone++.swift:53:16: warning: static property '_default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 | private extension TimeZone {
52 |
53 | static var _default: () -> TimeZone = { .autoupdatingCurrent }
| |- warning: static property '_default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_default' 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
54 | }
55 |
[11/17] Compiling VDDate DateFormatParser.swift
[12/17] Compiling VDDate RelativeDateFormat.swift
[13/17] Compiling VDDate Calendar++.swift
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Calendar++.swift:72:13: warning: static property '_default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | private extension Calendar {
71 |
72 | static var _default: () -> Calendar = { .autoupdatingCurrent }
| |- warning: static property '_default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_default' 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
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/CalendarComponent++.swift:3:1: warning: extension declares a conformance of imported type 'Component' to imported protocols 'CaseIterable', 'Comparable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
1 | import Foundation
2 |
3 | extension Calendar.Component: CaseIterable, Comparable {
| |- warning: extension declares a conformance of imported type 'Component' to imported protocols 'CaseIterable', 'Comparable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
4 |
5 | public typealias AllCases = Set<Calendar.Component>
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/CalendarComponent++.swift:122:1: warning: extension declares a conformance of imported type 'Component' to imported protocols 'RawRepresentable', 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
120 | }
121 |
122 | extension Calendar.Component: Codable, RawRepresentable, CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'Component' to imported protocols 'RawRepresentable', 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
123 |
124 | public var rawValue: String {
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/CalendarComponent++.swift:33:3: warning: switch must be exhaustive; this is an error in the Swift 6 language mode
31 |
32 | public var smaller: Calendar.Component? {
33 | switch self {
| |- warning: switch must be exhaustive; this is an error in the Swift 6 language mode
| `- note: add missing case: '.dayOfYear'
34 | case .era: return .year
35 | case .year: return .month
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/CalendarComponent++.swift:66:3: warning: switch must be exhaustive; this is an error in the Swift 6 language mode
64 |
65 | public var larger: Calendar.Component? {
66 | switch self {
| |- warning: switch must be exhaustive; this is an error in the Swift 6 language mode
| `- note: add missing case: '.dayOfYear'
67 | case .era: return nil
68 | case .year: return .era
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/CalendarComponent++.swift:89:3: warning: switch must be exhaustive; this is an error in the Swift 6 language mode
87 |
88 | var inSeconds: TimeInterval? {
89 | switch self {
| |- warning: switch must be exhaustive; this is an error in the Swift 6 language mode
| `- note: add missing case: '.dayOfYear'
90 | case .era: return nil
91 | case .year, .yearForWeekOfYear: return Calendar.Component.day.inSeconds.map { 365.2425 * $0 }
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/CalendarComponent++.swift:125:3: warning: switch must be exhaustive; this is an error in the Swift 6 language mode
123 |
124 | public var rawValue: String {
125 | switch self {
| |- warning: switch must be exhaustive; this is an error in the Swift 6 language mode
| `- note: add missing case: '.dayOfYear'
126 | case .era: return "era"
127 | case .year: return "year"
[14/17] Compiling VDDate CalendarComponent++.swift
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Calendar++.swift:72:13: warning: static property '_default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | private extension Calendar {
71 |
72 | static var _default: () -> Calendar = { .autoupdatingCurrent }
| |- warning: static property '_default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_default' 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
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/CalendarComponent++.swift:3:1: warning: extension declares a conformance of imported type 'Component' to imported protocols 'CaseIterable', 'Comparable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
1 | import Foundation
2 |
3 | extension Calendar.Component: CaseIterable, Comparable {
| |- warning: extension declares a conformance of imported type 'Component' to imported protocols 'CaseIterable', 'Comparable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
4 |
5 | public typealias AllCases = Set<Calendar.Component>
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/CalendarComponent++.swift:122:1: warning: extension declares a conformance of imported type 'Component' to imported protocols 'RawRepresentable', 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
120 | }
121 |
122 | extension Calendar.Component: Codable, RawRepresentable, CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'Component' to imported protocols 'RawRepresentable', 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
123 |
124 | public var rawValue: String {
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/CalendarComponent++.swift:33:3: warning: switch must be exhaustive; this is an error in the Swift 6 language mode
31 |
32 | public var smaller: Calendar.Component? {
33 | switch self {
| |- warning: switch must be exhaustive; this is an error in the Swift 6 language mode
| `- note: add missing case: '.dayOfYear'
34 | case .era: return .year
35 | case .year: return .month
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/CalendarComponent++.swift:66:3: warning: switch must be exhaustive; this is an error in the Swift 6 language mode
64 |
65 | public var larger: Calendar.Component? {
66 | switch self {
| |- warning: switch must be exhaustive; this is an error in the Swift 6 language mode
| `- note: add missing case: '.dayOfYear'
67 | case .era: return nil
68 | case .year: return .era
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/CalendarComponent++.swift:89:3: warning: switch must be exhaustive; this is an error in the Swift 6 language mode
87 |
88 | var inSeconds: TimeInterval? {
89 | switch self {
| |- warning: switch must be exhaustive; this is an error in the Swift 6 language mode
| `- note: add missing case: '.dayOfYear'
90 | case .era: return nil
91 | case .year, .yearForWeekOfYear: return Calendar.Component.day.inSeconds.map { 365.2425 * $0 }
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/CalendarComponent++.swift:125:3: warning: switch must be exhaustive; this is an error in the Swift 6 language mode
123 |
124 | public var rawValue: String {
125 | switch self {
| |- warning: switch must be exhaustive; this is an error in the Swift 6 language mode
| `- note: add missing case: '.dayOfYear'
126 | case .era: return "era"
127 | case .year: return "year"
[15/17] Compiling VDDate ConstantDateStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Format/DateFormat.swift:307:13: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormat' may have shared mutable state; this is an error in the Swift 6 language mode
5 | @available(tvOS, deprecated: 15.0, message: "use Date.FormatString")
6 | @available(watchOS, deprecated: 8.0, message: "use Date.FormatString")
7 | public struct DateFormat: ExpressibleByArrayLiteral, ExpressibleByStringInterpolation, Hashable, Codable, CustomStringConvertible {
| `- note: consider making struct 'DateFormat' conform to the 'Sendable' protocol
8 |
9 | public var string: String
:
305 | public extension DateFormat {
306 |
307 | static let iso8601: DateFormat = "\(.yyyy)-\(.MM)-\(.dd)T\(.HH):\(.mm):\(.ss).\(.SSS)\(.ZZZZZ)"
| |- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'iso8601' 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
308 | }
309 |
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Format/DateFormat.swift:220:3: warning: switch must be exhaustive; this is an error in the Swift 6 language mode
218 |
219 | static func calendarComponent(_ component: Calendar.Component, style: Style) -> DateFormat.Component {
220 | switch component {
| |- warning: switch must be exhaustive; this is an error in the Swift 6 language mode
| `- note: add missing case: '.dayOfYear'
221 | case .era:
222 | switch style {
[16/17] Compiling VDDate DateFormat.swift
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Format/DateFormat.swift:307:13: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormat' may have shared mutable state; this is an error in the Swift 6 language mode
5 | @available(tvOS, deprecated: 15.0, message: "use Date.FormatString")
6 | @available(watchOS, deprecated: 8.0, message: "use Date.FormatString")
7 | public struct DateFormat: ExpressibleByArrayLiteral, ExpressibleByStringInterpolation, Hashable, Codable, CustomStringConvertible {
| `- note: consider making struct 'DateFormat' conform to the 'Sendable' protocol
8 |
9 | public var string: String
:
305 | public extension DateFormat {
306 |
307 | static let iso8601: DateFormat = "\(.yyyy)-\(.MM)-\(.dd)T\(.HH):\(.mm):\(.ss).\(.SSS)\(.ZZZZZ)"
| |- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormat' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'iso8601' 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
308 | }
309 |
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/Format/DateFormat.swift:220:3: warning: switch must be exhaustive; this is an error in the Swift 6 language mode
218 |
219 | static func calendarComponent(_ component: Calendar.Component, style: Style) -> DateFormat.Component {
220 | switch component {
| |- warning: switch must be exhaustive; this is an error in the Swift 6 language mode
| `- note: add missing case: '.dayOfYear'
221 | case .era:
222 | switch style {
[17/17] Compiling VDDate TimeZone++.swift
/Users/admin/builder/spi-builder-workspace/Sources/VDDate/TimeZone++.swift:53:16: warning: static property '_default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 | private extension TimeZone {
52 |
53 | static var _default: () -> TimeZone = { .autoupdatingCurrent }
| |- warning: static property '_default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_default' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_default' 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
54 | }
55 |
Build complete! (14.26s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "VDDate",
"name" : "VDDate",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "VDDate",
"targets" : [
"VDDate"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "VDDateTests",
"module_type" : "SwiftTarget",
"name" : "VDDateTests",
"path" : "Tests/VDDateTests",
"sources" : [
"DateTests.swift"
],
"target_dependencies" : [
"VDDate"
],
"type" : "test"
},
{
"c99name" : "VDDate",
"module_type" : "SwiftTarget",
"name" : "VDDate",
"path" : "Sources/VDDate",
"product_memberships" : [
"VDDate"
],
"sources" : [
"Calendar++.swift",
"CalendarComponent++.swift",
"Date++.swift",
"DateComponents++.swift",
"Format/ConstantDateStyle.swift",
"Format/DateFormat.swift",
"Format/DateFormatParser.swift",
"Format/RelativeDateFormat.swift",
"Locale++.swift",
"Models/AnyDateFormatStyle.swift",
"Models/DatesCollection.swift",
"Models/SearchDirectionSet.swift",
"Models/Weekdays.swift",
"TimeZone++.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.