Build Information
Successful build of PDFViewKit, reference 1.0.1 (e6a3c2
), with Swift 6.0 for macOS (SPM) on 24 Jan 2025 13:26:57 UTC.
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sgade/PDFViewKit.git
Reference: 1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sgade/PDFViewKit
* tag 1.0.1 -> FETCH_HEAD
HEAD is now at e6a3c24 Define abstract PageSize
Cloned https://github.com/sgade/PDFViewKit.git
Revision (git rev-parse @):
e6a3c245381d96f1f10bbaebf48c06f09989ac79
SUCCESS checkout https://github.com/sgade/PDFViewKit.git at 1.0.1
========================================
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": "pdfviewkit",
"name": "PDFViewKit",
"url": "https://github.com/sgade/PDFViewKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PDFViewKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/sgade/PDFViewKit.git
[1/52] Fetching pdfviewkit
Fetched https://github.com/sgade/PDFViewKit.git from cache (0.72s)
Creating working copy for https://github.com/sgade/PDFViewKit.git
Working copy of https://github.com/sgade/PDFViewKit.git resolved at 1.0.1 (e6a3c24)
warning: '.resolve-product-dependencies': dependency 'pdfviewkit' 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/sgade/PDFViewKit.git
https://github.com/sgade/PDFViewKit.git
{
"dependencies" : [
],
"manifest_display_name" : "PDFViewKit",
"name" : "PDFViewKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "PDFViewKit",
"targets" : [
"PDFViewKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PDFViewKit",
"module_type" : "SwiftTarget",
"name" : "PDFViewKit",
"path" : "Sources/PDFViewKit",
"product_memberships" : [
"PDFViewKit"
],
"sources" : [
"EnvironmentKeys/PDFPageSizeKey.swift",
"EnvironmentKeys/PDFRenderingDPIKey.swift",
"EnvironmentKeys/RenderingEnvironmentKey.swift",
"Modifiers/ApplyPDFSizeFrameModifier.swift",
"Modifiers/View+ApplyIf.swift",
"PDFDocument.swift",
"PDFPage.swift",
"PDFRenderer.swift",
"PageSizes/DIN.swift",
"PageSizes/DPI.swift",
"PageSizes/PageSize.swift",
"Views/PDFLink.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
[3/14] Compiling PDFViewKit DPI.swift
[4/14] Compiling PDFViewKit PageSize.swift
[5/15] Compiling PDFViewKit PDFLink.swift
[6/15] Compiling PDFViewKit DIN.swift
[7/15] Compiling PDFViewKit PDFRenderer.swift
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFRenderer.swift:33:25: warning: sending 'document' risks causing data races; this is an error in the Swift 6 language mode
31 |
32 | MainActor.assumeIsolated {
33 | for page in document.pages {
| |- warning: sending 'document' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'document' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
34 | let renderedView = page.body
35 | .environment(\.renderingEnvironment, .toPDF)
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFRenderer.swift:36:53: warning: sending 'viewRenderingDPI' risks causing data races; this is an error in the Swift 6 language mode
34 | let renderedView = page.body
35 | .environment(\.renderingEnvironment, .toPDF)
36 | .environment(\.pdfRenderingDPI, viewRenderingDPI)
| |- warning: sending 'viewRenderingDPI' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'viewRenderingDPI' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
37 |
38 | let renderer = ImageRenderer(content: renderedView)
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFRenderer.swift:42:21: warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
40 |
41 | renderer.render(rasterizationScale: scaleFactor) { _, renderer in
42 | context.beginPDFPage(nil)
| |- warning: sending 'context' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'context' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
43 |
44 | context.scaleBy(
:
54 | }
55 |
56 | context.closePDF()
| `- note: access can happen concurrently
57 | }
58 |
[8/15] Compiling PDFViewKit PDFPage.swift
[9/15] Compiling PDFViewKit RenderingEnvironmentKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/RenderingEnvironmentKey.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RenderingEnvironmentKey: EnvironmentKey {
12 |
13 | public static var defaultValue: RenderingEnvironment = .default
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
[10/15] Compiling PDFViewKit ApplyPDFSizeFrameModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/RenderingEnvironmentKey.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RenderingEnvironmentKey: EnvironmentKey {
12 |
13 | public static var defaultValue: RenderingEnvironment = .default
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
[11/15] Compiling PDFViewKit PDFPageSizeKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/PDFPageSizeKey.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | struct PDFPageSizeKey: EnvironmentKey {
12 |
13 | static var defaultValue: PageSize = DIN.a4
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/PDFRenderingDPIKey.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | struct PDFRenderingDPIKey: EnvironmentKey {
12 |
13 | static var defaultValue: DPI = .display
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
[12/15] Compiling PDFViewKit PDFRenderingDPIKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/PDFPageSizeKey.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | struct PDFPageSizeKey: EnvironmentKey {
12 |
13 | static var defaultValue: PageSize = DIN.a4
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/PDFRenderingDPIKey.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | struct PDFRenderingDPIKey: EnvironmentKey {
12 |
13 | static var defaultValue: DPI = .display
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
[13/15] Compiling PDFViewKit View+ApplyIf.swift
[14/15] Emitting module PDFViewKit
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/PDFPageSizeKey.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | struct PDFPageSizeKey: EnvironmentKey {
12 |
13 | static var defaultValue: PageSize = DIN.a4
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/PDFRenderingDPIKey.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | struct PDFRenderingDPIKey: EnvironmentKey {
12 |
13 | static var defaultValue: DPI = .display
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/EnvironmentKeys/RenderingEnvironmentKey.swift:13:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RenderingEnvironmentKey: EnvironmentKey {
12 |
13 | public static var defaultValue: RenderingEnvironment = .default
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:31:16: warning: static property 'defaultPageSize' is not concurrency-safe because non-'Sendable' type 'any PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The default size used for pages implicitly created from views.
31 | static let defaultPageSize: PageSize = DIN.a4
| |- warning: static property 'defaultPageSize' is not concurrency-safe because non-'Sendable' type 'any PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultPageSize' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PageSizes/PageSize.swift:12:17: note: protocol 'PageSize' does not conform to the 'Sendable' protocol
10 |
11 | /// A type that defines page sizes.
12 | public protocol PageSize {
| `- note: protocol 'PageSize' does not conform to the 'Sendable' protocol
13 |
14 | /// The page's physical width.
[15/15] Compiling PDFViewKit PDFDocument.swift
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:31:16: warning: static property 'defaultPageSize' is not concurrency-safe because non-'Sendable' type 'any PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
29 |
30 | /// The default size used for pages implicitly created from views.
31 | static let defaultPageSize: PageSize = DIN.a4
| |- warning: static property 'defaultPageSize' is not concurrency-safe because non-'Sendable' type 'any PageSize' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultPageSize' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PageSizes/PageSize.swift:12:17: note: protocol 'PageSize' does not conform to the 'Sendable' protocol
10 |
11 | /// A type that defines page sizes.
12 | public protocol PageSize {
| `- note: protocol 'PageSize' does not conform to the 'Sendable' protocol
13 |
14 | /// The page's physical width.
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:41:10: warning: call to main actor-isolated initializer 'init(erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
38 | public enum PDFPagesBuilder {
39 |
40 | public static func buildPartialBlock(first: PDFPage<some View>) -> [PDFPage<AnyView>] {
| `- note: add '@MainActor' to make static method 'buildPartialBlock(first:)' part of global actor 'MainActor'
41 | [PDFPage(erasing: first)]
| `- warning: call to main actor-isolated initializer 'init(erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFPage.swift:50:5: note: calls to initializer 'init(erasing:)' from outside of its actor context are implicitly asynchronous
48 | public extension PDFPage where Content == AnyView {
49 |
50 | init(erasing otherPage: PDFPage<some View>) {
| `- note: calls to initializer 'init(erasing:)' from outside of its actor context are implicitly asynchronous
51 | self.init(size: otherPage.size) {
52 | AnyView(erasing: otherPage.content)
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:49:22: warning: call to main actor-isolated initializer 'init(erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 | }
43 |
44 | public static func buildPartialBlock(
| `- note: add '@MainActor' to make static method 'buildPartialBlock(accumulated:next:)' part of global actor 'MainActor'
45 | accumulated: [PDFPage<AnyView>],
46 | next: PDFPage<some View>
47 | ) -> [PDFPage<AnyView>] {
48 | var pages = accumulated
49 | pages.append(PDFPage(erasing: next))
| `- warning: call to main actor-isolated initializer 'init(erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | return pages
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFPage.swift:50:5: note: calls to initializer 'init(erasing:)' from outside of its actor context are implicitly asynchronous
48 | public extension PDFPage where Content == AnyView {
49 |
50 | init(erasing otherPage: PDFPage<some View>) {
| `- note: calls to initializer 'init(erasing:)' from outside of its actor context are implicitly asynchronous
51 | self.init(size: otherPage.size) {
52 | AnyView(erasing: otherPage.content)
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:54:10: warning: call to main actor-isolated initializer 'init(size:erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | }
52 |
53 | public static func buildPartialBlock(first: some View) -> [PDFPage<AnyView>] {
| `- note: add '@MainActor' to make static method 'buildPartialBlock(first:)' part of global actor 'MainActor'
54 | [PDFPage(
| `- warning: call to main actor-isolated initializer 'init(size:erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | size: PDFDocument.defaultPageSize,
56 | erasing: first
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFPage.swift:56:5: note: calls to initializer 'init(size:erasing:)' from outside of its actor context are implicitly asynchronous
54 | }
55 |
56 | init(
| `- note: calls to initializer 'init(size:erasing:)' from outside of its actor context are implicitly asynchronous
57 | size: PageSize,
58 | erasing view: some View
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:65:22: warning: call to main actor-isolated initializer 'init(size:erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 |
60 | public static func buildPartialBlock(
| `- note: add '@MainActor' to make static method 'buildPartialBlock(accumulated:next:)' part of global actor 'MainActor'
61 | accumulated: [PDFPage<AnyView>],
62 | next: some View
63 | ) -> [PDFPage<AnyView>] {
64 | var pages = accumulated
65 | pages.append(PDFPage(
| `- warning: call to main actor-isolated initializer 'init(size:erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | size: PDFDocument.defaultPageSize,
67 | erasing: next
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFPage.swift:56:5: note: calls to initializer 'init(size:erasing:)' from outside of its actor context are implicitly asynchronous
54 | }
55 |
56 | init(
| `- note: calls to initializer 'init(size:erasing:)' from outside of its actor context are implicitly asynchronous
57 | size: PageSize,
58 | erasing view: some View
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:85:22: warning: call to main actor-isolated initializer 'init(erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
81 | }
82 |
83 | public static func buildPartialBlock(accumulated: PDFDocument, next: PDFPage<some View>) -> PDFDocument {
| `- note: add '@MainActor' to make static method 'buildPartialBlock(accumulated:next:)' part of global actor 'MainActor'
84 | var pages = accumulated.pages
85 | pages.append(PDFPage(erasing: next))
| `- warning: call to main actor-isolated initializer 'init(erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
86 | return PDFDocument(pages: pages)
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFPage.swift:50:5: note: calls to initializer 'init(erasing:)' from outside of its actor context are implicitly asynchronous
48 | public extension PDFPage where Content == AnyView {
49 |
50 | init(erasing otherPage: PDFPage<some View>) {
| `- note: calls to initializer 'init(erasing:)' from outside of its actor context are implicitly asynchronous
51 | self.init(size: otherPage.size) {
52 | AnyView(erasing: otherPage.content)
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:91:13: warning: call to main actor-isolated initializer 'init(size:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
89 | public static func buildPartialBlock(first: some View) -> PDFDocument {
90 | PDFDocument {
91 | PDFPage(size: PDFDocument.defaultPageSize) {
| `- warning: call to main actor-isolated initializer 'init(size:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
92 | first
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFPage.swift:21:12: note: calls to initializer 'init(size:_:)' from outside of its actor context are implicitly asynchronous
19 | public let content: Content
20 |
21 | public init(
| `- note: calls to initializer 'init(size:_:)' from outside of its actor context are implicitly asynchronous
22 | size: PageSize,
23 | @ViewBuilder _ content: () -> Content
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:99:22: warning: call to main actor-isolated initializer 'init(size:erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public static func buildPartialBlock(accumulated: PDFDocument, next: some View) -> PDFDocument {
| `- note: add '@MainActor' to make static method 'buildPartialBlock(accumulated:next:)' part of global actor 'MainActor'
98 | var pages = accumulated.pages
99 | pages.append(PDFPage(
| `- warning: call to main actor-isolated initializer 'init(size:erasing:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
100 | size: PDFDocument.defaultPageSize,
101 | erasing: next
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFPage.swift:56:5: note: calls to initializer 'init(size:erasing:)' from outside of its actor context are implicitly asynchronous
54 | }
55 |
56 | init(
| `- note: calls to initializer 'init(size:erasing:)' from outside of its actor context are implicitly asynchronous
57 | size: PageSize,
58 | erasing view: some View
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:54:10: warning: sending 'first' risks causing data races; this is an error in the Swift 6 language mode
52 |
53 | public static func buildPartialBlock(first: some View) -> [PDFPage<AnyView>] {
54 | [PDFPage(
| |- warning: sending 'first' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'first' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
55 | size: PDFDocument.defaultPageSize,
56 | erasing: first
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:65:22: warning: sending 'next' risks causing data races; this is an error in the Swift 6 language mode
63 | ) -> [PDFPage<AnyView>] {
64 | var pages = accumulated
65 | pages.append(PDFPage(
| |- warning: sending 'next' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'next' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
66 | size: PDFDocument.defaultPageSize,
67 | erasing: next
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:91:13: warning: sending task-isolated value of type '() -> some View' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
89 | public static func buildPartialBlock(first: some View) -> PDFDocument {
90 | PDFDocument {
91 | PDFPage(size: PDFDocument.defaultPageSize) {
| `- warning: sending task-isolated value of type '() -> some View' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
92 | first
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/PDFViewKit/PDFDocument.swift:99:22: warning: sending 'next' risks causing data races; this is an error in the Swift 6 language mode
97 | public static func buildPartialBlock(accumulated: PDFDocument, next: some View) -> PDFDocument {
98 | var pages = accumulated.pages
99 | pages.append(PDFPage(
| |- warning: sending 'next' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'next' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
100 | size: PDFDocument.defaultPageSize,
101 | erasing: next
Build complete! (18.79s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "PDFViewKit",
"name" : "PDFViewKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "PDFViewKit",
"targets" : [
"PDFViewKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PDFViewKit",
"module_type" : "SwiftTarget",
"name" : "PDFViewKit",
"path" : "Sources/PDFViewKit",
"product_memberships" : [
"PDFViewKit"
],
"sources" : [
"EnvironmentKeys/PDFPageSizeKey.swift",
"EnvironmentKeys/PDFRenderingDPIKey.swift",
"EnvironmentKeys/RenderingEnvironmentKey.swift",
"Modifiers/ApplyPDFSizeFrameModifier.swift",
"Modifiers/View+ApplyIf.swift",
"PDFDocument.swift",
"PDFPage.swift",
"PDFRenderer.swift",
"PageSizes/DIN.swift",
"PageSizes/DPI.swift",
"PageSizes/PageSize.swift",
"Views/PDFLink.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Done.