This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/eligutovsky/SyntacticSugar.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.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: 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 Cast.swift
[6/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)
Build complete! (16.99s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.