Build Information
Successful build of DVB, reference master (3d3999
), with Swift 6.1 for macOS (SPM) on 24 Apr 2025 18:30:22 UTC.
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kiliankoe/DVB.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kiliankoe/DVB
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 3d3999b Remove TripsResponse expirationTime
Cloned https://github.com/kiliankoe/DVB.git
Revision (git rev-parse @):
3d3999bca5e3847f0b73668b8fe496b73c69712c
SUCCESS checkout https://github.com/kiliankoe/DVB.git at master
========================================
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": "dvb",
"name": "DVB",
"url": "https://github.com/kiliankoe/DVB.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DVB",
"dependencies": [
]
}
]
}
Fetching https://github.com/kiliankoe/DVB.git
[1/3457] Fetching dvb
Fetched https://github.com/kiliankoe/DVB.git from cache (1.09s)
Creating working copy for https://github.com/kiliankoe/DVB.git
Working copy of https://github.com/kiliankoe/DVB.git resolved at master (3d3999b)
warning: '.resolve-product-dependencies': dependency 'dvb' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/kiliankoe/DVB.git
https://github.com/kiliankoe/DVB.git
{
"dependencies" : [
],
"manifest_display_name" : "DVB",
"name" : "DVB",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "DVB",
"targets" : [
"DVB"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DVBTests",
"module_type" : "SwiftTarget",
"name" : "DVBTests",
"path" : "Tests/DVBTests",
"sources" : [
"DateTests.swift",
"DepartureTests.swift",
"GaussKruegerTests.swift",
"LineTests.swift",
"ModeTests.swift",
"POITests.swift",
"ResultTests.swift",
"RouteChangeTests.swift",
"RouteTests.swift",
"StopTests.swift",
"TripTests.swift"
],
"target_dependencies" : [
"DVB"
],
"type" : "test"
},
{
"c99name" : "DVB",
"module_type" : "SwiftTarget",
"name" : "DVB",
"path" : "Sources/DVB",
"product_memberships" : [
"DVB"
],
"sources" : [
"DVBError.swift",
"Date+SAP.swift",
"Endpoint.swift",
"GaussKrueger.swift",
"Models/Departure/Departure+State.swift",
"Models/Departure/Departure.swift",
"Models/Departure/MonitorResponse.swift",
"Models/Diva.swift",
"Models/Line/Line+Direction.swift",
"Models/Line/Line+TimeTable.swift",
"Models/Line/Line.swift",
"Models/Line/LinesResponse.swift",
"Models/Mode.swift",
"Models/POI/POI+Kind.swift",
"Models/POI/POI.swift",
"Models/POI/POIResponse.swift",
"Models/Platform.swift",
"Models/Route/Request Settings/MobilitySettings.swift",
"Models/Route/Request Settings/StandardSettings.swift",
"Models/Route/Route+MapData.swift",
"Models/Route/Route+ModeElement.swift",
"Models/Route/Route+RoutePartial.swift",
"Models/Route/Route+RouteStop.swift",
"Models/Route/Route.swift",
"Models/Route/RoutesResponse.swift",
"Models/RouteChange/RouteChange+Kind.swift",
"Models/RouteChange/RouteChange+Line.swift",
"Models/RouteChange/RouteChange+ValidityPeriod.swift",
"Models/RouteChange/RouteChange.swift",
"Models/RouteChange/RouteChangeResponse.swift",
"Models/Stop/FindResponse.swift",
"Models/Stop/Stop.swift",
"Models/Trip.swift",
"Network.swift",
"Result.swift",
"SAPDateDecoder.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/36] Emitting module DVB
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Models/Route/Request Settings/MobilitySettings.swift:47:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
1 | extension Route {
2 | public enum MobilitySettings: Encodable {
| `- note: consider making enum 'MobilitySettings' conform to the 'Sendable' protocol
3 | //swiftlint:disable:next nesting
4 | public enum PreconfiguredMobilitySettings: String, Encodable {
:
45 |
46 | /// "Ohne Einschränkungen"
47 | public static let none = MobilitySettings._preconfigured(.none)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | /// "Rollator, Kinderwagen"
49 | public static let medium = MobilitySettings._preconfigured(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Models/Route/Request Settings/MobilitySettings.swift:49:27: warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
1 | extension Route {
2 | public enum MobilitySettings: Encodable {
| `- note: consider making enum 'MobilitySettings' conform to the 'Sendable' protocol
3 | //swiftlint:disable:next nesting
4 | public enum PreconfiguredMobilitySettings: String, Encodable {
:
47 | public static let none = MobilitySettings._preconfigured(.none)
48 | /// "Rollator, Kinderwagen"
49 | public static let medium = MobilitySettings._preconfigured(.medium)
| |- warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'medium' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | /// "Rollstuhlfahrer ohne Hilfe"
51 | public static let high = MobilitySettings._preconfigured(.high)
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Models/Route/Request Settings/MobilitySettings.swift:51:27: warning: static property 'high' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
1 | extension Route {
2 | public enum MobilitySettings: Encodable {
| `- note: consider making enum 'MobilitySettings' conform to the 'Sendable' protocol
3 | //swiftlint:disable:next nesting
4 | public enum PreconfiguredMobilitySettings: String, Encodable {
:
49 | public static let medium = MobilitySettings._preconfigured(.medium)
50 | /// "Rollstuhlfahrer ohne Hilfe"
51 | public static let high = MobilitySettings._preconfigured(.high)
| |- warning: static property 'high' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'high' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | public static func individual(noSolidStairs: Bool,
[4/39] Compiling DVB Network.swift
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Network.swift:68:13: warning: capture of 'completion' with non-sendable type '(Result<T>) -> Void' in a '@Sendable' closure
66 | let response = response as? HTTPURLResponse
67 | else {
68 | completion(Result(failure: DVBError.network))
| |- warning: capture of 'completion' with non-sendable type '(Result<T>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
69 | return
70 | }
[5/39] Compiling DVB Result.swift
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Network.swift:68:13: warning: capture of 'completion' with non-sendable type '(Result<T>) -> Void' in a '@Sendable' closure
66 | let response = response as? HTTPURLResponse
67 | else {
68 | completion(Result(failure: DVBError.network))
| |- warning: capture of 'completion' with non-sendable type '(Result<T>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
69 | return
70 | }
[6/39] Compiling DVB SAPDateDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Network.swift:68:13: warning: capture of 'completion' with non-sendable type '(Result<T>) -> Void' in a '@Sendable' closure
66 | let response = response as? HTTPURLResponse
67 | else {
68 | completion(Result(failure: DVBError.network))
| |- warning: capture of 'completion' with non-sendable type '(Result<T>) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
69 | return
70 | }
[7/39] Compiling DVB RoutesResponse.swift
[8/39] Compiling DVB RouteChange+Kind.swift
[9/39] Compiling DVB RouteChange+Line.swift
[10/39] Compiling DVB Mode.swift
[11/39] Compiling DVB POI+Kind.swift
[12/39] Compiling DVB POI.swift
[13/39] Compiling DVB POIResponse.swift
[14/39] Compiling DVB Line+Direction.swift
[15/39] Compiling DVB Line+TimeTable.swift
[16/39] Compiling DVB Line.swift
[17/39] Compiling DVB LinesResponse.swift
[18/39] Compiling DVB FindResponse.swift
[19/39] Compiling DVB Stop.swift
[20/39] Compiling DVB Trip.swift
[21/39] Compiling DVB Route+ModeElement.swift
[22/39] Compiling DVB Route+RoutePartial.swift
[23/39] Compiling DVB Route+RouteStop.swift
[24/39] Compiling DVB Route.swift
[25/39] Compiling DVB RouteChange+ValidityPeriod.swift
[26/39] Compiling DVB RouteChange.swift
[27/39] Compiling DVB RouteChangeResponse.swift
[28/39] Compiling DVB DVBError.swift
[29/39] Compiling DVB Date+SAP.swift
[30/39] Compiling DVB Endpoint.swift
[31/39] Compiling DVB GaussKrueger.swift
[32/39] Compiling DVB Platform.swift
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Models/Route/Request Settings/MobilitySettings.swift:47:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
1 | extension Route {
2 | public enum MobilitySettings: Encodable {
| `- note: consider making enum 'MobilitySettings' conform to the 'Sendable' protocol
3 | //swiftlint:disable:next nesting
4 | public enum PreconfiguredMobilitySettings: String, Encodable {
:
45 |
46 | /// "Ohne Einschränkungen"
47 | public static let none = MobilitySettings._preconfigured(.none)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | /// "Rollator, Kinderwagen"
49 | public static let medium = MobilitySettings._preconfigured(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Models/Route/Request Settings/MobilitySettings.swift:49:27: warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
1 | extension Route {
2 | public enum MobilitySettings: Encodable {
| `- note: consider making enum 'MobilitySettings' conform to the 'Sendable' protocol
3 | //swiftlint:disable:next nesting
4 | public enum PreconfiguredMobilitySettings: String, Encodable {
:
47 | public static let none = MobilitySettings._preconfigured(.none)
48 | /// "Rollator, Kinderwagen"
49 | public static let medium = MobilitySettings._preconfigured(.medium)
| |- warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'medium' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | /// "Rollstuhlfahrer ohne Hilfe"
51 | public static let high = MobilitySettings._preconfigured(.high)
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Models/Route/Request Settings/MobilitySettings.swift:51:27: warning: static property 'high' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
1 | extension Route {
2 | public enum MobilitySettings: Encodable {
| `- note: consider making enum 'MobilitySettings' conform to the 'Sendable' protocol
3 | //swiftlint:disable:next nesting
4 | public enum PreconfiguredMobilitySettings: String, Encodable {
:
49 | public static let medium = MobilitySettings._preconfigured(.medium)
50 | /// "Rollstuhlfahrer ohne Hilfe"
51 | public static let high = MobilitySettings._preconfigured(.high)
| |- warning: static property 'high' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'high' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | public static func individual(noSolidStairs: Bool,
[33/39] Compiling DVB MobilitySettings.swift
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Models/Route/Request Settings/MobilitySettings.swift:47:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
1 | extension Route {
2 | public enum MobilitySettings: Encodable {
| `- note: consider making enum 'MobilitySettings' conform to the 'Sendable' protocol
3 | //swiftlint:disable:next nesting
4 | public enum PreconfiguredMobilitySettings: String, Encodable {
:
45 |
46 | /// "Ohne Einschränkungen"
47 | public static let none = MobilitySettings._preconfigured(.none)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | /// "Rollator, Kinderwagen"
49 | public static let medium = MobilitySettings._preconfigured(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Models/Route/Request Settings/MobilitySettings.swift:49:27: warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
1 | extension Route {
2 | public enum MobilitySettings: Encodable {
| `- note: consider making enum 'MobilitySettings' conform to the 'Sendable' protocol
3 | //swiftlint:disable:next nesting
4 | public enum PreconfiguredMobilitySettings: String, Encodable {
:
47 | public static let none = MobilitySettings._preconfigured(.none)
48 | /// "Rollator, Kinderwagen"
49 | public static let medium = MobilitySettings._preconfigured(.medium)
| |- warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'medium' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | /// "Rollstuhlfahrer ohne Hilfe"
51 | public static let high = MobilitySettings._preconfigured(.high)
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Models/Route/Request Settings/MobilitySettings.swift:51:27: warning: static property 'high' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
1 | extension Route {
2 | public enum MobilitySettings: Encodable {
| `- note: consider making enum 'MobilitySettings' conform to the 'Sendable' protocol
3 | //swiftlint:disable:next nesting
4 | public enum PreconfiguredMobilitySettings: String, Encodable {
:
49 | public static let medium = MobilitySettings._preconfigured(.medium)
50 | /// "Rollstuhlfahrer ohne Hilfe"
51 | public static let high = MobilitySettings._preconfigured(.high)
| |- warning: static property 'high' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'high' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | public static func individual(noSolidStairs: Bool,
[34/39] Compiling DVB StandardSettings.swift
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Models/Route/Request Settings/MobilitySettings.swift:47:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
1 | extension Route {
2 | public enum MobilitySettings: Encodable {
| `- note: consider making enum 'MobilitySettings' conform to the 'Sendable' protocol
3 | //swiftlint:disable:next nesting
4 | public enum PreconfiguredMobilitySettings: String, Encodable {
:
45 |
46 | /// "Ohne Einschränkungen"
47 | public static let none = MobilitySettings._preconfigured(.none)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | /// "Rollator, Kinderwagen"
49 | public static let medium = MobilitySettings._preconfigured(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Models/Route/Request Settings/MobilitySettings.swift:49:27: warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
1 | extension Route {
2 | public enum MobilitySettings: Encodable {
| `- note: consider making enum 'MobilitySettings' conform to the 'Sendable' protocol
3 | //swiftlint:disable:next nesting
4 | public enum PreconfiguredMobilitySettings: String, Encodable {
:
47 | public static let none = MobilitySettings._preconfigured(.none)
48 | /// "Rollator, Kinderwagen"
49 | public static let medium = MobilitySettings._preconfigured(.medium)
| |- warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'medium' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | /// "Rollstuhlfahrer ohne Hilfe"
51 | public static let high = MobilitySettings._preconfigured(.high)
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Models/Route/Request Settings/MobilitySettings.swift:51:27: warning: static property 'high' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
1 | extension Route {
2 | public enum MobilitySettings: Encodable {
| `- note: consider making enum 'MobilitySettings' conform to the 'Sendable' protocol
3 | //swiftlint:disable:next nesting
4 | public enum PreconfiguredMobilitySettings: String, Encodable {
:
49 | public static let medium = MobilitySettings._preconfigured(.medium)
50 | /// "Rollstuhlfahrer ohne Hilfe"
51 | public static let high = MobilitySettings._preconfigured(.high)
| |- warning: static property 'high' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'high' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | public static func individual(noSolidStairs: Bool,
[35/39] Compiling DVB Route+MapData.swift
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Models/Route/Request Settings/MobilitySettings.swift:47:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
1 | extension Route {
2 | public enum MobilitySettings: Encodable {
| `- note: consider making enum 'MobilitySettings' conform to the 'Sendable' protocol
3 | //swiftlint:disable:next nesting
4 | public enum PreconfiguredMobilitySettings: String, Encodable {
:
45 |
46 | /// "Ohne Einschränkungen"
47 | public static let none = MobilitySettings._preconfigured(.none)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | /// "Rollator, Kinderwagen"
49 | public static let medium = MobilitySettings._preconfigured(.medium)
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Models/Route/Request Settings/MobilitySettings.swift:49:27: warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
1 | extension Route {
2 | public enum MobilitySettings: Encodable {
| `- note: consider making enum 'MobilitySettings' conform to the 'Sendable' protocol
3 | //swiftlint:disable:next nesting
4 | public enum PreconfiguredMobilitySettings: String, Encodable {
:
47 | public static let none = MobilitySettings._preconfigured(.none)
48 | /// "Rollator, Kinderwagen"
49 | public static let medium = MobilitySettings._preconfigured(.medium)
| |- warning: static property 'medium' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'medium' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | /// "Rollstuhlfahrer ohne Hilfe"
51 | public static let high = MobilitySettings._preconfigured(.high)
/Users/admin/builder/spi-builder-workspace/Sources/DVB/Models/Route/Request Settings/MobilitySettings.swift:51:27: warning: static property 'high' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
1 | extension Route {
2 | public enum MobilitySettings: Encodable {
| `- note: consider making enum 'MobilitySettings' conform to the 'Sendable' protocol
3 | //swiftlint:disable:next nesting
4 | public enum PreconfiguredMobilitySettings: String, Encodable {
:
49 | public static let medium = MobilitySettings._preconfigured(.medium)
50 | /// "Rollstuhlfahrer ohne Hilfe"
51 | public static let high = MobilitySettings._preconfigured(.high)
| |- warning: static property 'high' is not concurrency-safe because non-'Sendable' type 'Route.MobilitySettings' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'high' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | public static func individual(noSolidStairs: Bool,
[36/39] Compiling DVB Departure+State.swift
[37/39] Compiling DVB Departure.swift
[38/39] Compiling DVB MonitorResponse.swift
[39/39] Compiling DVB Diva.swift
Build complete! (5.97s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "DVB",
"name" : "DVB",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "DVB",
"targets" : [
"DVB"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DVBTests",
"module_type" : "SwiftTarget",
"name" : "DVBTests",
"path" : "Tests/DVBTests",
"sources" : [
"DateTests.swift",
"DepartureTests.swift",
"GaussKruegerTests.swift",
"LineTests.swift",
"ModeTests.swift",
"POITests.swift",
"ResultTests.swift",
"RouteChangeTests.swift",
"RouteTests.swift",
"StopTests.swift",
"TripTests.swift"
],
"target_dependencies" : [
"DVB"
],
"type" : "test"
},
{
"c99name" : "DVB",
"module_type" : "SwiftTarget",
"name" : "DVB",
"path" : "Sources/DVB",
"product_memberships" : [
"DVB"
],
"sources" : [
"DVBError.swift",
"Date+SAP.swift",
"Endpoint.swift",
"GaussKrueger.swift",
"Models/Departure/Departure+State.swift",
"Models/Departure/Departure.swift",
"Models/Departure/MonitorResponse.swift",
"Models/Diva.swift",
"Models/Line/Line+Direction.swift",
"Models/Line/Line+TimeTable.swift",
"Models/Line/Line.swift",
"Models/Line/LinesResponse.swift",
"Models/Mode.swift",
"Models/POI/POI+Kind.swift",
"Models/POI/POI.swift",
"Models/POI/POIResponse.swift",
"Models/Platform.swift",
"Models/Route/Request Settings/MobilitySettings.swift",
"Models/Route/Request Settings/StandardSettings.swift",
"Models/Route/Route+MapData.swift",
"Models/Route/Route+ModeElement.swift",
"Models/Route/Route+RoutePartial.swift",
"Models/Route/Route+RouteStop.swift",
"Models/Route/Route.swift",
"Models/Route/RoutesResponse.swift",
"Models/RouteChange/RouteChange+Kind.swift",
"Models/RouteChange/RouteChange+Line.swift",
"Models/RouteChange/RouteChange+ValidityPeriod.swift",
"Models/RouteChange/RouteChange.swift",
"Models/RouteChange/RouteChangeResponse.swift",
"Models/Stop/FindResponse.swift",
"Models/Stop/Stop.swift",
"Models/Trip.swift",
"Network.swift",
"Result.swift",
"SAPDateDecoder.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.