Build Information
Failed to build SwiftWeather, reference main (827b5b), with Swift 6.2 for macOS (SPM) on 21 Jun 2025 16:17:37 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wadetregaskis/SwiftWeather.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/wadetregaskis/SwiftWeather
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 827b5b3 Added "Unit" prefixes to the custom units, as it Foundation's convention.
Cloned https://github.com/wadetregaskis/SwiftWeather.git
Revision (git rev-parse @):
827b5b3dbd27c9362bc3517e28d668e9cf735180
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/wadetregaskis/SwiftWeather.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/wadetregaskis/SwiftWeather.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/19] Compiling SwiftWeather WeatherSensor.swift
[4/19] Compiling SwiftWeather Wunderground.swift
[5/20] Compiling SwiftWeather WundergroundError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/20] Compiling SwiftWeather AmbientWeather.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftWeather/AmbientWeather/AmbientWeatherDevice.swift:87:42: warning: sending 'report' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
85 |
86 | for report in reports {
87 | continuation.yield(report)
| |- warning: sending 'report' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| |- note: 'report' used after being passed as a 'sending' parameter; Later uses could race
| `- note: access can happen concurrently
88 |
89 | if Task.isCancelled {
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[7/20] Compiling SwiftWeather AmbientWeatherDevice.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftWeather/AmbientWeather/AmbientWeatherDevice.swift:87:42: warning: sending 'report' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
85 |
86 | for report in reports {
87 | continuation.yield(report)
| |- warning: sending 'report' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
| |- note: 'report' used after being passed as a 'sending' parameter; Later uses could race
| `- note: access can happen concurrently
88 |
89 | if Task.isCancelled {
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[8/20] Compiling SwiftWeather AmbientWeatherReport.swift
[9/20] Compiling SwiftWeather AmbientWeatherSensor.swift
[10/20] Emitting module SwiftWeather
/Users/admin/builder/spi-builder-workspace/Sources/SwiftWeather/WeatherErrors.swift:40:25: error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
1 | // Created by Wade Tregaskis on 28/8/2022.
2 |
3 | internal import Foundation
| `- note: protocol 'LocalizedError' imported as 'internal' from 'Foundation' here
4 |
5 | public enum WeatherError: Error, @unchecked Sendable {
:
38 | }
39 |
40 | extension WeatherError: LocalizedError {
| `- error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
41 | private static let localisedStringsTable = "WeatherErrors"
42 |
Foundation.LocalizedError:2:17: note: protocol declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public protocol LocalizedError : Error {
| `- note: protocol declared here
3 | var errorDescription: String? { get }
4 | var failureReason: String? { get }
[11/20] Compiling SwiftWeather SwiftWeather.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftWeather/WeatherErrors.swift:40:25: error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
1 | // Created by Wade Tregaskis on 28/8/2022.
2 |
3 | internal import Foundation
| `- note: protocol 'LocalizedError' imported as 'internal' from 'Foundation' here
4 |
5 | public enum WeatherError: Error, @unchecked Sendable {
:
38 | }
39 |
40 | extension WeatherError: LocalizedError {
| `- error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
41 | private static let localisedStringsTable = "WeatherErrors"
42 |
Foundation.LocalizedError:2:17: note: protocol declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public protocol LocalizedError : Error {
| `- note: protocol declared here
3 | var errorDescription: String? { get }
4 | var failureReason: String? { get }
[12/20] Compiling SwiftWeather WeatherErrors.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftWeather/WeatherErrors.swift:40:25: error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
1 | // Created by Wade Tregaskis on 28/8/2022.
2 |
3 | internal import Foundation
| `- note: protocol 'LocalizedError' imported as 'internal' from 'Foundation' here
4 |
5 | public enum WeatherError: Error, @unchecked Sendable {
:
38 | }
39 |
40 | extension WeatherError: LocalizedError {
| `- error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
41 | private static let localisedStringsTable = "WeatherErrors"
42 |
Foundation.LocalizedError:2:17: note: protocol declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public protocol LocalizedError : Error {
| `- note: protocol declared here
3 | var errorDescription: String? { get }
4 | var failureReason: String? { get }
[13/20] Compiling SwiftWeather AmbientWeatherStationInfo.swift
[14/20] Compiling SwiftWeather Data+String.swift
[15/20] Compiling SwiftWeather WundergroundCurrentReport.swift
[16/20] Compiling SwiftWeather AmbientWeatherStationGeoType.swift
[17/20] Compiling SwiftWeather AmbientWeatherStationGeolocation.swift
[18/20] Compiling SwiftWeather Unit+Custom.swift
[19/20] Compiling SwiftWeather Zip.swift
[20/20] Compiling SwiftWeather WundergroundDevice.swift
BUILD FAILURE 6.2 macosSpm