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 master (7567cb), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 06:05:01 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: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AlwaysRightInstitute/SwiftEliza
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7567cbc Update README w/ fork info
Cloned https://github.com/AlwaysRightInstitute/SwiftEliza.git
Revision (git rev-parse @):
7567cbc4b9a5a45fd41790c34b90e372a2dda712
SUCCESS checkout https://github.com/AlwaysRightInstitute/SwiftEliza.git at master
========================================
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
[4/159] Fetching swifteliza
Fetched https://github.com/AlwaysRightInstitute/SwiftEliza.git from cache (0.93s)
Creating working copy for https://github.com/AlwaysRightInstitute/SwiftEliza.git
Working copy of https://github.com/AlwaysRightInstitute/SwiftEliza.git resolved at master (7567cbc)
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.52s)
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.