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 1.0.0 (62f803), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 10:41:20 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: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/eligutovsky/SyntacticSugar
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 62f8037 main: build: version 1.0.0
Cloned https://github.com/eligutovsky/SyntacticSugar.git
Revision (git rev-parse @):
62f803786ad2acbb8d92c786eb74f7707c591248
SUCCESS checkout https://github.com/eligutovsky/SyntacticSugar.git at 1.0.0
========================================
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.66s)
Creating working copy for https://github.com/eligutovsky/SyntacticSugar.git
Working copy of https://github.com/eligutovsky/SyntacticSugar.git resolved at 1.0.0 (62f8037)
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 Unwrap.swift
[4/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: String = #function, line: Int = #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: String = #function, line: Int = #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: String = #function, line: Int = #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: String = #function, line: Int = #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: String = #function, line: Int = #line)
[5/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: String = #function, line: Int = #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: String = #function, line: Int = #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: String = #function, line: Int = #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: String = #function, line: Int = #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: String = #function, line: Int = #line)
[6/6] Compiling SyntacticSugar Cast.swift
Build complete! (7.07s)
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.8"
}
Done.