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 Trails, reference 1.2.0 (ceb5f6), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 13:22:06 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/heestand-xyz/Trails.git
Reference: 1.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/heestand-xyz/Trails
 * tag               1.2.0      -> FETCH_HEAD
HEAD is now at ceb5f63 Trails
Cloned https://github.com/heestand-xyz/Trails.git
Revision (git rev-parse @):
ceb5f63459e64d48487441e9ddac8c914f860453
SUCCESS checkout https://github.com/heestand-xyz/Trails.git at 1.2.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": "trails",
      "name": "Trails",
      "url": "https://github.com/heestand-xyz/Trails.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Trails",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/heestand-xyz/Trails.git
[4/376] Fetching trails
Fetched https://github.com/heestand-xyz/Trails.git from cache (0.78s)
Creating working copy for https://github.com/heestand-xyz/Trails.git
Working copy of https://github.com/heestand-xyz/Trails.git resolved at 1.2.0 (ceb5f63)
warning: '.resolve-product-dependencies': dependency 'trails' 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/heestand-xyz/Trails.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/15] Compiling Trails TrailView.swift
[4/15] Compiling Trails PathTrail.swift
[5/16] Compiling Trails PathLines.swift
[6/16] Compiling Trails PathCircle.swift
[7/16] Compiling Trails LinesView.swift
[8/16] Compiling Trails DefaultLinesView.swift
[9/16] Compiling Trails LabelsView.swift
[10/16] Compiling Trails LiveLabelsView.swift
[11/16] Compiling Trails TimeValue.swift
[12/16] Compiling Trails DefaultLabelsView.swift
[13/16] Compiling Trails Trailer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Trails/Controllers/TrailerMock.swift:31:17: warning: capture of 'mockTrailer' with non-sendable type 'Trailer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |                 var value: Double = cos(time * timeAmp + .pi * 2 * f) * scales[i] + offsets[i]
30 |                 value *= cos(time * 0.1) / 2 + 0.5
31 |                 mockTrailer.add(value, at: i)
   |                 `- warning: capture of 'mockTrailer' with non-sendable type 'Trailer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |             }
33 |         }), forMode: .common)
/Users/admin/builder/spi-builder-workspace/Sources/Trails/Controllers/Trailer.swift:8:14: note: class 'Trailer' does not conform to the 'Sendable' protocol
  6 |
  7 | @available(iOS 13.0, tvOS 13.0, watchOS 6, macOS 10.15, *)
  8 | public class Trailer: ObservableObject {
    |              `- note: class 'Trailer' does not conform to the 'Sendable' protocol
  9 |
 10 |     /// trail count
/Users/admin/builder/spi-builder-workspace/Sources/Trails/Controllers/TrailerMock.swift:29:73: warning: reference to captured var 'scales' in concurrently-executing code; this is an error in the Swift 6 language mode
27 |             for i in 0..<count {
28 |                 let f: Double = Double(i) / Double(count)
29 |                 var value: Double = cos(time * timeAmp + .pi * 2 * f) * scales[i] + offsets[i]
   |                                                                         `- warning: reference to captured var 'scales' in concurrently-executing code; this is an error in the Swift 6 language mode
30 |                 value *= cos(time * 0.1) / 2 + 0.5
31 |                 mockTrailer.add(value, at: i)
/Users/admin/builder/spi-builder-workspace/Sources/Trails/Controllers/TrailerMock.swift:29:85: warning: reference to captured var 'offsets' in concurrently-executing code; this is an error in the Swift 6 language mode
27 |             for i in 0..<count {
28 |                 let f: Double = Double(i) / Double(count)
29 |                 var value: Double = cos(time * timeAmp + .pi * 2 * f) * scales[i] + offsets[i]
   |                                                                                     `- warning: reference to captured var 'offsets' in concurrently-executing code; this is an error in the Swift 6 language mode
30 |                 value *= cos(time * 0.1) / 2 + 0.5
31 |                 mockTrailer.add(value, at: i)
[14/16] Compiling Trails TrailerMock.swift
/Users/admin/builder/spi-builder-workspace/Sources/Trails/Controllers/TrailerMock.swift:31:17: warning: capture of 'mockTrailer' with non-sendable type 'Trailer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |                 var value: Double = cos(time * timeAmp + .pi * 2 * f) * scales[i] + offsets[i]
30 |                 value *= cos(time * 0.1) / 2 + 0.5
31 |                 mockTrailer.add(value, at: i)
   |                 `- warning: capture of 'mockTrailer' with non-sendable type 'Trailer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |             }
33 |         }), forMode: .common)
/Users/admin/builder/spi-builder-workspace/Sources/Trails/Controllers/Trailer.swift:8:14: note: class 'Trailer' does not conform to the 'Sendable' protocol
  6 |
  7 | @available(iOS 13.0, tvOS 13.0, watchOS 6, macOS 10.15, *)
  8 | public class Trailer: ObservableObject {
    |              `- note: class 'Trailer' does not conform to the 'Sendable' protocol
  9 |
 10 |     /// trail count
/Users/admin/builder/spi-builder-workspace/Sources/Trails/Controllers/TrailerMock.swift:29:73: warning: reference to captured var 'scales' in concurrently-executing code; this is an error in the Swift 6 language mode
27 |             for i in 0..<count {
28 |                 let f: Double = Double(i) / Double(count)
29 |                 var value: Double = cos(time * timeAmp + .pi * 2 * f) * scales[i] + offsets[i]
   |                                                                         `- warning: reference to captured var 'scales' in concurrently-executing code; this is an error in the Swift 6 language mode
30 |                 value *= cos(time * 0.1) / 2 + 0.5
31 |                 mockTrailer.add(value, at: i)
/Users/admin/builder/spi-builder-workspace/Sources/Trails/Controllers/TrailerMock.swift:29:85: warning: reference to captured var 'offsets' in concurrently-executing code; this is an error in the Swift 6 language mode
27 |             for i in 0..<count {
28 |                 let f: Double = Double(i) / Double(count)
29 |                 var value: Double = cos(time * timeAmp + .pi * 2 * f) * scales[i] + offsets[i]
   |                                                                                     `- warning: reference to captured var 'offsets' in concurrently-executing code; this is an error in the Swift 6 language mode
30 |                 value *= cos(time * 0.1) / 2 + 0.5
31 |                 mockTrailer.add(value, at: i)
[15/16] Emitting module Trails
[16/16] Compiling Trails TrailsView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Trails/Views/TrailsView.swift:51:42: warning: non-constant range: argument must be an integer literal
 49 |                                      endPoint: .trailing))
 50 |             ZStack {
 51 |                 ForEach(0..<self.trailer.count) { i in
    |                                          `- warning: non-constant range: argument must be an integer literal
 52 |                     TrailView(trailer: self.trailer,
 53 |                               color: $color,
Build complete! (27.10s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Trails",
  "name" : "Trails",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "Trails",
      "targets" : [
        "Trails"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Trails",
      "module_type" : "SwiftTarget",
      "name" : "Trails",
      "path" : "Sources/Trails",
      "product_memberships" : [
        "Trails"
      ],
      "sources" : [
        "Controllers/Trailer.swift",
        "Controllers/TrailerMock.swift",
        "Models/TimeValue.swift",
        "Views/Labels/DefaultLabelsView.swift",
        "Views/Labels/LabelsView.swift",
        "Views/Labels/LiveLabelsView.swift",
        "Views/Lines/DefaultLinesView.swift",
        "Views/Lines/LinesView.swift",
        "Views/Trails/Paths/PathCircle.swift",
        "Views/Trails/Paths/PathLines.swift",
        "Views/Trails/Paths/PathTrail.swift",
        "Views/Trails/TrailView.swift",
        "Views/TrailsView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.