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 Inspect, reference 0.0.1 (1e9d39), with Swift 6.0 (beta) for macOS (SPM) on 16 Sep 2024 14:50:25 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xWDG/Inspect.git
Reference: 0.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/0xWDG/Inspect
 * tag               0.0.1      -> FETCH_HEAD
HEAD is now at 1e9d39e Initial commit
Cloned https://github.com/0xWDG/Inspect.git
Revision (git rev-parse @):
1e9d39e7ae1827b8d49444eab8a82e2ab0f9c4b4
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/0xWDG/Inspect.git at 0.0.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/0xWDG/Inspect.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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-117DEE11B69C53C9.txt
[3/4] Compiling Inspect Inspect.swift
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/Inspect.swift:65:29: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 58 |     ///
 59 |     /// - Returns: The view of type (if found)
 60 |     static func findChild<ViewOfType: PlatformView>(
    |                 `- note: add '@MainActor' to make static method 'findChild(ofType:in:)' part of global actor 'MainActor'
 61 |         ofType type: ViewOfType.Type,
 62 |         in root: PlatformView
 63 |     ) -> ViewOfType? {
 64 |         // Search in subviews
 65 |         for subview in root.subviews {
    |                             `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 66 |             if let searchedView = subview as? ViewOfType {
 67 |                 return searchedView
AppKit.NSView:6:25: note: property declared here
  4 |     unowned(unsafe) open var window: NSWindow? { get }
  5 |     unowned(unsafe) open var superview: NSView? { get }
  6 |     @MainActor open var subviews: [NSView] { get set }
    |                         `- note: property declared here
  7 |     open func isDescendant(of view: NSView) -> Bool
  8 |     @available(swift, obsoleted: 3, renamed: "isDescendant(of:)")
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/Inspect.swift:94:31: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 87 |     ///
 88 |     /// - Returns: The view of type (if found)
 89 |     static func find<ViewOfType: PlatformView>(
    |                 `- note: add '@MainActor' to make static method 'find(ofType:from:)' part of global actor 'MainActor'
 90 |         ofType type: ViewOfType.Type,
 91 |         from entry: PlatformView
 92 |     ) -> ViewOfType? {
 93 |         // Get the view above the current view (superview)
 94 |         var superview = entry.superview
    |                               `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 95 |
 96 |         while let currentView = superview {
AppKit.NSView:5:30: note: property declared here
  3 |     @MainActor public init?(coder: NSCoder)
  4 |     unowned(unsafe) open var window: NSWindow? { get }
  5 |     unowned(unsafe) open var superview: NSView? { get }
    |                              `- note: property declared here
  6 |     @MainActor open var subviews: [NSView] { get set }
  7 |     open func isDescendant(of view: NSView) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/Inspect.swift:101:37: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 87 |     ///
 88 |     /// - Returns: The view of type (if found)
 89 |     static func find<ViewOfType: PlatformView>(
    |                 `- note: add '@MainActor' to make static method 'find(ofType:from:)' part of global actor 'MainActor'
 90 |         ofType type: ViewOfType.Type,
 91 |         from entry: PlatformView
    :
 99 |             }
100 |
101 |             superview = currentView.superview
    |                                     `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
102 |         }
103 |
AppKit.NSView:5:30: note: property declared here
  3 |     @MainActor public init?(coder: NSCoder)
  4 |     unowned(unsafe) open var window: NSWindow? { get }
  5 |     unowned(unsafe) open var superview: NSView? { get }
    |                              `- note: property declared here
  6 |     @MainActor open var subviews: [NSView] { get set }
  7 |     open func isDescendant(of view: NSView) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/Inspect.swift:105:34: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 87 |     ///
 88 |     /// - Returns: The view of type (if found)
 89 |     static func find<ViewOfType: PlatformView>(
    |                 `- note: add '@MainActor' to make static method 'find(ofType:from:)' part of global actor 'MainActor'
 90 |         ofType type: ViewOfType.Type,
 91 |         from entry: PlatformView
    :
103 |
104 |         // Search previous sibling
105 |         if let superview = entry.superview,
    |                                  `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
106 |            let entryIndex = superview.subviews.firstIndex(of: entry),
107 |            entryIndex > 0 {
AppKit.NSView:5:30: note: property declared here
  3 |     @MainActor public init?(coder: NSCoder)
  4 |     unowned(unsafe) open var window: NSWindow? { get }
  5 |     unowned(unsafe) open var superview: NSView? { get }
    |                              `- note: property declared here
  6 |     @MainActor open var subviews: [NSView] { get set }
  7 |     open func isDescendant(of view: NSView) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/Inspect.swift:106:39: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 87 |     ///
 88 |     /// - Returns: The view of type (if found)
 89 |     static func find<ViewOfType: PlatformView>(
    |                 `- note: add '@MainActor' to make static method 'find(ofType:from:)' part of global actor 'MainActor'
 90 |         ofType type: ViewOfType.Type,
 91 |         from entry: PlatformView
    :
104 |         // Search previous sibling
105 |         if let superview = entry.superview,
106 |            let entryIndex = superview.subviews.firstIndex(of: entry),
    |                                       `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
107 |            entryIndex > 0 {
108 |             for subview in superview.subviews[0..<entryIndex].reversed() {
AppKit.NSView:6:25: note: property declared here
  4 |     unowned(unsafe) open var window: NSWindow? { get }
  5 |     unowned(unsafe) open var superview: NSView? { get }
  6 |     @MainActor open var subviews: [NSView] { get set }
    |                         `- note: property declared here
  7 |     open func isDescendant(of view: NSView) -> Bool
  8 |     @available(swift, obsoleted: 3, renamed: "isDescendant(of:)")
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/Inspect.swift:108:38: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 87 |     ///
 88 |     /// - Returns: The view of type (if found)
 89 |     static func find<ViewOfType: PlatformView>(
    |                 `- note: add '@MainActor' to make static method 'find(ofType:from:)' part of global actor 'MainActor'
 90 |         ofType type: ViewOfType.Type,
 91 |         from entry: PlatformView
    :
106 |            let entryIndex = superview.subviews.firstIndex(of: entry),
107 |            entryIndex > 0 {
108 |             for subview in superview.subviews[0..<entryIndex].reversed() {
    |                                      `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
109 |                 if let typed = findChild(ofType: type, in: subview) {
110 |                     return typed
AppKit.NSView:6:25: note: property declared here
  4 |     unowned(unsafe) open var window: NSWindow? { get }
  5 |     unowned(unsafe) open var superview: NSView? { get }
  6 |     @MainActor open var subviews: [NSView] { get set }
    |                         `- note: property declared here
  7 |     open func isDescendant(of view: NSView) -> Bool
  8 |     @available(swift, obsoleted: 3, renamed: "isDescendant(of:)")
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/Inspect.swift:129:31: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
125 |     ///
126 |     /// - Returns: The view of type (if found)
127 |     static func findViewWithClass(from entry: PlatformView, className: String = "ViewHost") -> PlatformView? {
    |                 `- note: add '@MainActor' to make static method 'findViewWithClass(from:className:)' part of global actor 'MainActor'
128 |         // Get the view above the current view (superview)
129 |         var superview = entry.superview
    |                               `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
130 |
131 |         // Walk trough the subviews
AppKit.NSView:5:30: note: property declared here
  3 |     @MainActor public init?(coder: NSCoder)
  4 |     unowned(unsafe) open var window: NSWindow? { get }
  5 |     unowned(unsafe) open var superview: NSView? { get }
    |                              `- note: property declared here
  6 |     @MainActor open var subviews: [NSView] { get set }
  7 |     open func isDescendant(of view: NSView) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/Inspect/Inspect.swift:140:37: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
125 |     ///
126 |     /// - Returns: The view of type (if found)
127 |     static func findViewWithClass(from entry: PlatformView, className: String = "ViewHost") -> PlatformView? {
    |                 `- note: add '@MainActor' to make static method 'findViewWithClass(from:className:)' part of global actor 'MainActor'
128 |         // Get the view above the current view (superview)
129 |         var superview = entry.superview
    :
138 |
139 |             // Not found, check the view above current view (superview)
140 |             superview = currentView.superview
    |                                     `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
141 |         }
142 |
AppKit.NSView:5:30: note: property declared here
  3 |     @MainActor public init?(coder: NSCoder)
  4 |     unowned(unsafe) open var window: NSWindow? { get }
  5 |     unowned(unsafe) open var superview: NSView? { get }
    |                              `- note: property declared here
  6 |     @MainActor open var subviews: [NSView] { get set }
  7 |     open func isDescendant(of view: NSView) -> Bool
[4/4] Emitting module Inspect
Build complete! (11.67s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Inspect",
  "name" : "Inspect",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "Inspect",
      "targets" : [
        "Inspect"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "InspectTests",
      "module_type" : "SwiftTarget",
      "name" : "InspectTests",
      "path" : "Tests/InspectTests",
      "sources" : [
        "InspectTests.swift"
      ],
      "target_dependencies" : [
        "Inspect"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Inspect",
      "module_type" : "SwiftTarget",
      "name" : "Inspect",
      "path" : "Sources/Inspect",
      "product_memberships" : [
        "Inspect"
      ],
      "sources" : [
        "Inspect.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.