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 Francium, reference master (a0c25b), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 23:59:45 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/e-sites/Francium.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/e-sites/Francium
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at a0c25bc Swift 5.5
Cloned https://github.com/e-sites/Francium.git
Revision (git rev-parse @):
a0c25bc35a67f1067a93a44ff8984a4b83e7cf10
SUCCESS checkout https://github.com/e-sites/Francium.git at master
========================================
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": "francium",
      "name": "Francium",
      "url": "https://github.com/e-sites/Francium.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Francium",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/e-sites/Francium.git
[1/118] Fetching francium
Fetched https://github.com/e-sites/Francium.git from cache (0.66s)
Creating working copy for https://github.com/e-sites/Francium.git
Working copy of https://github.com/e-sites/Francium.git resolved at master (a0c25bc)
warning: '.resolve-product-dependencies': dependency 'francium' 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/e-sites/Francium.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/7] Compiling Francium IOObject.swift
[4/7] Compiling Francium File.swift
[5/7] Compiling Francium Error.swift
[6/7] Emitting module Francium
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Francium/IO/Dir.swift:16:5: warning: let 'system_glob' is not concurrency-safe because non-'Sendable' type '(UnsafePointer<CChar>?, Int32, (@convention(c) (UnsafePointer<CChar>?, Int32) -> Int32)?, UnsafeMutablePointer<glob_t>?) -> Int32' (aka '(Optional<UnsafePointer<Int8>>, Int32, Optional<@convention(c) (Optional<UnsafePointer<Int8>>, Int32) -> Int32>, Optional<UnsafeMutablePointer<glob_t>>) -> Int32') may have shared mutable state; this is an error in the Swift 6 language mode
 14 | import Darwin
 15 |
 16 | let system_glob = Darwin.glob
    |     |- warning: let 'system_glob' is not concurrency-safe because non-'Sendable' type '(UnsafePointer<CChar>?, Int32, (@convention(c) (UnsafePointer<CChar>?, Int32) -> Int32)?, UnsafeMutablePointer<glob_t>?) -> Int32' (aka '(Optional<UnsafePointer<Int8>>, Int32, Optional<@convention(c) (Optional<UnsafePointer<Int8>>, Int32) -> Int32>, Optional<UnsafeMutablePointer<glob_t>>) -> Int32') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate 'system_glob' 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 | #endif
 18 |
[7/7] Compiling Francium Dir.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/Francium/IO/Dir.swift:16:5: warning: let 'system_glob' is not concurrency-safe because non-'Sendable' type '(UnsafePointer<CChar>?, Int32, (@convention(c) (UnsafePointer<CChar>?, Int32) -> Int32)?, UnsafeMutablePointer<glob_t>?) -> Int32' (aka '(Optional<UnsafePointer<Int8>>, Int32, Optional<@convention(c) (Optional<UnsafePointer<Int8>>, Int32) -> Int32>, Optional<UnsafeMutablePointer<glob_t>>) -> Int32') may have shared mutable state; this is an error in the Swift 6 language mode
 14 | import Darwin
 15 |
 16 | let system_glob = Darwin.glob
    |     |- warning: let 'system_glob' is not concurrency-safe because non-'Sendable' type '(UnsafePointer<CChar>?, Int32, (@convention(c) (UnsafePointer<CChar>?, Int32) -> Int32)?, UnsafeMutablePointer<glob_t>?) -> Int32' (aka '(Optional<UnsafePointer<Int8>>, Int32, Optional<@convention(c) (Optional<UnsafePointer<Int8>>, Int32) -> Int32>, Optional<UnsafeMutablePointer<glob_t>>) -> Int32') may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate 'system_glob' 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 | #endif
 18 |
Build complete! (7.34s)
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Francium/Francium.xcodeproj': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Francium/README.md': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Francium/Sources/Info.plist': File not found.
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Francium",
  "name" : "Francium",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Francium",
      "targets" : [
        "Francium"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FranciumTests",
      "module_type" : "SwiftTarget",
      "name" : "FranciumTests",
      "path" : "Tests/FranciumTests",
      "sources" : [
        "FranciumTests.swift"
      ],
      "target_dependencies" : [
        "Francium"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Francium",
      "module_type" : "SwiftTarget",
      "name" : "Francium",
      "path" : "Sources/Francium",
      "product_memberships" : [
        "Francium"
      ],
      "sources" : [
        "Errors/Error.swift",
        "IO/Dir.swift",
        "IO/File.swift",
        "IO/IOObject.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Francium/Francium.xcodeproj': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Francium/Sources/Info.plist': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Francium/README.md': File not found.
Done.