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 Trails 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/heestand-xyz/Trails.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/heestand-xyz/Trails
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 9d71a3b Vision Pro
Cloned https://github.com/heestand-xyz/Trails.git
Revision (git rev-parse @):
9d71a3bda201c38d0687ca3d7f405a49298d903c
SUCCESS checkout https://github.com/heestand-xyz/Trails.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/heestand-xyz/Trails.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/15] Compiling Trails TrailView.swift
[4/16] Compiling Trails LinesView.swift
[5/16] Compiling Trails PathTrail.swift
[6/16] Compiling Trails PathLines.swift
[7/16] Compiling Trails DefaultLinesView.swift
[8/16] Compiling Trails LabelsView.swift
[9/16] Compiling Trails LiveLabelsView.swift
[10/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)
[11/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)
[12/16] Compiling Trails TimeValue.swift
[13/16] Compiling Trails DefaultLabelsView.swift
[14/16] Emitting module Trails
[15/16] Compiling Trails PathCircle.swift
[16/16] Compiling Trails TrailsView.swift
Build complete! (36.75s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.