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 swift-version-compare, reference 2.0.3 (8d36d2), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 06:12:52 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 --target VersionCompare -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/mflknr/swift-version-compare.git
Reference: 2.0.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mflknr/swift-version-compare
 * tag               2.0.3      -> FETCH_HEAD
HEAD is now at 8d36d25 update: lint tools and format correctly
Cloned https://github.com/mflknr/swift-version-compare.git
Revision (git rev-parse @):
8d36d25a6c3299f5df81665e18a7025cadec9f80
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mflknr/swift-version-compare.git at 2.0.3
========================================
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": "swift-version-compare",
      "name": "swift-version-compare",
      "url": "https://github.com/mflknr/swift-version-compare.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-version-compare",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/mflknr/swift-version-compare.git
[1/2242] Fetching swift-version-compare
Fetched https://github.com/mflknr/swift-version-compare.git from cache (1.23s)
Creating working copy for https://github.com/mflknr/swift-version-compare.git
Working copy of https://github.com/mflknr/swift-version-compare.git resolved at 2.0.3 (8d36d25)
warning: '.resolve-product-dependencies': dependency 'swift-version-compare' 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/mflknr/swift-version-compare.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 --target VersionCompare -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Copying PrivacyInfo.xcprivacy
[1/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/21] Compiling VersionCompare Version.swift
/Users/admin/builder/spi-builder-workspace/Sources/Version.swift:219:16: warning: static property 'initial' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
217 | public extension Version {
218 |     /// An initial ``Version`` representing the string `0.0.0`.
219 |     static var initial: Version = .init(major: 0, minor: 0, patch: 0)
    |                |- warning: static property 'initial' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'initial' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'initial' 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
220 | }
221 |
[5/22] Compiling VersionCompare resource_bundle_accessor.swift
[6/22] Compiling VersionCompare Version+OS.swift
[7/22] Compiling VersionCompare Version+StringInitializer.swift
[8/22] Compiling VersionCompare PrereleaseIdentifier.swift
[9/22] Compiling VersionCompare SemanticVersionComparable+Comparable.swift
[10/22] Compiling VersionCompare PrereleaseIdentifier+Equatable.swift
[11/22] Compiling VersionCompare PrereleaseIdentifier+ExpressibleByLiteral.swift
[12/22] Compiling VersionCompare SemanticVersionComparable+Equatable.swift
[13/22] Compiling VersionCompare SemanticVersionComparable+Hashable.swift
[14/22] Compiling VersionCompare BuildMetaData+ExpressibleByLiteral.swift
[15/22] Compiling VersionCompare BuildMetaData.swift
[16/22] Emitting module VersionCompare
/Users/admin/builder/spi-builder-workspace/Sources/Version.swift:219:16: warning: static property 'initial' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
217 | public extension Version {
218 |     /// An initial ``Version`` representing the string `0.0.0`.
219 |     static var initial: Version = .init(major: 0, minor: 0, patch: 0)
    |                |- warning: static property 'initial' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'initial' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'initial' 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
220 | }
221 |
[17/22] Compiling VersionCompare VersionCompareResult.swift
[18/22] Compiling VersionCompare VersionValidationError.swift
[19/22] Compiling VersionCompare Character+Extensions.swift
[20/22] Compiling VersionCompare String+Regex.swift
[21/22] Compiling VersionCompare SemanticVersionComparable.swift
[22/22] Compiling VersionCompare Version+Bundle.swift
Build of target: 'VersionCompare' complete! (11.55s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-version-compare",
  "name" : "swift-version-compare",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "VersionCompare",
      "targets" : [
        "VersionCompare"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "VersionCompareTests",
      "module_type" : "SwiftTarget",
      "name" : "VersionCompareTests",
      "path" : "Tests/VersionCompareTests",
      "sources" : [
        "SemanticVersionComparableTests.swift",
        "VersionTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "VersionCompare"
      ],
      "type" : "test"
    },
    {
      "c99name" : "VersionCompare",
      "module_type" : "SwiftTarget",
      "name" : "VersionCompare",
      "path" : "Sources",
      "product_memberships" : [
        "VersionCompare"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Resources/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Helper/Character+Extensions.swift",
        "Helper/String+Regex.swift",
        "Helper/VersionCompareResult.swift",
        "Helper/VersionValidationError.swift",
        "SemanticVersionComparable/BuildMetaData/BuildMetaData+ExpressibleByLiteral.swift",
        "SemanticVersionComparable/BuildMetaData/BuildMetaData.swift",
        "SemanticVersionComparable/PrereleaseIdentifier/PrereleaseIdentifier+Equatable.swift",
        "SemanticVersionComparable/PrereleaseIdentifier/PrereleaseIdentifier+ExpressibleByLiteral.swift",
        "SemanticVersionComparable/PrereleaseIdentifier/PrereleaseIdentifier.swift",
        "SemanticVersionComparable/SemanticVersionComparable+Comparable.swift",
        "SemanticVersionComparable/SemanticVersionComparable+Equatable.swift",
        "SemanticVersionComparable/SemanticVersionComparable+Hashable.swift",
        "SemanticVersionComparable/SemanticVersionComparable.swift",
        "Version+Bundle.swift",
        "Version+OS.swift",
        "Version+StringInitializer.swift",
        "Version.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.