The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftWeather, reference 3.0.0 (827b5b), with Swift 6.2 for macOS (SPM) on 21 Jun 2025 16:17:54 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wadetregaskis/SwiftWeather.git
Reference: 3.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/wadetregaskis/SwiftWeather
 * tag               3.0.0      -> FETCH_HEAD
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 3.0.0
========================================
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 AmbientWeatherStationInfo.swift
[4/19] Compiling SwiftWeather Data+String.swift
[5/20] Compiling SwiftWeather WeatherSensor.swift
[6/20] Compiling SwiftWeather Wunderground.swift
[7/20] Compiling SwiftWeather WundergroundError.swift
[8/20] Compiling SwiftWeather WundergroundCurrentReport.swift
[9/20] Compiling SwiftWeather AmbientWeatherStationGeoType.swift
[10/20] Compiling SwiftWeather AmbientWeatherStationGeolocation.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/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>
[12/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>
[13/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 }
[14/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 }
[15/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 }
[16/20] Compiling SwiftWeather AmbientWeatherReport.swift
[17/20] Compiling SwiftWeather AmbientWeatherSensor.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