Build Information
Failed to build TeslaSwift, reference master (d10c3f
), with Swift 6.0 for macOS (SPM) on 2 Dec 2024 08:29:20 UTC.
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 -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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jonasman/TeslaSwift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jonasman/TeslaSwift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at d10c3fb Merge branch 'master' of https://github.com/jonasman/TeslaSwift
Cloned https://github.com/jonasman/TeslaSwift.git
Revision (git rev-parse @):
d10c3fb4ad2d8f946ef47a57610cd832c1172f64
SUCCESS checkout https://github.com/jonasman/TeslaSwift.git at master
Fetching https://github.com/daltoniam/Starscream.git
Fetching https://github.com/mxcl/PromiseKit
Fetching https://github.com/ReactiveX/RxSwift.git
[1/4902] Fetching starscream
[639/22039] Fetching starscream, promisekit
[7058/74432] Fetching starscream, promisekit, rxswift
Fetched https://github.com/daltoniam/Starscream.git from cache (19.07s)
Fetched https://github.com/mxcl/PromiseKit from cache (19.07s)
Fetched https://github.com/ReactiveX/RxSwift.git from cache (19.07s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.8 (0.55s)
Creating working copy for https://github.com/daltoniam/Starscream.git
Working copy of https://github.com/daltoniam/Starscream.git resolved at 4.0.8
========================================
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": "teslaswift",
"name": "TeslaSwift",
"url": "https://github.com/jonasman/TeslaSwift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/TeslaSwift",
"dependencies": [
{
"identity": "starscream",
"name": "Starscream",
"url": "https://github.com/daltoniam/Starscream.git",
"version": "4.0.8",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Starscream",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/jonasman/TeslaSwift.git
[1/4261] Fetching teslaswift
Fetched https://github.com/jonasman/TeslaSwift.git from cache (1.05s)
Fetching https://github.com/daltoniam/Starscream.git from cache
Fetched https://github.com/daltoniam/Starscream.git from cache (0.60s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.8 (0.02s)
Creating working copy for https://github.com/daltoniam/Starscream.git
Working copy of https://github.com/daltoniam/Starscream.git resolved at 4.0.8
Creating working copy for https://github.com/jonasman/TeslaSwift.git
Working copy of https://github.com/jonasman/TeslaSwift.git resolved at master (d10c3fb)
warning: '.resolve-product-dependencies': dependency 'teslaswift' is not used by any target
Found 1 product dependencies
- Starscream
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/jonasman/TeslaSwift.git
{
"dependencies" : [
{
"identity" : "starscream",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.6",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/daltoniam/Starscream.git"
}
],
"manifest_display_name" : "TeslaSwift",
"name" : "TeslaSwift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
},
{
"name" : "tvos",
"version" : "15.0"
}
],
"products" : [
{
"name" : "TeslaSwift",
"targets" : [
"TeslaSwift"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "TeslaSwiftStreaming",
"targets" : [
"TeslaSwiftStreaming"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "TeslaSwiftCombine",
"targets" : [
"TeslaSwiftCombine"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "TeslaSwiftStreamingCombine",
"targets" : [
"TeslaSwiftStreamingCombine"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "TeslaSwiftStreamingCombine",
"module_type" : "SwiftTarget",
"name" : "TeslaSwiftStreamingCombine",
"path" : "Sources/Extensions/StreamingCombine",
"product_memberships" : [
"TeslaSwiftStreamingCombine"
],
"sources" : [
"TeslaSwift+StreamingCombine.swift"
],
"target_dependencies" : [
"TeslaSwiftStreaming",
"TeslaSwiftCombine"
],
"type" : "library"
},
{
"c99name" : "TeslaSwiftStreaming",
"module_type" : "SwiftTarget",
"name" : "TeslaSwiftStreaming",
"path" : "Sources/Extensions/Streaming",
"product_dependencies" : [
"Starscream"
],
"product_memberships" : [
"TeslaSwiftStreaming",
"TeslaSwiftStreamingCombine"
],
"sources" : [
"StreamControl.swift",
"StreamEvent.swift",
"TeslaStreaming.swift"
],
"target_dependencies" : [
"TeslaSwift"
],
"type" : "library"
},
{
"c99name" : "TeslaSwiftCombine",
"module_type" : "SwiftTarget",
"name" : "TeslaSwiftCombine",
"path" : "Sources/Extensions/Combine",
"product_memberships" : [
"TeslaSwiftCombine",
"TeslaSwiftStreamingCombine"
],
"sources" : [
"TeslaSwift+Combine.swift"
],
"target_dependencies" : [
"TeslaSwift"
],
"type" : "library"
},
{
"c99name" : "TeslaSwift",
"module_type" : "SwiftTarget",
"name" : "TeslaSwift",
"path" : "Sources/TeslaSwift",
"product_memberships" : [
"TeslaSwift",
"TeslaSwiftStreaming",
"TeslaSwiftCombine",
"TeslaSwiftStreamingCombine"
],
"sources" : [
"Model/Authentication.swift",
"Model/BatteryData.swift",
"Model/BatteryPowerHistory.swift",
"Model/BatteryStatus.swift",
"Model/ChargeAmpsCommandOptions.swift",
"Model/ChargeHistory.swift",
"Model/ChargeLimitPercentageCommandOptions.swift",
"Model/ChargeState.swift",
"Model/ClimateState.swift",
"Model/Codable+JSONString.swift",
"Model/CommandResponse.swift",
"Model/Distance.swift",
"Model/DriveState.swift",
"Model/EnergySite.swift",
"Model/EnergySiteHistory.swift",
"Model/EnergySiteInfo.swift",
"Model/EnergySiteLiveStatus.swift",
"Model/EnergySiteStatus.swift",
"Model/ErrorMessage.swift",
"Model/GenericResponse.swift",
"Model/GuiSettings.swift",
"Model/HomeLinkCommandOptions.swift",
"Model/MaxDefrostCommandOptions.swift",
"Model/Me.swift",
"Model/NearbyChargingSites.swift",
"Model/OpenTrunkOptions.swift",
"Model/Partner.swift",
"Model/Product.swift",
"Model/Region.swift",
"Model/RemoteSeatHeaterRequestOptions.swift",
"Model/RemoteStartDriveCommandOptions.swift",
"Model/RemoteSteeringWheelHeaterRequestOptions.swift",
"Model/ScheduledChargingCommandOptions.swift",
"Model/ScheduledDepartureCommandOptions.swift",
"Model/SentryModeCommandOptions.swift",
"Model/SetSunRoofCommandOptions.swift",
"Model/SetTemperatureCommandOptions.swift",
"Model/ShareToVehicleOptions.swift",
"Model/SoftwareUpdate.swift",
"Model/Speed.swift",
"Model/SpeedLimitOptions.swift",
"Model/ValetCommandOptions.swift",
"Model/Vehicle.swift",
"Model/VehicleConfig.swift",
"Model/VehicleExtended.swift",
"Model/VehicleState.swift",
"Model/WindowControlCommandOptions.swift",
"TeslaEndpoint.swift",
"TeslaSwift.swift",
"TeslaWebLoginViewContoller.swift",
"VehicleCommands.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
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 -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/7] Write sources
[5/7] Copying PrivacyInfo.xcprivacy
[6/7] Write swift-version--7754E27361AE5C74.txt
[8/74] Emitting module Starscream
[9/76] Compiling Starscream Transport.swift
[10/76] Compiling Starscream resource_bundle_accessor.swift
[11/76] Compiling TeslaSwift GenericResponse.swift
[12/76] Compiling TeslaSwift GuiSettings.swift
[13/76] Compiling TeslaSwift EnergySiteStatus.swift
[14/76] Compiling TeslaSwift ErrorMessage.swift
[15/76] Compiling TeslaSwift ChargeLimitPercentageCommandOptions.swift
[16/76] Compiling TeslaSwift ChargeState.swift
[17/76] Compiling TeslaSwift ClimateState.swift
[18/76] Compiling TeslaSwift Codable+JSONString.swift
[19/76] Compiling TeslaSwift CommandResponse.swift
[20/81] Compiling TeslaSwift Authentication.swift
[21/81] Compiling TeslaSwift BatteryData.swift
[25/81] Compiling TeslaSwift EnergySiteLiveStatus.swift
[31/81] Compiling TeslaSwift ValetCommandOptions.swift
[32/81] Compiling TeslaSwift Vehicle.swift
[33/81] Compiling TeslaSwift VehicleConfig.swift
[36/81] Compiling TeslaSwift Partner.swift
[37/81] Compiling TeslaSwift Product.swift
[38/81] Compiling TeslaSwift Region.swift
[39/81] Compiling TeslaSwift RemoteSeatHeaterRequestOptions.swift
[40/81] Compiling TeslaSwift RemoteStartDriveCommandOptions.swift
[41/81] Compiling TeslaSwift HomeLinkCommandOptions.swift
[42/81] Compiling TeslaSwift MaxDefrostCommandOptions.swift
[43/81] Compiling TeslaSwift Me.swift
[44/81] Compiling TeslaSwift NearbyChargingSites.swift
[45/81] Compiling TeslaSwift OpenTrunkOptions.swift
[46/81] Compiling TeslaSwift RemoteSteeringWheelHeaterRequestOptions.swift
[47/81] Compiling TeslaSwift ScheduledChargingCommandOptions.swift
[48/81] Compiling TeslaSwift ScheduledDepartureCommandOptions.swift
[49/81] Compiling TeslaSwift SentryModeCommandOptions.swift
[50/81] Compiling TeslaSwift SetSunRoofCommandOptions.swift
[51/81] Compiling TeslaSwift SetTemperatureCommandOptions.swift
[52/81] Compiling TeslaSwift ShareToVehicleOptions.swift
[53/81] Compiling TeslaSwift SoftwareUpdate.swift
[54/81] Compiling TeslaSwift Speed.swift
[55/81] Compiling TeslaSwift SpeedLimitOptions.swift
[56/81] Compiling TeslaSwift Distance.swift
[57/81] Compiling TeslaSwift DriveState.swift
[58/81] Compiling TeslaSwift EnergySite.swift
[59/81] Compiling TeslaSwift EnergySiteHistory.swift
[60/81] Compiling TeslaSwift EnergySiteInfo.swift
[63/81] Compiling TeslaSwift ChargeAmpsCommandOptions.swift
[64/81] Compiling TeslaSwift ChargeHistory.swift
[68/81] Compiling TeslaSwift BatteryPowerHistory.swift
[69/81] Compiling TeslaSwift BatteryStatus.swift
[70/81] Emitting module TeslaSwift
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaEndpoint.swift:60:23: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | case vehicleDataCombo = "vehicle_data_combo"
59 |
60 | public static var all: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .driveState, .guiSettings, .vehicleConfig, .vehicleState]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' 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
61 | public static var allWithLocation: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .locationData, .guiSettings, .vehicleConfig, .vehicleState]
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaEndpoint.swift:61:23: warning: static property 'allWithLocation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | public static var all: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .driveState, .guiSettings, .vehicleConfig, .vehicleState]
61 | public static var allWithLocation: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .locationData, .guiSettings, .vehicleConfig, .vehicleState]
| |- warning: static property 'allWithLocation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allWithLocation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allWithLocation' 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
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaSwift.swift:44:27: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | case energyCmds = "energy_cmds"
43 |
44 | public static var all: [Scope] = [.openId, .offlineAccess, .userData, .vehicleDeviceData, .vehicleCmds, .vehicleChargingCmds, .energyDeviceData, .energyCmds]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' 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
45 | }
46 |
[77/81] Compiling TeslaSwift WindowControlCommandOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaEndpoint.swift:60:23: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | case vehicleDataCombo = "vehicle_data_combo"
59 |
60 | public static var all: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .driveState, .guiSettings, .vehicleConfig, .vehicleState]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' 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
61 | public static var allWithLocation: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .locationData, .guiSettings, .vehicleConfig, .vehicleState]
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaEndpoint.swift:61:23: warning: static property 'allWithLocation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | public static var all: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .driveState, .guiSettings, .vehicleConfig, .vehicleState]
61 | public static var allWithLocation: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .locationData, .guiSettings, .vehicleConfig, .vehicleState]
| |- warning: static property 'allWithLocation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allWithLocation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allWithLocation' 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
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaSwift.swift:44:27: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | case energyCmds = "energy_cmds"
43 |
44 | public static var all: [Scope] = [.openId, .offlineAccess, .userData, .vehicleDeviceData, .vehicleCmds, .vehicleChargingCmds, .energyDeviceData, .energyCmds]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' 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
45 | }
46 |
[78/81] Compiling TeslaSwift TeslaEndpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaEndpoint.swift:60:23: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | case vehicleDataCombo = "vehicle_data_combo"
59 |
60 | public static var all: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .driveState, .guiSettings, .vehicleConfig, .vehicleState]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' 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
61 | public static var allWithLocation: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .locationData, .guiSettings, .vehicleConfig, .vehicleState]
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaEndpoint.swift:61:23: warning: static property 'allWithLocation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | public static var all: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .driveState, .guiSettings, .vehicleConfig, .vehicleState]
61 | public static var allWithLocation: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .locationData, .guiSettings, .vehicleConfig, .vehicleState]
| |- warning: static property 'allWithLocation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allWithLocation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allWithLocation' 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
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaSwift.swift:44:27: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | case energyCmds = "energy_cmds"
43 |
44 | public static var all: [Scope] = [.openId, .offlineAccess, .userData, .vehicleDeviceData, .vehicleCmds, .vehicleChargingCmds, .energyDeviceData, .energyCmds]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' 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
45 | }
46 |
[79/81] Compiling TeslaSwift TeslaSwift.swift
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaEndpoint.swift:60:23: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | case vehicleDataCombo = "vehicle_data_combo"
59 |
60 | public static var all: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .driveState, .guiSettings, .vehicleConfig, .vehicleState]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' 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
61 | public static var allWithLocation: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .locationData, .guiSettings, .vehicleConfig, .vehicleState]
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaEndpoint.swift:61:23: warning: static property 'allWithLocation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | public static var all: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .driveState, .guiSettings, .vehicleConfig, .vehicleState]
61 | public static var allWithLocation: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .locationData, .guiSettings, .vehicleConfig, .vehicleState]
| |- warning: static property 'allWithLocation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allWithLocation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allWithLocation' 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
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaSwift.swift:44:27: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | case energyCmds = "energy_cmds"
43 |
44 | public static var all: [Scope] = [.openId, .offlineAccess, .userData, .vehicleDeviceData, .vehicleCmds, .vehicleChargingCmds, .energyDeviceData, .energyCmds]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' 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
45 | }
46 |
[80/81] Compiling TeslaSwift TeslaWebLoginViewContoller.swift
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaEndpoint.swift:60:23: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | case vehicleDataCombo = "vehicle_data_combo"
59 |
60 | public static var all: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .driveState, .guiSettings, .vehicleConfig, .vehicleState]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' 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
61 | public static var allWithLocation: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .locationData, .guiSettings, .vehicleConfig, .vehicleState]
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaEndpoint.swift:61:23: warning: static property 'allWithLocation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | public static var all: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .driveState, .guiSettings, .vehicleConfig, .vehicleState]
61 | public static var allWithLocation: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .locationData, .guiSettings, .vehicleConfig, .vehicleState]
| |- warning: static property 'allWithLocation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allWithLocation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allWithLocation' 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
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaSwift.swift:44:27: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | case energyCmds = "energy_cmds"
43 |
44 | public static var all: [Scope] = [.openId, .offlineAccess, .userData, .vehicleDeviceData, .vehicleCmds, .vehicleChargingCmds, .energyDeviceData, .energyCmds]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' 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
45 | }
46 |
[81/81] Compiling TeslaSwift VehicleCommands.swift
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaEndpoint.swift:60:23: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 | case vehicleDataCombo = "vehicle_data_combo"
59 |
60 | public static var all: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .driveState, .guiSettings, .vehicleConfig, .vehicleState]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' 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
61 | public static var allWithLocation: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .locationData, .guiSettings, .vehicleConfig, .vehicleState]
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaEndpoint.swift:61:23: warning: static property 'allWithLocation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 |
60 | public static var all: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .driveState, .guiSettings, .vehicleConfig, .vehicleState]
61 | public static var allWithLocation: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .locationData, .guiSettings, .vehicleConfig, .vehicleState]
| |- warning: static property 'allWithLocation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allWithLocation' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allWithLocation' 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
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaSwift.swift:44:27: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 | case energyCmds = "energy_cmds"
43 |
44 | public static var all: [Scope] = [.openId, .offlineAccess, .userData, .vehicleDeviceData, .vehicleCmds, .vehicleChargingCmds, .energyDeviceData, .energyCmds]
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' 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
45 | }
46 |
[82/87] Emitting module TeslaSwiftCombine
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:66:101: warning: reference to static property 'allWithLocation' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public func getAllData(_ vehicle: Vehicle, endpoints: [AllStatesEndpoints] = AllStatesEndpoints.allWithLocation) -> Future<VehicleExtended, Error> {
| `- warning: reference to static property 'allWithLocation' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
67 | Future { promise in
68 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaEndpoint.swift:61:23: note: static property declared here
59 |
60 | public static var all: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .driveState, .guiSettings, .vehicleConfig, .vehicleState]
61 | public static var allWithLocation: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .locationData, .guiSettings, .vehicleConfig, .vehicleState]
| `- note: static property declared here
62 | }
63 |
[83/87] Compiling TeslaSwiftCombine TeslaSwift+Combine.swift
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:66:101: warning: reference to static property 'allWithLocation' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public func getAllData(_ vehicle: Vehicle, endpoints: [AllStatesEndpoints] = AllStatesEndpoints.allWithLocation) -> Future<VehicleExtended, Error> {
| `- warning: reference to static property 'allWithLocation' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
67 | Future { promise in
68 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/TeslaSwift/TeslaEndpoint.swift:61:23: note: static property declared here
59 |
60 | public static var all: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .driveState, .guiSettings, .vehicleConfig, .vehicleState]
61 | public static var allWithLocation: [AllStatesEndpoints] = [.chargeState, .climateState, .closuresState, .locationData, .guiSettings, .vehicleConfig, .vehicleState]
| `- note: static property declared here
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:16:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
14 | public func revokeToken() -> Future<Bool, Error> {
15 | Future { promise in
16 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
17 | do {
18 | let result = try await self.revokeToken()
| `- note: closure captures 'self' which is accessible to code in the current task
19 | promise(.success(result))
20 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:29:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
27 | public func getVehicles() -> Future<[Vehicle], Error> {
28 | Future { promise in
29 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
30 | do {
31 | let result = try await self.getVehicles()
| `- note: closure captures 'self' which is accessible to code in the current task
32 | promise(.success(result))
33 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:42:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
40 | public func getVehicle(_ vehicleID: VehicleId) -> Future<Vehicle, Error> {
41 | Future { promise in
42 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
43 | do {
44 | let result = try await self.getVehicle(vehicleID)
| `- note: closure captures 'vehicleID' which is accessible to code in the current task
45 | promise(.success(result))
46 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:55:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
53 | public func getVehicle(_ vehicle: Vehicle) -> Future<Vehicle, Error> {
54 | Future { promise in
55 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
56 | do {
57 | let result = try await self.getVehicle(vehicle)
| `- note: closure captures 'vehicle' which is accessible to code in the current task
58 | promise(.success(result))
59 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:68:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
66 | public func getAllData(_ vehicle: Vehicle, endpoints: [AllStatesEndpoints] = AllStatesEndpoints.allWithLocation) -> Future<VehicleExtended, Error> {
67 | Future { promise in
68 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
69 | do {
70 | let result = try await self.getAllData(vehicle, endpoints: endpoints)
| `- note: closure captures 'endpoints' which is accessible to code in the current task
71 | promise(.success(result))
72 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:81:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
79 | public func getVehicleMobileAccessState(_ vehicle: Vehicle) -> Future<Bool, Error> {
80 | Future { promise in
81 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
82 | do {
83 | let result = try await self.getVehicleMobileAccessState(vehicle)
| `- note: closure captures 'vehicle' which is accessible to code in the current task
84 | promise(.success(result))
85 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:94:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
92 | public func wakeUp(_ vehicle: Vehicle) -> Future<Vehicle, Error> {
93 | Future { promise in
94 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
95 | do {
96 | let result = try await self.wakeUp(vehicle)
| `- note: closure captures 'vehicle' which is accessible to code in the current task
97 | promise(.success(result))
98 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:107:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
105 | public func sendCommandToVehicle(_ vehicle: Vehicle, command: VehicleCommand) -> Future<CommandResponse, Error> {
106 | Future { promise in
107 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
108 | do {
109 | let result = try await self.sendCommandToVehicle(vehicle, command: command)
| | | `- note: closure captures non-Sendable 'command'
| | `- note: closure captures non-Sendable 'vehicle'
| `- note: closure captures non-Sendable 'self'
110 | promise(.success(result))
| `- note: closure captures non-Sendable 'promise'
111 | } catch let error {
112 | promise(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:120:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
118 | public func getNearbyChargingSite(vehicle: Vehicle) -> Future<NearbyChargingSites, Error> {
119 | Future { promise in
120 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
121 | do {
122 | let result = try await self.getNearbyChargingSites(vehicle)
| `- note: closure captures 'vehicle' which is accessible to code in the current task
123 | promise(.success(result))
124 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:133:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
131 | public func getProducts() -> Future<[Product], Error> {
132 | Future { promise in
133 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
134 | do {
135 | let result = try await self.getProducts()
| `- note: closure captures 'self' which is accessible to code in the current task
136 | promise(.success(result))
137 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:146:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
144 | public func getEnergySiteStatus(siteID: SiteId) -> Future<EnergySiteStatus, Error> {
145 | Future { promise in
146 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
147 | do {
148 | let result = try await self.getEnergySiteStatus(siteID: siteID)
| `- note: closure captures 'siteID' which is accessible to code in the current task
149 | promise(.success(result))
150 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:159:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
157 | public func getEnergySiteLiveStatus(siteID: SiteId) -> Future<EnergySiteLiveStatus, Error> {
158 | Future { promise in
159 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
160 | do {
161 | let result = try await self.getEnergySiteLiveStatus(siteID: siteID)
| `- note: closure captures 'siteID' which is accessible to code in the current task
162 | promise(.success(result))
163 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:172:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
170 | public func getEnergySiteInfo(siteID: SiteId) -> Future<EnergySiteInfo, Error> {
171 | Future { promise in
172 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
173 | do {
174 | let result = try await self.getEnergySiteInfo(siteID: siteID)
| `- note: closure captures 'siteID' which is accessible to code in the current task
175 | promise(.success(result))
176 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:184:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
182 | public func getEnergySiteHistory(siteID: SiteId, period: EnergySiteHistory.Period) -> Future<EnergySiteHistory, Error> {
183 | Future { promise in
184 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
185 | do {
186 | let result = try await self.getEnergySiteHistory(siteID: siteID, period: period)
| `- note: closure captures 'period' which is accessible to code in the current task
187 | promise(.success(result))
188 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:198:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
196 | public func getBatteryStatus(batteryID: BatteryId) -> Future<BatteryStatus, Error> {
197 | Future { promise in
198 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
199 | do {
200 | let result = try await self.getBatteryStatus(batteryID: batteryID)
| `- note: closure captures 'batteryID' which is accessible to code in the current task
201 | promise(.success(result))
202 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:211:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
209 | public func getBatteryData(batteryID: BatteryId) -> Future<BatteryData, Error> {
210 | Future { promise in
211 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
212 | do {
213 | let result = try await self.getBatteryData(batteryID: batteryID)
| `- note: closure captures 'batteryID' which is accessible to code in the current task
214 | promise(.success(result))
215 | } catch let error {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Combine/TeslaSwift+Combine.swift:224:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
222 | public func getBatteryPowerHistory(batteryID: BatteryId) -> Future<BatteryPowerHistory, Error> {
223 | Future { promise in
224 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
225 | do {
226 | let result = try await self.getBatteryPowerHistory(batteryID: batteryID)
| `- note: closure captures 'batteryID' which is accessible to code in the current task
227 | promise(.success(result))
228 | } catch let error {
[84/87] Compiling TeslaSwiftStreaming StreamEvent.swift
[85/87] Compiling TeslaSwiftStreaming StreamControl.swift
[86/87] Emitting module TeslaSwiftStreaming
[87/87] Compiling TeslaSwiftStreaming TeslaStreaming.swift
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Streaming/TeslaStreaming.swift:137:21: warning: capture of 'dataReceived' with non-sendable type '(TeslaStreamingEvent) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 | case let .failure(error):
136 | //logDebug("Stream disconnected \(code):\(error)", debuggingEnabled: self.debuggingEnabled)
137 | dataReceived(TeslaStreamingEvent.error(NSError(domain: "TeslaStreamingError", code: Int(404), userInfo: ["error": error])))
| |- warning: capture of 'dataReceived' with non-sendable type '(TeslaStreamingEvent) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Streaming/TeslaStreaming.swift:71:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
69 | if reloadsVehicle {
70 | return AsyncThrowingStream { continuation in
71 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
72 | do {
73 | let freshVehicle = try await reloadVehicle(vehicle: vehicle)
| `- note: closure captures 'vehicle' which is accessible to code in the current task
74 | self.startStream(vehicle: freshVehicle, dataReceived: { data in
75 | continuation.yield(data)
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Streaming/TeslaStreaming.swift:75:42: warning: sending 'data' risks causing data races; this is an error in the Swift 6 language mode
73 | let freshVehicle = try await reloadVehicle(vehicle: vehicle)
74 | self.startStream(vehicle: freshVehicle, dataReceived: { data in
75 | continuation.yield(data)
| |- warning: sending 'data' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'data' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
76 | if data == .disconnected {
77 | continuation.finish()
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Streaming/TeslaStreaming.swift:88:34: warning: sending 'data' risks causing data races; this is an error in the Swift 6 language mode
86 | return AsyncThrowingStream { continuation in
87 | startStream(vehicle: vehicle, dataReceived: { data in
88 | continuation.yield(data)
| |- warning: sending 'data' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'data' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
89 | if data == .disconnected {
90 | continuation.finish()
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Streaming/TeslaStreaming.swift:190:102: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
188 | case let .error(error):
189 | DispatchQueue.main.async {
190 | Self.logDebug("Stream error:\(String(describing: error))", debuggingEnabled: self.debuggingEnabled)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
191 | dataReceived(TeslaStreamingEvent.error(NSError(domain: "TeslaStreamingError", code: 0, userInfo: ["error": error ?? ""])))
192 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/Streaming/TeslaStreaming.swift:191:25: warning: sending 'dataReceived' risks causing data races; this is an error in the Swift 6 language mode
189 | DispatchQueue.main.async {
190 | Self.logDebug("Stream error:\(String(describing: error))", debuggingEnabled: self.debuggingEnabled)
191 | dataReceived(TeslaStreamingEvent.error(NSError(domain: "TeslaStreamingError", code: 0, userInfo: ["error": error ?? ""])))
| |- warning: sending 'dataReceived' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'dataReceived' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
192 | }
193 | case let .viabilityChanged(viability):
error: emit-module command failed with exit code 1 (use -v to see invocation)
[88/89] Emitting module TeslaSwiftStreamingCombine
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/StreamingCombine/TeslaSwift+StreamingCombine.swift:13:11: error: cannot find type 'TeslaStreaming' in scope
11 | import TeslaSwift
12 |
13 | extension TeslaStreaming {
| `- error: cannot find type 'TeslaStreaming' in scope
14 | public func streamPublisher(vehicle: Vehicle) -> TeslaStreamingPublisher {
15 | return TeslaStreamingPublisher(vehicle: vehicle, stream: self)
[89/89] Compiling TeslaSwiftStreamingCombine TeslaSwift+StreamingCombine.swift
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/StreamingCombine/TeslaSwift+StreamingCombine.swift:13:11: error: cannot find type 'TeslaStreaming' in scope
11 | import TeslaSwift
12 |
13 | extension TeslaStreaming {
| `- error: cannot find type 'TeslaStreaming' in scope
14 | public func streamPublisher(vehicle: Vehicle) -> TeslaStreamingPublisher {
15 | return TeslaStreamingPublisher(vehicle: vehicle, stream: self)
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/StreamingCombine/TeslaSwift+StreamingCombine.swift:14:54: error: cannot find type 'TeslaStreamingPublisher' in scope
12 |
13 | extension TeslaStreaming {
14 | public func streamPublisher(vehicle: Vehicle) -> TeslaStreamingPublisher {
| `- error: cannot find type 'TeslaStreamingPublisher' in scope
15 | return TeslaStreamingPublisher(vehicle: vehicle, stream: self)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/StreamingCombine/TeslaSwift+StreamingCombine.swift:19:35: error: cannot find type 'TeslaStreamingEvent' in scope
17 |
18 | public struct TeslaStreamingPublisher: Publisher, Cancellable {
19 | public typealias Output = TeslaStreamingEvent
| `- error: cannot find type 'TeslaStreamingEvent' in scope
20 | public typealias Failure = Error
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/StreamingCombine/TeslaSwift+StreamingCombine.swift:23:21: error: cannot find type 'TeslaStreaming' in scope
21 |
22 | let vehicle: Vehicle
23 | let stream: TeslaStreaming
| `- error: cannot find type 'TeslaStreaming' in scope
24 |
25 | init(vehicle: Vehicle, stream: TeslaStreaming) {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/StreamingCombine/TeslaSwift+StreamingCombine.swift:25:40: error: cannot find type 'TeslaStreaming' in scope
23 | let stream: TeslaStreaming
24 |
25 | init(vehicle: Vehicle, stream: TeslaStreaming) {
| `- error: cannot find type 'TeslaStreaming' in scope
26 | self.vehicle = vehicle
27 | self.stream = stream
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/StreamingCombine/TeslaSwift+StreamingCombine.swift:30:68: error: cannot find type 'TeslaStreamingPublisher' in scope
28 | }
29 |
30 | public func receive<S>(subscriber: S) where S: Subscriber, TeslaStreamingPublisher.Failure == S.Failure, TeslaStreamingPublisher.Output == S.Input {
| `- error: cannot find type 'TeslaStreamingPublisher' in scope
31 |
32 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/Extensions/StreamingCombine/TeslaSwift+StreamingCombine.swift:30:114: error: cannot find type 'TeslaStreamingPublisher' in scope
28 | }
29 |
30 | public func receive<S>(subscriber: S) where S: Subscriber, TeslaStreamingPublisher.Failure == S.Failure, TeslaStreamingPublisher.Output == S.Input {
| `- error: cannot find type 'TeslaStreamingPublisher' in scope
31 |
32 | Task {
warning: 'starscream': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Starscream/Sources/Info.plist
BUILD FAILURE 6.0 macosSpm