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 Ola with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 2

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/michaelnisi/ola.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/michaelnisi/ola
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 61379a0 Add changelog
Cloned https://github.com/michaelnisi/ola.git
Revision (git rev-parse @):
61379a00e4020b4e58241e972e9a1b0af8582232
SUCCESS checkout https://github.com/michaelnisi/ola.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/michaelnisi/ola.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/5] Emitting module Ola
/Users/admin/builder/spi-builder-workspace/Sources/Ola/NetworkActivityCounter.swift:20:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkActivityCounter' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import Combine
11 |
12 | public class NetworkActivityCounter {
   |              `- note: class 'NetworkActivityCounter' does not conform to the 'Sendable' protocol
13 |
14 |   private let subject = CurrentValueSubject<Int, Never>(0)
   :
18 |   // MARK: - API
19 |
20 |   public static let shared = NetworkActivityCounter()
   |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkActivityCounter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'shared' 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
21 |
22 |   public var isActive: AnyPublisher<Bool, Never>  {
/Users/admin/builder/spi-builder-workspace/Sources/Ola/Ola.swift:128:3: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
126 |   private var callback: ((OlaStatus) -> Void)?
127 |
128 |   private (set) var status = OlaStatus.unknown {
    |   `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
129 |     didSet {
130 |       guard status != oldValue else {
[4/5] Compiling Ola NetworkActivityCounter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ola/NetworkActivityCounter.swift:20:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkActivityCounter' may have shared mutable state; this is an error in the Swift 6 language mode
10 | import Combine
11 |
12 | public class NetworkActivityCounter {
   |              `- note: class 'NetworkActivityCounter' does not conform to the 'Sendable' protocol
13 |
14 |   private let subject = CurrentValueSubject<Int, Never>(0)
   :
18 |   // MARK: - API
19 |
20 |   public static let shared = NetworkActivityCounter()
   |                     |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NetworkActivityCounter' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'shared' 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
21 |
22 |   public var isActive: AnyPublisher<Bool, Never>  {
[5/5] Compiling Ola Ola.swift
/Users/admin/builder/spi-builder-workspace/Sources/Ola/Ola.swift:128:3: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
126 |   private var callback: ((OlaStatus) -> Void)?
127 |
128 |   private (set) var status = OlaStatus.unknown {
    |   `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
129 |     didSet {
130 |       guard status != oldValue else {
/Users/admin/builder/spi-builder-workspace/Sources/Ola/Ola.swift:119:26: warning: capture of 'self' with non-sendable type 'Ola?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 73 | }
 74 |
 75 | final public class Ola: Reaching {
    |                    `- note: class 'Ola' does not conform to the 'Sendable' protocol
 76 |
 77 |   private let host: String
    :
117 |   public func reach(statusBlock: @escaping (OlaStatus) -> Void) {
118 |     DispatchQueue.global(qos: .userInitiated).async { [weak self] in
119 |       guard let status = self?.reach() else {
    |                          `- warning: capture of 'self' with non-sendable type 'Ola?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 |         return statusBlock(.unknown)
121 |       }
/Users/admin/builder/spi-builder-workspace/Sources/Ola/Ola.swift:120:16: warning: capture of 'statusBlock' with non-sendable type '(OlaStatus) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 |     DispatchQueue.global(qos: .userInitiated).async { [weak self] in
119 |       guard let status = self?.reach() else {
120 |         return statusBlock(.unknown)
    |                |- warning: capture of 'statusBlock' with non-sendable type '(OlaStatus) -> 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'
121 |       }
122 |       statusBlock(status)
Build complete! (17.30s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Ola",
  "name" : "Ola",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "Ola",
      "targets" : [
        "Ola"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OlaTests",
      "module_type" : "SwiftTarget",
      "name" : "OlaTests",
      "path" : "Tests/OlaTests",
      "sources" : [
        "OlaTests.swift"
      ],
      "target_dependencies" : [
        "Ola"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Ola",
      "module_type" : "SwiftTarget",
      "name" : "Ola",
      "path" : "Sources/Ola",
      "product_memberships" : [
        "Ola"
      ],
      "sources" : [
        "NetworkActivityCounter.swift",
        "Ola.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.