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

Swift 6 data race errors: 0

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/itsliamdowd/SwiftTranslate.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/itsliamdowd/SwiftTranslate
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e232896 Update README.md
Cloned https://github.com/itsliamdowd/SwiftTranslate.git
Revision (git rev-parse @):
e23289625c201a975fe441be01c0faaa769805c2
SUCCESS checkout https://github.com/itsliamdowd/SwiftTranslate.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/itsliamdowd/SwiftTranslate.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/4] Compiling SwiftTranslate SwiftTranslate.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTranslate/SwiftTranslate.swift:42:21: warning: mutation of captured var 'translatedText' in concurrently-executing code; this is an error in the Swift 6 language mode
40 |                 if let json = try JSONSerialization.jsonObject(with: data, options: []) as? [String: Any],
41 |                    let translated = json["translatedText"] as? String {
42 |                     translatedText = translated
   |                     `- warning: mutation of captured var 'translatedText' in concurrently-executing code; this is an error in the Swift 6 language mode
43 |                 }
44 |             } catch {
[4/4] Emitting module SwiftTranslate
Build complete! (16.21s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftTranslate",
  "name" : "SwiftTranslate",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftTranslate",
      "targets" : [
        "SwiftTranslate"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftTranslateTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTranslateTests",
      "path" : "Tests/SwiftTranslateTests",
      "sources" : [
        "SwiftTranslateTests.swift"
      ],
      "target_dependencies" : [
        "SwiftTranslate"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftTranslate",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTranslate",
      "path" : "Sources/SwiftTranslate",
      "product_memberships" : [
        "SwiftTranslate"
      ],
      "sources" : [
        "SwiftTranslate.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.