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 ShitLib, reference main (67fe2b), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 13:44:48 UTC.

Swift 6 data race errors: 1

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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ShitLib/shitlib-swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ShitLib/shitlib-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 67fe2be Update README.md
Cloned https://github.com/ShitLib/shitlib-swift.git
Revision (git rev-parse @):
67fe2be77db80bdec513137b643c475582514d1b
SUCCESS checkout https://github.com/ShitLib/shitlib-swift.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": "shitlib-swift",
      "name": "ShitLib",
      "url": "https://github.com/ShitLib/shitlib-swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/shitlib-swift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/ShitLib/shitlib-swift.git
[5/452] Fetching shitlib-swift
Fetched https://github.com/ShitLib/shitlib-swift.git from cache (0.90s)
Creating working copy for https://github.com/ShitLib/shitlib-swift.git
Working copy of https://github.com/ShitLib/shitlib-swift.git resolved at main (67fe2be)
warning: '.resolve-product-dependencies': dependency 'shitlib-swift' 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/ShitLib/shitlib-swift.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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/4] Compiling ShitLib ShitLib.swift
/Users/admin/builder/spi-builder-workspace/Sources/ShitLib/ShitLib.swift:9:23: warning: static property 'osNull' is not concurrency-safe because non-'Sendable' type 'Any?' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | public enum OhShit {
 9 |     public static let osNull: Any? = nil
   |                       |- warning: static property 'osNull' is not concurrency-safe because non-'Sendable' type 'Any?' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'osNull' 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 let osEmpty = ""
11 |
[4/4] Emitting module ShitLib
/Users/admin/builder/spi-builder-workspace/Sources/ShitLib/ShitLib.swift:9:23: warning: static property 'osNull' is not concurrency-safe because non-'Sendable' type 'Any?' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | public enum OhShit {
 9 |     public static let osNull: Any? = nil
   |                       |- warning: static property 'osNull' is not concurrency-safe because non-'Sendable' type 'Any?' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'osNull' 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 let osEmpty = ""
11 |
Build complete! (1.65s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ShitLib",
  "name" : "ShitLib",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ShitLib",
      "targets" : [
        "ShitLib"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ShitLibTests",
      "module_type" : "SwiftTarget",
      "name" : "ShitLibTests",
      "path" : "Tests/ShitLibTests",
      "sources" : [
        "ShitLibTests.swift"
      ],
      "target_dependencies" : [
        "ShitLib"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ShitLib",
      "module_type" : "SwiftTarget",
      "name" : "ShitLib",
      "path" : "Sources/ShitLib",
      "product_memberships" : [
        "ShitLib"
      ],
      "sources" : [
        "ShitLib.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.