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 SwiftEliza, reference 1.0.1 (f3f7be), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 06:06:16 UTC.

Swift 6 data race errors: 0

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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AlwaysRightInstitute/SwiftEliza.git
Reference: 1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AlwaysRightInstitute/SwiftEliza
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at f3f7be7 Swift 4.2: Port UIKit code
Cloned https://github.com/AlwaysRightInstitute/SwiftEliza.git
Revision (git rev-parse @):
f3f7be7eccae0e709acec2351c8c2b79e9e2bd61
SUCCESS checkout https://github.com/AlwaysRightInstitute/SwiftEliza.git at 1.0.1
========================================
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": "swifteliza",
      "name": "SwiftEliza",
      "url": "https://github.com/AlwaysRightInstitute/SwiftEliza.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftEliza",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/AlwaysRightInstitute/SwiftEliza.git
[1/159] Fetching swifteliza
Fetched https://github.com/AlwaysRightInstitute/SwiftEliza.git from cache (0.85s)
Creating working copy for https://github.com/AlwaysRightInstitute/SwiftEliza.git
Working copy of https://github.com/AlwaysRightInstitute/SwiftEliza.git resolved at 1.0.1 (f3f7be7)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/AlwaysRightInstitute/SwiftEliza.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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/7] Write sources
[2/7] Write therapist-entitlement.plist
[3/7] Write swift-version--7754E27361AE5C74.txt
[5/9] Emitting module Eliza
[6/9] Compiling Eliza Eliza.swift
[7/11] Compiling therapist main.swift
/Users/admin/builder/spi-builder-workspace/Sources/therapist/main.swift:26:7: warning: capture of 'self' with non-sendable type 'Therapist' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 | var buf = [ Int8 ](repeating: 0, count: 500)
13 |
14 | class Therapist {
   |       `- note: class 'Therapist' does not conform to the 'Sendable' protocol
15 |
16 |   let Q            : DispatchQueue = DispatchQueue(label: "eliza")
   :
24 |     isThinking = true
25 |     Q.asyncAfter(deadline: .now() + thinkingTime) {
26 |       self.isThinking = false
   |       `- warning: capture of 'self' with non-sendable type 'Therapist' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 |       let answer = self.eliza.replyTo(question)
28 |       cb(answer)
/Users/admin/builder/spi-builder-workspace/Sources/therapist/main.swift:28:7: warning: capture of 'cb' with non-sendable type '(String?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |       self.isThinking = false
27 |       let answer = self.eliza.replyTo(question)
28 |       cb(answer)
   |       |- warning: capture of 'cb' with non-sendable type '(String?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |       `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
29 |     }
30 |   }
[8/11] Emitting module therapist
[8/11] Write Objects.LinkFileList
[9/11] Linking therapist
[10/11] Applying therapist
Build complete! (6.31s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftEliza",
  "name" : "SwiftEliza",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Eliza",
      "targets" : [
        "Eliza"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "therapist",
      "targets" : [
        "therapist"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "therapist",
      "module_type" : "SwiftTarget",
      "name" : "therapist",
      "path" : "Sources/therapist",
      "product_memberships" : [
        "therapist"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Eliza"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Eliza",
      "module_type" : "SwiftTarget",
      "name" : "Eliza",
      "path" : "Sources/Eliza",
      "product_memberships" : [
        "Eliza",
        "therapist"
      ],
      "sources" : [
        "Eliza.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.