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 SyntacticSugar, reference main (2587cc), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 10:41:33 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/eligutovsky/SyntacticSugar.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/eligutovsky/SyntacticSugar
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2587cc1 Update issue templates
Cloned https://github.com/eligutovsky/SyntacticSugar.git
Revision (git rev-parse @):
2587cc1cd457f9abfbd5dd2f9066f74c2f034fb4
SUCCESS checkout https://github.com/eligutovsky/SyntacticSugar.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": "syntacticsugar",
      "name": "SyntacticSugar",
      "url": "https://github.com/eligutovsky/SyntacticSugar.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SyntacticSugar",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/eligutovsky/SyntacticSugar.git
[1/132] Fetching syntacticsugar
Fetched https://github.com/eligutovsky/SyntacticSugar.git from cache (0.67s)
Creating working copy for https://github.com/eligutovsky/SyntacticSugar.git
Working copy of https://github.com/eligutovsky/SyntacticSugar.git resolved at main (2587cc1)
warning: '.resolve-product-dependencies': dependency 'syntacticsugar' 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/eligutovsky/SyntacticSugar.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/6] Compiling SyntacticSugar Cast.swift
[4/6] Compiling SyntacticSugar SugarError.swift
/Users/admin/builder/spi-builder-workspace/Sources/SugarError.swift:10:10: warning: associated value 'failedToUnwrap(value:expectedType:function:line:)' of 'Sendable'-conforming enum 'SugarError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 8 | public enum SugarError: LocalizedError {
 9 |     /// An error thrown when a value can't be unwrapped to a generic type.
10 |     case failedToUnwrap(value: Any?, expectedType: Any.Type, function: StaticString = #function, line: UInt = #line)
   |          `- warning: associated value 'failedToUnwrap(value:expectedType:function:line:)' of 'Sendable'-conforming enum 'SugarError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
11 |     /// An error thrown when a value can't be casted to a generic type.
12 |     case unableCast(value: Any, expectedType: Any.Type, function: StaticString = #function, line: UInt = #line)
/Users/admin/builder/spi-builder-workspace/Sources/SugarError.swift:12:10: warning: associated value 'unableCast(value:expectedType:function:line:)' of 'Sendable'-conforming enum 'SugarError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
10 |     case failedToUnwrap(value: Any?, expectedType: Any.Type, function: StaticString = #function, line: UInt = #line)
11 |     /// An error thrown when a value can't be casted to a generic type.
12 |     case unableCast(value: Any, expectedType: Any.Type, function: StaticString = #function, line: UInt = #line)
   |          `- warning: associated value 'unableCast(value:expectedType:function:line:)' of 'Sendable'-conforming enum 'SugarError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
13 |     /// An custom error thrown when a value can't pass a guard statement.
14 |     case custom(String, function: StaticString = #function, line: UInt = #line)
[5/6] Compiling SyntacticSugar Unwrap.swift
[6/6] Emitting module SyntacticSugar
/Users/admin/builder/spi-builder-workspace/Sources/SugarError.swift:10:10: warning: associated value 'failedToUnwrap(value:expectedType:function:line:)' of 'Sendable'-conforming enum 'SugarError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
 8 | public enum SugarError: LocalizedError {
 9 |     /// An error thrown when a value can't be unwrapped to a generic type.
10 |     case failedToUnwrap(value: Any?, expectedType: Any.Type, function: StaticString = #function, line: UInt = #line)
   |          `- warning: associated value 'failedToUnwrap(value:expectedType:function:line:)' of 'Sendable'-conforming enum 'SugarError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
11 |     /// An error thrown when a value can't be casted to a generic type.
12 |     case unableCast(value: Any, expectedType: Any.Type, function: StaticString = #function, line: UInt = #line)
/Users/admin/builder/spi-builder-workspace/Sources/SugarError.swift:12:10: warning: associated value 'unableCast(value:expectedType:function:line:)' of 'Sendable'-conforming enum 'SugarError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
10 |     case failedToUnwrap(value: Any?, expectedType: Any.Type, function: StaticString = #function, line: UInt = #line)
11 |     /// An error thrown when a value can't be casted to a generic type.
12 |     case unableCast(value: Any, expectedType: Any.Type, function: StaticString = #function, line: UInt = #line)
   |          `- warning: associated value 'unableCast(value:expectedType:function:line:)' of 'Sendable'-conforming enum 'SugarError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
13 |     /// An custom error thrown when a value can't pass a guard statement.
14 |     case custom(String, function: StaticString = #function, line: UInt = #line)
Build complete! (6.00s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SyntacticSugar",
  "name" : "SyntacticSugar",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SyntacticSugar",
      "targets" : [
        "SyntacticSugar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SyntacticSugarTests",
      "module_type" : "SwiftTarget",
      "name" : "SyntacticSugarTests",
      "path" : "Tests",
      "sources" : [
        "CastTests.swift",
        "Fixture.swift",
        "UnwrapTests.swift"
      ],
      "target_dependencies" : [
        "SyntacticSugar"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SyntacticSugar",
      "module_type" : "SwiftTarget",
      "name" : "SyntacticSugar",
      "path" : "Sources",
      "product_memberships" : [
        "SyntacticSugar"
      ],
      "sources" : [
        "Cast.swift",
        "SugarError.swift",
        "Unwrap.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.