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 Rasterize 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/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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/fourplusone/rasterize.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/7] Write sources
[2/7] Write Example-entitlement.plist
[3/7] Write swift-version-6F35C1178C84523A.txt
[5/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:32: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
23 |     @available(visionOS, unavailable)
24 |     @MainActor public var sceneBridgingOptions: NSHostingSceneBridgingOptions { get set }
25 |     @MainActor required public init(rootView: Content)
   |                                `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
26 |     @MainActor 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 non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
24 |         hostingView.frame = NSRect(origin: .zero, size: size)
25 |
SwiftUI.NSHostingView:37:42: note: property declared here
35 |     @MainActor override dynamic open var lastBaselineOffsetFromBottom: CGFloat { get }
36 |     @MainActor open var firstTextLineCenter: CGFloat? { get }
37 |     @MainActor override dynamic open var intrinsicContentSize: NSSize { get }
   |                                          `- note: property declared here
38 |     @MainActor override dynamic open class var requiresConstraintBasedLayout: Bool { get }
39 |     @MainActor 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 task-isolated 'graphicsContext' to main actor-isolated instance method 'displayIgnoringOpacity(_:in:)' risks causing data races between main actor-isolated and task-isolated uses
39 |
40 |         return NSBitmapImageRep(cgImage: context.makeImage()!)
[6/9] Emitting module Rasterize
[7/11] Emitting module Example
[8/11] Compiling Example main.swift
[8/11] Write Objects.LinkFileList
[9/11] Linking Example
[10/11] Applying Example
Build complete! (33.48s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.