This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of OWOneCall with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/workingDog/OWOneCall.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/workingDog/OWOneCall
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 1ee37b6 update for OneCall 3.0
Cloned https://github.com/workingDog/OWOneCall.git
Revision (git rev-parse @):
1ee37b6478e71b24c41058b325da06ac45a74056
SUCCESS checkout https://github.com/workingDog/OWOneCall.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/workingDog/OWOneCall.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/7] Compiling OWOneCall OWOptions.swift
[4/7] Compiling OWOneCall OWResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWResponse.swift:150:23: warning: static property 'defaultIcon' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
148 |
149 |     /// the SFSymbol name to use as the default icon name
150 |     public static var defaultIcon = "questionmark"
    |                       |- warning: static property 'defaultIcon' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultIcon' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'defaultIcon' 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
151 |
152 |     enum CodingKeys: String, CodingKey {
[5/7] Emitting module OWOneCall
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWResponse.swift:150:23: warning: static property 'defaultIcon' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
148 |
149 |     /// the SFSymbol name to use as the default icon name
150 |     public static var defaultIcon = "questionmark"
    |                       |- warning: static property 'defaultIcon' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'defaultIcon' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'defaultIcon' 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
151 |
152 |     enum CodingKeys: String, CodingKey {
[6/7] Compiling OWOneCall OWClient.swift
[7/7] Compiling OWOneCall OWProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWProvider.swift:45:46: warning: capture of 'self' with non-sendable type 'OWProvider' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 |  * provide access to the OpenWeather One Call data using a single function call
13 |  */
14 | open class OWProvider {
   |            `- note: class 'OWProvider' does not conform to the 'Sendable' protocol
15 |
16 |     public let client: OWClient
   :
43 |     open func getWeather(lat: Double, lon: Double, options: OWOptionsProtocol, completion: @escaping (OWResponse?) -> Void) {
44 |         Task {
45 |             let results: OWResponse? = await getWeather(lat: lat, lon: lon, options: options)
   |                                              `- warning: capture of 'self' with non-sendable type 'OWProvider' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 |             DispatchQueue.main.async {
47 |                 completion(results)
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWProvider.swift:45:86: warning: capture of 'options' with non-sendable type 'any OWOptionsProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 |     open func getWeather(lat: Double, lon: Double, options: OWOptionsProtocol, completion: @escaping (OWResponse?) -> Void) {
44 |         Task {
45 |             let results: OWResponse? = await getWeather(lat: lat, lon: lon, options: options)
   |                                                                                      `- warning: capture of 'options' with non-sendable type 'any OWOptionsProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 |             DispatchQueue.main.async {
47 |                 completion(results)
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWOptions.swift:31:17: note: protocol 'OWOptionsProtocol' does not conform to the 'Sendable' protocol
 29 | }
 30 |
 31 | public protocol OWOptionsProtocol {
    |                 `- note: protocol 'OWOptionsProtocol' does not conform to the 'Sendable' protocol
 32 |     func toParamString() -> String
 33 | }
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWProvider.swift:47:17: warning: capture of 'completion' with non-sendable type '(OWResponse?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 |             let results: OWResponse? = await getWeather(lat: lat, lon: lon, options: options)
46 |             DispatchQueue.main.async {
47 |                 completion(results)
   |                 |- warning: capture of 'completion' with non-sendable type '(OWResponse?) -> 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'
48 |             }
49 |         }
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWProvider.swift:47:17: warning: capture of 'completion' with non-sendable type '(OWResponse?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 |             let results: OWResponse? = await getWeather(lat: lat, lon: lon, options: options)
46 |             DispatchQueue.main.async {
47 |                 completion(results)
   |                 |- warning: capture of 'completion' with non-sendable type '(OWResponse?) -> 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'
48 |             }
49 |         }
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWProvider.swift:47:28: warning: capture of 'results' with non-sendable type 'OWResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 |             let results: OWResponse? = await getWeather(lat: lat, lon: lon, options: options)
46 |             DispatchQueue.main.async {
47 |                 completion(results)
   |                            `- warning: capture of 'results' with non-sendable type 'OWResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 |             }
49 |         }
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWResponse.swift:11:15: note: consider making struct 'OWResponse' conform to the 'Sendable' protocol
  9 |
 10 | // MARK: - OWResponse
 11 | public struct OWResponse: Identifiable, Codable {
    |               `- note: consider making struct 'OWResponse' conform to the 'Sendable' protocol
 12 |     public let id = UUID()
 13 |
Build complete! (32.91s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OWOneCall",
  "name" : "OWOneCall",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "OWOneCall",
      "targets" : [
        "OWOneCall"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OWOneCallTests",
      "module_type" : "SwiftTarget",
      "name" : "OWOneCallTests",
      "path" : "Tests/OWOneCallTests",
      "sources" : [
        "OWOneCallTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "OWOneCall"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OWOneCall",
      "module_type" : "SwiftTarget",
      "name" : "OWOneCall",
      "path" : "Sources/OWOneCall",
      "product_memberships" : [
        "OWOneCall"
      ],
      "sources" : [
        "OWClient.swift",
        "OWOptions.swift",
        "OWProvider.swift",
        "OWResponse.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.