Build Information
Successful build of Rasterize, reference main (f44e6c
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 06:24:51 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.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
[3/32] Fetching rasterize
Fetched https://github.com/fourplusone/rasterize.git from cache (0.57s)
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.1
Building package at path: $PWD
https://github.com/fourplusone/rasterize.git
https://github.com/fourplusone/rasterize.git
{
"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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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-2F0A5646E1D333AE.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.init:2:44: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
1 | generic class NSHostingView {
2 | @MainActor @preconcurrency required public init(rootView: Content)}
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
3 |
/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.intrinsicContentSize:2:54: note: property declared here
1 | generic class NSHostingView {
2 | @MainActor @preconcurrency override dynamic open var intrinsicContentSize: NSSize { get }}
| `- note: property declared here
3 |
/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,
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: mutation of this property is only permitted within the actor
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- note: mutation of this property is only permitted within the actor
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_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.displayIgnoringOpacity:2:22: note: calls to instance method 'displayIgnoringOpacity(_:in:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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()!)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: note: property declared here
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- note: property declared here
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/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 | }
/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)
[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! (8.23s)
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.