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 Rasterize, reference main (f44e6c), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 20:57:02 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/fourplusone/rasterize.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fourplusone/rasterize
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f44e6c0 Create LICENSE
Cloned https://github.com/fourplusone/rasterize.git
Revision (git rev-parse @):
f44e6c0421fe93b136d7bee85f51b1595657bac3
SUCCESS checkout https://github.com/fourplusone/rasterize.git at main
========================================
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": "rasterize",
      "name": "Rasterize",
      "url": "https://github.com/fourplusone/rasterize.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/rasterize",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/fourplusone/rasterize.git
[1/32] Fetching rasterize
Fetched https://github.com/fourplusone/rasterize.git from cache (0.66s)
Creating working copy for https://github.com/fourplusone/rasterize.git
Working copy of https://github.com/fourplusone/rasterize.git resolved at main (f44e6c0)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/fourplusone/rasterize.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 Example-entitlement.plist
[3/7] Write swift-version--7754E27361AE5C74.txt
[5/9] Emitting module Rasterize
[6/9] Compiling Rasterize Rasterized.swift
/Users/admin/builder/spi-builder-workspace/Sources/Rasterize/Rasterized.swift:22:27: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 |     /// Create a bitmap representation of the view
20 |     /// - Returns: The bitmap representation.
21 |     public func bitmapRepresentation() -> NSBitmapImageRep {
   |                 `- note: add '@MainActor' to make instance method 'bitmapRepresentation()' part of global actor 'MainActor'
22 |         let hostingView = NSHostingView(rootView: view)
   |                           `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 |         let size = hostingView.intrinsicContentSize
24 |         hostingView.frame = NSRect(origin: .zero, size: size)
SwiftUI.NSHostingView:25:48: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
23 |     @available(visionOS, unavailable)
24 |     @MainActor @preconcurrency public var sceneBridgingOptions: NSHostingSceneBridgingOptions { get set }
25 |     @MainActor @preconcurrency required public init(rootView: Content)
   |                                                `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
26 |     @MainActor @preconcurrency required dynamic public init?(coder aDecoder: NSCoder)
27 |     @objc deinit
/Users/admin/builder/spi-builder-workspace/Sources/Rasterize/Rasterized.swift:23:32: warning: main actor-isolated property 'intrinsicContentSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 |     /// Create a bitmap representation of the view
20 |     /// - Returns: The bitmap representation.
21 |     public func bitmapRepresentation() -> NSBitmapImageRep {
   |                 `- note: add '@MainActor' to make instance method 'bitmapRepresentation()' part of global actor 'MainActor'
22 |         let hostingView = NSHostingView(rootView: view)
23 |         let size = hostingView.intrinsicContentSize
   |                                `- warning: main actor-isolated property 'intrinsicContentSize' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 |         hostingView.frame = NSRect(origin: .zero, size: size)
25 |
SwiftUI.NSHostingView:36:58: note: property declared here
34 |     @MainActor @preconcurrency override dynamic open var lastBaselineOffsetFromBottom: CGFloat { get }
35 |     @MainActor @preconcurrency open var firstTextLineCenter: CGFloat? { get }
36 |     @MainActor @preconcurrency override dynamic open var intrinsicContentSize: NSSize { get }
   |                                                          `- note: property declared here
37 |     @MainActor @preconcurrency override dynamic open class var requiresConstraintBasedLayout: Bool { get }
38 |     @MainActor @preconcurrency override dynamic open func updateConstraints()
/Users/admin/builder/spi-builder-workspace/Sources/Rasterize/Rasterized.swift:24:21: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
19 |     /// Create a bitmap representation of the view
20 |     /// - Returns: The bitmap representation.
21 |     public func bitmapRepresentation() -> NSBitmapImageRep {
   |                 `- note: add '@MainActor' to make instance method 'bitmapRepresentation()' part of global actor 'MainActor'
22 |         let hostingView = NSHostingView(rootView: view)
23 |         let size = hostingView.intrinsicContentSize
24 |         hostingView.frame = NSRect(origin: .zero, size: size)
   |                     `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
25 |
26 |         let context = CGContext(data: nil,
AppKit.NSView:60:25: note: mutation of this property is only permitted within the actor
 58 |     open func setFrameOrigin(_ newOrigin: NSPoint)
 59 |     open func setFrameSize(_ newSize: NSSize)
 60 |     @MainActor open var frame: NSRect { get set }
    |                         `- note: mutation of this property is only permitted within the actor
 61 |     open var frameRotation: CGFloat { get set }
 62 |     @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/Rasterize/Rasterized.swift:38:21: warning: call to main actor-isolated instance method 'displayIgnoringOpacity(_:in:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 |     /// Create a bitmap representation of the view
20 |     /// - Returns: The bitmap representation.
21 |     public func bitmapRepresentation() -> NSBitmapImageRep {
   |                 `- note: add '@MainActor' to make instance method 'bitmapRepresentation()' part of global actor 'MainActor'
22 |         let hostingView = NSHostingView(rootView: view)
23 |         let size = hostingView.intrinsicContentSize
   :
36 |         let graphicsContext = NSGraphicsContext(cgContext: context, flipped: false)
37 |
38 |         hostingView.displayIgnoringOpacity(hostingView.bounds, in: graphicsContext)
   |                     `- warning: call to main actor-isolated instance method 'displayIgnoringOpacity(_:in:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 |
40 |         return NSBitmapImageRep(cgImage: context.makeImage()!)
AppKit.NSView:209:26: note: calls to instance method 'displayIgnoringOpacity(_:in:)' from outside of its actor context are implicitly asynchronous
207 |     @available(swift, obsoleted: 3, renamed: "draw(_:)")
208 |     open func drawRect(_ dirtyRect: NSRect)
209 |     @MainActor open func displayIgnoringOpacity(_ rect: NSRect, in context: NSGraphicsContext)
    |                          `- note: calls to instance method 'displayIgnoringOpacity(_:in:)' from outside of its actor context are implicitly asynchronous
210 |     @available(swift, obsoleted: 3, renamed: "displayIgnoringOpacity(_:in:)")
211 |     open func displayRectIgnoringOpacity(_ rect: NSRect, inContext context: NSGraphicsContext)
/Users/admin/builder/spi-builder-workspace/Sources/Rasterize/Rasterized.swift:38:56: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
19 |     /// Create a bitmap representation of the view
20 |     /// - Returns: The bitmap representation.
21 |     public func bitmapRepresentation() -> NSBitmapImageRep {
   |                 `- note: add '@MainActor' to make instance method 'bitmapRepresentation()' part of global actor 'MainActor'
22 |         let hostingView = NSHostingView(rootView: view)
23 |         let size = hostingView.intrinsicContentSize
   :
36 |         let graphicsContext = NSGraphicsContext(cgContext: context, flipped: false)
37 |
38 |         hostingView.displayIgnoringOpacity(hostingView.bounds, in: graphicsContext)
   |                                                        `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 |
40 |         return NSBitmapImageRep(cgImage: context.makeImage()!)
AppKit.NSView:76:14: note: property declared here
 74 |     @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
 75 |     open func rotateByAngle(_ angle: CGFloat)
 76 |     open var bounds: NSRect { get set }
    |              `- note: property declared here
 77 |     open var isFlipped: Bool { get }
 78 |     @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Rasterize/Rasterized.swift:22:27: warning: sending 'self.view' risks causing data races; this is an error in the Swift 6 language mode
20 |     /// - Returns: The bitmap representation.
21 |     public func bitmapRepresentation() -> NSBitmapImageRep {
22 |         let hostingView = NSHostingView(rootView: view)
   |                           |- warning: sending 'self.view' risks causing data races; this is an error in the Swift 6 language mode
   |                           `- note: sending task-isolated 'self.view' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
23 |         let size = hostingView.intrinsicContentSize
24 |         hostingView.frame = NSRect(origin: .zero, size: size)
/Users/admin/builder/spi-builder-workspace/Sources/Rasterize/Rasterized.swift:38:21: warning: sending 'graphicsContext' risks causing data races; this is an error in the Swift 6 language mode
36 |         let graphicsContext = NSGraphicsContext(cgContext: context, flipped: false)
37 |
38 |         hostingView.displayIgnoringOpacity(hostingView.bounds, in: graphicsContext)
   |                     |- warning: sending 'graphicsContext' risks causing data races; this is an error in the Swift 6 language mode
   |                     `- note: sending 'graphicsContext' to main actor-isolated instance method 'displayIgnoringOpacity(_:in:)' risks causing data races between main actor-isolated and local nonisolated uses
39 |
40 |         return NSBitmapImageRep(cgImage: context.makeImage()!)
   |                                                  `- note: access can happen concurrently
41 |     }
42 | }
[7/11] Compiling Example main.swift
[8/11] Emitting module Example
[8/11] Write Objects.LinkFileList
[9/11] Linking Example
[10/11] Applying Example
Build complete! (11.71s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Rasterize",
  "name" : "Rasterize",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "Rasterize",
      "targets" : [
        "Rasterize"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Example",
      "targets" : [
        "Example"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RasterizeTests",
      "module_type" : "SwiftTarget",
      "name" : "RasterizeTests",
      "path" : "Tests/RasterizeTests",
      "sources" : [
        "RasterizeTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Rasterize"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Rasterize",
      "module_type" : "SwiftTarget",
      "name" : "Rasterize",
      "path" : "Sources/Rasterize",
      "product_memberships" : [
        "Rasterize",
        "Example"
      ],
      "sources" : [
        "Rasterized.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Example",
      "module_type" : "SwiftTarget",
      "name" : "Example",
      "path" : "Sources/Example",
      "product_memberships" : [
        "Example"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Rasterize"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.3"
}
Done.