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 o, reference main (2c8dc2), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 01:37:18 UTC.

Swift 6 data race errors: 2

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xOpenBytes/o.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/0xOpenBytes/o
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2c8dc28 Remove tvOS Notifications (#9)
Cloned https://github.com/0xOpenBytes/o.git
Revision (git rev-parse @):
2c8dc280528428f684f250f88dbc513f4c65504e
SUCCESS checkout https://github.com/0xOpenBytes/o.git at main
========================================
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": "o",
      "name": "o",
      "url": "https://github.com/0xOpenBytes/o.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/o",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/0xOpenBytes/o.git
[1/248] Fetching o
Fetched https://github.com/0xOpenBytes/o.git from cache (0.72s)
Creating working copy for https://github.com/0xOpenBytes/o.git
Working copy of https://github.com/0xOpenBytes/o.git resolved at main (2c8dc28)
warning: '.resolve-product-dependencies': dependency 'o' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/0xOpenBytes/o.git
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/13] Compiling o NotificationPost.swift
/Users/admin/builder/spi-builder-workspace/Sources/o/Notifications/o+notification.swift:9:27: warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |         public class DefaultNotificationCenterDelegate: NSObject, UNUserNotificationCenterDelegate { }
 8 |
 9 |         public static var center: UNUserNotificationCenter = UNUserNotificationCenter.current()
   |                           |- warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'center' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'center' 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
10 |         public static var delegate: UNUserNotificationCenterDelegate = DefaultNotificationCenterDelegate()
11 |     }
[4/14] Compiling o NotificationDelete.swift
/Users/admin/builder/spi-builder-workspace/Sources/o/Notifications/o+notification.swift:9:27: warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |         public class DefaultNotificationCenterDelegate: NSObject, UNUserNotificationCenterDelegate { }
 8 |
 9 |         public static var center: UNUserNotificationCenter = UNUserNotificationCenter.current()
   |                           |- warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'center' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'center' 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
10 |         public static var delegate: UNUserNotificationCenterDelegate = DefaultNotificationCenterDelegate()
11 |     }
[5/14] Compiling o NotificationDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/o/Notifications/o+notification.swift:9:27: warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |         public class DefaultNotificationCenterDelegate: NSObject, UNUserNotificationCenterDelegate { }
 8 |
 9 |         public static var center: UNUserNotificationCenter = UNUserNotificationCenter.current()
   |                           |- warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'center' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'center' 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
10 |         public static var delegate: UNUserNotificationCenterDelegate = DefaultNotificationCenterDelegate()
11 |     }
/Users/admin/builder/spi-builder-workspace/Sources/o/Notifications/o+notification.swift:10:27: warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 |         public static var center: UNUserNotificationCenter = UNUserNotificationCenter.current()
10 |         public static var delegate: UNUserNotificationCenterDelegate = DefaultNotificationCenterDelegate()
   |                           |- warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'delegate' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'delegate' 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
11 |     }
12 | }
[6/14] Compiling o o+notification.swift
/Users/admin/builder/spi-builder-workspace/Sources/o/Notifications/o+notification.swift:9:27: warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |         public class DefaultNotificationCenterDelegate: NSObject, UNUserNotificationCenterDelegate { }
 8 |
 9 |         public static var center: UNUserNotificationCenter = UNUserNotificationCenter.current()
   |                           |- warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'center' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'center' 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
10 |         public static var delegate: UNUserNotificationCenterDelegate = DefaultNotificationCenterDelegate()
11 |     }
/Users/admin/builder/spi-builder-workspace/Sources/o/Notifications/o+notification.swift:10:27: warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 |         public static var center: UNUserNotificationCenter = UNUserNotificationCenter.current()
10 |         public static var delegate: UNUserNotificationCenterDelegate = DefaultNotificationCenterDelegate()
   |                           |- warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'delegate' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'delegate' 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
11 |     }
12 | }
[7/14] Compiling o NotificationUpdate.swift
[8/14] Compiling o o.swift
[9/14] Compiling o NotificationGet.swift
/Users/admin/builder/spi-builder-workspace/Sources/o/Notifications/o+notification.swift:9:27: warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |         public class DefaultNotificationCenterDelegate: NSObject, UNUserNotificationCenterDelegate { }
 8 |
 9 |         public static var center: UNUserNotificationCenter = UNUserNotificationCenter.current()
   |                           |- warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'center' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'center' 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
10 |         public static var delegate: UNUserNotificationCenterDelegate = DefaultNotificationCenterDelegate()
11 |     }
[10/14] Compiling o o+url.swift
[11/14] Emitting module o
/Users/admin/builder/spi-builder-workspace/Sources/o/Notifications/o+notification.swift:9:27: warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |         public class DefaultNotificationCenterDelegate: NSObject, UNUserNotificationCenterDelegate { }
 8 |
 9 |         public static var center: UNUserNotificationCenter = UNUserNotificationCenter.current()
   |                           |- warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'center' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'center' 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
10 |         public static var delegate: UNUserNotificationCenterDelegate = DefaultNotificationCenterDelegate()
11 |     }
/Users/admin/builder/spi-builder-workspace/Sources/o/Notifications/o+notification.swift:10:27: warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 |         public static var center: UNUserNotificationCenter = UNUserNotificationCenter.current()
10 |         public static var delegate: UNUserNotificationCenterDelegate = DefaultNotificationCenterDelegate()
   |                           |- warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'delegate' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'delegate' 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
11 |     }
12 | }
[12/14] Compiling o NotificationAuthorization.swift
/Users/admin/builder/spi-builder-workspace/Sources/o/Notifications/o+notification.swift:9:27: warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |         public class DefaultNotificationCenterDelegate: NSObject, UNUserNotificationCenterDelegate { }
 8 |
 9 |         public static var center: UNUserNotificationCenter = UNUserNotificationCenter.current()
   |                           |- warning: static property 'center' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'center' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'center' 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
10 |         public static var delegate: UNUserNotificationCenterDelegate = DefaultNotificationCenterDelegate()
11 |     }
[13/14] Compiling o o+console.swift
[14/14] Compiling o o+file.swift
Build complete! (10.35s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "o",
  "name" : "o",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "o",
      "targets" : [
        "o"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "oTests",
      "module_type" : "SwiftTarget",
      "name" : "oTests",
      "path" : "Tests/oTests",
      "sources" : [
        "oTests.swift"
      ],
      "target_dependencies" : [
        "o"
      ],
      "type" : "test"
    },
    {
      "c99name" : "o",
      "module_type" : "SwiftTarget",
      "name" : "o",
      "path" : "Sources/o",
      "product_memberships" : [
        "o"
      ],
      "sources" : [
        "Console/o+console.swift",
        "File/o+file.swift",
        "Notifications/NotificationAuthorization.swift",
        "Notifications/NotificationDelegate.swift",
        "Notifications/NotificationDelete.swift",
        "Notifications/NotificationGet.swift",
        "Notifications/NotificationPost.swift",
        "Notifications/NotificationUpdate.swift",
        "Notifications/o+notification.swift",
        "URL/o+url.swift",
        "o.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.