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 AsyncPreview, reference master (ea83f6), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 12:48:14 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/TaimurAyaz/AsyncPreview.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/TaimurAyaz/AsyncPreview
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at ea83f60 Fix Initializer
Cloned https://github.com/TaimurAyaz/AsyncPreview.git
Revision (git rev-parse @):
ea83f60e1301f3a6d6a1e9e93cd113ed9450b2e2
SUCCESS checkout https://github.com/TaimurAyaz/AsyncPreview.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": "asyncpreview",
      "name": "AsyncPreview",
      "url": "https://github.com/TaimurAyaz/AsyncPreview.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AsyncPreview",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/TaimurAyaz/AsyncPreview.git
[1/36] Fetching asyncpreview
Fetched https://github.com/TaimurAyaz/AsyncPreview.git from cache (0.69s)
Creating working copy for https://github.com/TaimurAyaz/AsyncPreview.git
Working copy of https://github.com/TaimurAyaz/AsyncPreview.git resolved at master (ea83f60)
warning: '.resolve-product-dependencies': dependency 'asyncpreview' 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/TaimurAyaz/AsyncPreview.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/4] Emitting module AsyncPreview
[4/4] Compiling AsyncPreview AsyncPreview.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncPreview/AsyncPreview.swift:23:48: warning: non-sendable type 'M?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
 9 | import SwiftUI
10 |
11 | public struct AsyncPreview<V: View, M>: View {
   |                                     `- note: consider making generic parameter 'M' conform to the 'Sendable' protocol
12 |
13 |     public var view: (M) -> V
   :
21 |         .task {
22 |             do {
23 |                 self.internalModel = try await model()
   |                                                `- warning: non-sendable type 'M?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
24 |             } catch {
25 |                 self.error = error
Build complete! (11.78s)
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/AsyncPreview/README.md': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/AsyncPreview/LICENSE': File not found.
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "AsyncPreview",
  "name" : "AsyncPreview",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "AsyncPreview",
      "targets" : [
        "AsyncPreview"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AsyncPreview",
      "module_type" : "SwiftTarget",
      "name" : "AsyncPreview",
      "path" : "Sources/AsyncPreview",
      "product_memberships" : [
        "AsyncPreview"
      ],
      "sources" : [
        "AsyncPreview.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/AsyncPreview/README.md': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/AsyncPreview/LICENSE': File not found.
Done.