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 OSInfo 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/MarcoEidinger/OSInfo.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/MarcoEidinger/OSInfo
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 54fd667 detect name for visionOS correctly when using Xcode 15 Beta 6+
Cloned https://github.com/MarcoEidinger/OSInfo.git
Revision (git rev-parse @):
54fd6673923ef5966268918152235b0e15ed057c
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/MarcoEidinger/OSInfo.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/MarcoEidinger/OSInfo.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] Compiling OSInfo OperatingSystemVersion+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/OSInfo/OperatingSystemVersion+Extensions.swift:3:1: warning: extension declares a conformance of imported type 'OperatingSystemVersion' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 1 | import Foundation
 2 |
 3 | extension OperatingSystemVersion: CustomStringConvertible {
   | |- warning: extension declares a conformance of imported type 'OperatingSystemVersion' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 4 |     /// SemVer string (format of "*major*.*minor*.*patch*")
 5 |     ///
[4/5] Emitting module OSInfo
/Users/admin/builder/spi-builder-workspace/Sources/OSInfo/OS.swift:16:23: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'OS' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | /// A unified, cross-platform API to  determine OS name and version on which the app is running
 12 | public struct OS {
    |               `- note: consider making struct 'OS' conform to the 'Sendable' protocol
 13 |     // MARK: public variables
 14 |
 15 |     /// Singleton that will return the underlying macOS version / name for a running Mac Catalyst / Mac Designed for iPad application
 16 |     public static let current = OS(underlyingMacOS: true)
    |                       |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'OS' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'current' 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
 17 |
 18 |     public private(set) var underlyingMacOS: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/OSInfo/OperatingSystemVersion+Extensions.swift:3:1: warning: extension declares a conformance of imported type 'OperatingSystemVersion' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 1 | import Foundation
 2 |
 3 | extension OperatingSystemVersion: CustomStringConvertible {
   | |- warning: extension declares a conformance of imported type 'OperatingSystemVersion' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 4 |     /// SemVer string (format of "*major*.*minor*.*patch*")
 5 |     ///
[5/5] Compiling OSInfo OS.swift
/Users/admin/builder/spi-builder-workspace/Sources/OSInfo/OS.swift:16:23: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'OS' may have shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | /// A unified, cross-platform API to  determine OS name and version on which the app is running
 12 | public struct OS {
    |               `- note: consider making struct 'OS' conform to the 'Sendable' protocol
 13 |     // MARK: public variables
 14 |
 15 |     /// Singleton that will return the underlying macOS version / name for a running Mac Catalyst / Mac Designed for iPad application
 16 |     public static let current = OS(underlyingMacOS: true)
    |                       |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'OS' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'current' 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
 17 |
 18 |     public private(set) var underlyingMacOS: Bool = false
Build complete! (16.61s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OSInfo",
  "name" : "OSInfo",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "OSInfo",
      "targets" : [
        "OSInfo"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OSInfoTests",
      "module_type" : "SwiftTarget",
      "name" : "OSInfoTests",
      "path" : "Tests/OSInfoTests",
      "sources" : [
        "OSTests.swift"
      ],
      "target_dependencies" : [
        "OSInfo"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OSInfo",
      "module_type" : "SwiftTarget",
      "name" : "OSInfo",
      "path" : "Sources/OSInfo",
      "product_memberships" : [
        "OSInfo"
      ],
      "sources" : [
        "OS.swift",
        "OperatingSystemVersion+Extensions.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.