Build Information
Successful build of CompositionalLayoutBuilder, reference 0.1.4 (2bbfba
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 05:57:11 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
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/edonv/CompositionalLayoutBuilder.git
Reference: 0.1.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/edonv/CompositionalLayoutBuilder
* tag 0.1.4 -> FETCH_HEAD
HEAD is now at 2bbfba3 Update CompositionalLayout.swift
Cloned https://github.com/edonv/CompositionalLayoutBuilder.git
Revision (git rev-parse @):
2bbfba3b16c0ee06d2b06b3bea8ecbc03cc70be7
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/edonv/CompositionalLayoutBuilder.git at 0.1.4
========================================
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": "compositionallayoutbuilder",
"name": "CompositionalLayoutBuilder",
"url": "https://github.com/edonv/CompositionalLayoutBuilder.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CompositionalLayoutBuilder",
"dependencies": [
]
}
]
}
Fetching https://github.com/edonv/CompositionalLayoutBuilder.git
[1/232] Fetching compositionallayoutbuilder
Fetched https://github.com/edonv/CompositionalLayoutBuilder.git from cache (0.66s)
Creating working copy for https://github.com/edonv/CompositionalLayoutBuilder.git
Working copy of https://github.com/edonv/CompositionalLayoutBuilder.git resolved at 0.1.4 (2bbfba3)
warning: '.resolve-product-dependencies': dependency 'compositionallayoutbuilder' 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/edonv/CompositionalLayoutBuilder.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/12] Compiling CompositionalLayoutBuilder UICollectionViewController+Extensions.swift
[4/12] Compiling CompositionalLayoutBuilder UICollectionView+Extensions.swift
[5/12] Compiling CompositionalLayoutBuilder CompositionalSection.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalSection.swift:29:25: warning: call to main actor-isolated initializer 'init(group:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 |
28 | public init(group: @escaping () -> CompositionalGroup) {
29 | self.section = .init(group: group().group)
| `- warning: call to main actor-isolated initializer 'init(group:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | }
31 |
AppKit.NSCollectionLayoutSection:3:35: note: calls to initializer 'init(group:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSection : NSObject, NSCopying {
3 | @MainActor public convenience init(group: NSCollectionLayoutGroup)
| `- note: calls to initializer 'init(group:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(group:)", message: "Not available in Swift")
5 | open class func sectionWithGroup(_ group: NSCollectionLayoutGroup) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalSection.swift:39:21: warning: main actor-isolated property 'orthogonalScrollingBehavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
35 | ///
36 | /// For more details, see: [orthogonalScrollingBehavior](https://developer.apple.com/documentation/uikit/nscollectionlayoutsection/3199094-orthogonalscrollingbehavior)
37 | public func orthogonalScrollingBehavior(_ behavior: OrthogonalScrollingBehavior) -> Self {
| `- note: add '@MainActor' to make instance method 'orthogonalScrollingBehavior' part of global actor 'MainActor'
38 | let new = self
39 | new.section.orthogonalScrollingBehavior = behavior
| `- warning: main actor-isolated property 'orthogonalScrollingBehavior' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
40 | return new
41 | }
AppKit.NSCollectionLayoutSection:12:14: note: mutation of this property is only permitted within the actor
10 | open var contentInsets: NSDirectionalEdgeInsets { get set }
11 | open var interGroupSpacing: CGFloat { get set }
12 | open var orthogonalScrollingBehavior: NSCollectionLayoutSectionOrthogonalScrollingBehavior { get set }
| `- note: mutation of this property is only permitted within the actor
13 | open var boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem] { get set }
14 | open var supplementariesFollowContentInsets: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalSection.swift:62:21: warning: main actor-isolated property 'interGroupSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
58 |
59 | /// The amount of space between the groups in the section.
60 | public func interItemSpacing(_ spacing: CGFloat) -> Self {
| `- note: add '@MainActor' to make instance method 'interItemSpacing' part of global actor 'MainActor'
61 | let new = self
62 | new.section.interGroupSpacing = spacing
| `- warning: main actor-isolated property 'interGroupSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
63 | return new
64 | }
AppKit.NSCollectionLayoutSection:11:14: note: mutation of this property is only permitted within the actor
9 | open class func new() -> Self
10 | open var contentInsets: NSDirectionalEdgeInsets { get set }
11 | open var interGroupSpacing: CGFloat { get set }
| `- note: mutation of this property is only permitted within the actor
12 | open var orthogonalScrollingBehavior: NSCollectionLayoutSectionOrthogonalScrollingBehavior { get set }
13 | open var boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalSection.swift:69:21: warning: main actor-isolated property 'contentInsets' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
65 |
66 | /// The amount of space between the content of the section and its boundaries.
67 | public func contentInsets(_ insets: EdgeInsets) -> Self {
| `- note: add '@MainActor' to make instance method 'contentInsets' part of global actor 'MainActor'
68 | let new = self
69 | new.section.contentInsets = .init(backport: insets)
| `- warning: main actor-isolated property 'contentInsets' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
70 | return new
71 | }
AppKit.NSCollectionLayoutSection:10:14: note: mutation of this property is only permitted within the actor
8 | @available(*, unavailable)
9 | open class func new() -> Self
10 | open var contentInsets: NSDirectionalEdgeInsets { get set }
| `- note: mutation of this property is only permitted within the actor
11 | open var interGroupSpacing: CGFloat { get set }
12 | open var orthogonalScrollingBehavior: NSCollectionLayoutSectionOrthogonalScrollingBehavior { get set }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalSection.swift:116:21: warning: main actor-isolated property 'visibleItemsInvalidationHandler' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
110 | /// For more details, see: [contentInsetsReference](https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3199084-contentinsets)
111 | @available(iOS 14, macCatalyst 14, tvOS 14, visionOS 1, *)
112 | public func visibleItemsInvalidationHandler(
| `- note: add '@MainActor' to make instance method 'visibleItemsInvalidationHandler' part of global actor 'MainActor'
113 | _ handler: NSCollectionLayoutSectionVisibleItemsInvalidationHandler?
114 | ) -> Self {
115 | let new = self
116 | new.section.visibleItemsInvalidationHandler = handler
| `- warning: main actor-isolated property 'visibleItemsInvalidationHandler' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | return new
118 | }
AppKit.NSCollectionLayoutSection:15:14: note: mutation of this property is only permitted within the actor
13 | open var boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem] { get set }
14 | open var supplementariesFollowContentInsets: Bool { get set }
15 | open var visibleItemsInvalidationHandler: NSCollectionLayoutSectionVisibleItemsInvalidationHandler? { get set }
| `- note: mutation of this property is only permitted within the actor
16 | open var decorationItems: [NSCollectionLayoutDecorationItem] { get set }
17 | @available(macOS 10.15, *)
[6/12] Compiling CompositionalLayoutBuilder CompositionalLayout.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalLayout.swift:35:23: warning: call to main actor-isolated initializer 'init(sectionProvider:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 |
34 | internal init(sections: [NSCollectionLayoutSection]) {
35 | self.layout = Layout { section, _ in
| `- warning: call to main actor-isolated initializer 'init(sectionProvider:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | sections[section % sections.count]
37 | }
AppKit.NSCollectionViewCompositionalLayout:5:23: note: calls to initializer 'init(sectionProvider:)' from outside of its actor context are implicitly asynchronous
3 | @MainActor public init(section: NSCollectionLayoutSection)
4 | public init(section: NSCollectionLayoutSection, configuration: NSCollectionViewCompositionalLayoutConfiguration)
5 | @MainActor public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider)
| `- note: calls to initializer 'init(sectionProvider:)' from outside of its actor context are implicitly asynchronous
6 | public init(sectionProvider: @escaping NSCollectionViewCompositionalLayoutSectionProvider, configuration: NSCollectionViewCompositionalLayoutConfiguration)
7 | @available(*, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalLayout.swift:51:34: warning: main actor-isolated property 'scrollDirection' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
47 |
48 | /// The axis that the content in the collection view layout scrolls along.
49 | public func scrollDirection(_ scrollDirection: ScrollDirection) -> Self {
| `- note: add '@MainActor' to make instance method 'scrollDirection' part of global actor 'MainActor'
50 | let new = self
51 | new.layout.configuration.scrollDirection = scrollDirection
| `- warning: main actor-isolated property 'scrollDirection' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
52 | return new
53 | }
AppKit.NSCollectionViewCompositionalLayoutConfiguration:3:25: note: mutation of this property is only permitted within the actor
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionViewCompositionalLayoutConfiguration : NSObject, NSCopying {
3 | @MainActor open var scrollDirection: NSCollectionView.ScrollDirection { get set }
| `- note: mutation of this property is only permitted within the actor
4 | open var interSectionSpacing: CGFloat { get set }
5 | open var boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalLayout.swift:51:20: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 |
48 | /// The axis that the content in the collection view layout scrolls along.
49 | public func scrollDirection(_ scrollDirection: ScrollDirection) -> Self {
| `- note: add '@MainActor' to make instance method 'scrollDirection' part of global actor 'MainActor'
50 | let new = self
51 | new.layout.configuration.scrollDirection = scrollDirection
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 | return new
53 | }
AppKit.NSCollectionViewCompositionalLayout:11:25: note: property declared here
9 | @available(*, unavailable)
10 | open class func new() -> Self
11 | @NSCopying open var configuration: NSCollectionViewCompositionalLayoutConfiguration { get set }
| `- note: property declared here
12 | @MainActor public init?(coder: NSCoder)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalLayout.swift:60:34: warning: main actor-isolated property 'interSectionSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
56 |
57 | /// The amount of space between the sections in the layout.
58 | public func interSectionSpacing(_ interSectionSpacing: CGFloat) -> Self {
| `- note: add '@MainActor' to make instance method 'interSectionSpacing' part of global actor 'MainActor'
59 | let new = self
60 | new.layout.configuration.interSectionSpacing = interSectionSpacing
| `- warning: main actor-isolated property 'interSectionSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
61 | return new
62 | }
AppKit.NSCollectionViewCompositionalLayoutConfiguration:4:14: note: mutation of this property is only permitted within the actor
2 | @MainActor open class NSCollectionViewCompositionalLayoutConfiguration : NSObject, NSCopying {
3 | @MainActor open var scrollDirection: NSCollectionView.ScrollDirection { get set }
4 | open var interSectionSpacing: CGFloat { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open var boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem] { get set }
6 | public init()
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalLayout.swift:60:20: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
56 |
57 | /// The amount of space between the sections in the layout.
58 | public func interSectionSpacing(_ interSectionSpacing: CGFloat) -> Self {
| `- note: add '@MainActor' to make instance method 'interSectionSpacing' part of global actor 'MainActor'
59 | let new = self
60 | new.layout.configuration.interSectionSpacing = interSectionSpacing
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
61 | return new
62 | }
AppKit.NSCollectionViewCompositionalLayout:11:25: note: property declared here
9 | @available(*, unavailable)
10 | open class func new() -> Self
11 | @NSCopying open var configuration: NSCollectionViewCompositionalLayoutConfiguration { get set }
| `- note: property declared here
12 | @MainActor public init?(coder: NSCoder)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalLayout.swift:85:34: warning: main actor-isolated property 'boundarySupplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
79 |
80 | /// An array of the supplementary items that are associated with the boundary edges of the entire layout, such as global headers and footers.
81 | public func boundarySupplementaryItems(
| `- note: add '@MainActor' to make instance method 'boundarySupplementaryItems' part of global actor 'MainActor'
82 | _ boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem]
83 | ) -> Self {
84 | let new = self
85 | new.layout.configuration.boundarySupplementaryItems = boundarySupplementaryItems
| `- warning: main actor-isolated property 'boundarySupplementaryItems' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
86 | return new
87 | }
AppKit.NSCollectionViewCompositionalLayoutConfiguration:5:14: note: mutation of this property is only permitted within the actor
3 | @MainActor open var scrollDirection: NSCollectionView.ScrollDirection { get set }
4 | open var interSectionSpacing: CGFloat { get set }
5 | open var boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem] { get set }
| `- note: mutation of this property is only permitted within the actor
6 | public init()
7 | @available(macOS 10.15, *)
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalLayout.swift:85:20: warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
79 |
80 | /// An array of the supplementary items that are associated with the boundary edges of the entire layout, such as global headers and footers.
81 | public func boundarySupplementaryItems(
| `- note: add '@MainActor' to make instance method 'boundarySupplementaryItems' part of global actor 'MainActor'
82 | _ boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem]
83 | ) -> Self {
84 | let new = self
85 | new.layout.configuration.boundarySupplementaryItems = boundarySupplementaryItems
| `- warning: main actor-isolated property 'configuration' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
86 | return new
87 | }
AppKit.NSCollectionViewCompositionalLayout:11:25: note: property declared here
9 | @available(*, unavailable)
10 | open class func new() -> Self
11 | @NSCopying open var configuration: NSCollectionViewCompositionalLayoutConfiguration { get set }
| `- note: property declared here
12 | @MainActor public init?(coder: NSCoder)
13 | }
[7/12] Compiling CompositionalLayoutBuilder CompositionalGroup.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:22:27: warning: call to main actor-isolated class method 'horizontal(layoutSize:subitems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
20 | switch axis {
21 | case .horizontal:
22 | self.group = .horizontal(layoutSize: .init(widthDimension: width, heightDimension: height),
| `- warning: call to main actor-isolated class method 'horizontal(layoutSize:subitems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | subitems: builder())
24 | case .vertical:
AppKit.NSCollectionLayoutGroup:6:32: note: calls to class method 'horizontal(layoutSize:subitems:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "horizontal(layoutSize:subitem:count:)")
5 | open class func horizontalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self
6 | @MainActor open class func horizontal(layoutSize: NSCollectionLayoutSize, subitems: [NSCollectionLayoutItem]) -> Self
| `- note: calls to class method 'horizontal(layoutSize:subitems:)' from outside of its actor context are implicitly asynchronous
7 | @available(swift, obsoleted: 3, renamed: "horizontal(layoutSize:subitems:)")
8 | open class func horizontalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitems: [NSCollectionLayoutItem]) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:22:51: warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
20 | switch axis {
21 | case .horizontal:
22 | self.group = .horizontal(layoutSize: .init(widthDimension: width, heightDimension: height),
| `- warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | subitems: builder())
24 | case .vertical:
AppKit.NSCollectionLayoutSize:3:35: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSize : NSObject, NSCopying {
3 | @MainActor public convenience init(widthDimension width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension)
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(widthDimension:heightDimension:)", message: "Not available in Swift")
5 | open class func sizeWithWidthDimension(_ width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:25:27: warning: call to main actor-isolated class method 'vertical(layoutSize:subitems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | subitems: builder())
24 | case .vertical:
25 | self.group = .vertical(layoutSize: .init(widthDimension: width, heightDimension: height),
| `- warning: call to main actor-isolated class method 'vertical(layoutSize:subitems:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | subitems: builder())
27 | }
AppKit.NSCollectionLayoutGroup:12:32: note: calls to class method 'vertical(layoutSize:subitems:)' from outside of its actor context are implicitly asynchronous
10 | @available(swift, obsoleted: 3, renamed: "vertical(layoutSize:subitem:count:)")
11 | open class func verticalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitem: NSCollectionLayoutItem, count: Int) -> Self
12 | @MainActor open class func vertical(layoutSize: NSCollectionLayoutSize, subitems: [NSCollectionLayoutItem]) -> Self
| `- note: calls to class method 'vertical(layoutSize:subitems:)' from outside of its actor context are implicitly asynchronous
13 | @available(swift, obsoleted: 3, renamed: "vertical(layoutSize:subitems:)")
14 | open class func verticalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitems: [NSCollectionLayoutItem]) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:25:49: warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | subitems: builder())
24 | case .vertical:
25 | self.group = .vertical(layoutSize: .init(widthDimension: width, heightDimension: height),
| `- warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | subitems: builder())
27 | }
AppKit.NSCollectionLayoutSize:3:35: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSize : NSObject, NSCopying {
3 | @MainActor public convenience init(widthDimension width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension)
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(widthDimension:heightDimension:)", message: "Not available in Swift")
5 | open class func sizeWithWidthDimension(_ width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:35:23: warning: call to main actor-isolated class method 'custom(layoutSize:itemProvider:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | customItemProvider itemProvider: @escaping NSCollectionLayoutGroupCustomItemProvider
34 | ) {
35 | self.group = .custom(layoutSize: .init(widthDimension: width, heightDimension: height),
| `- warning: call to main actor-isolated class method 'custom(layoutSize:itemProvider:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | itemProvider: itemProvider)
37 | }
AppKit.NSCollectionLayoutGroup:15:21: note: calls to class method 'custom(layoutSize:itemProvider:)' from outside of its actor context are implicitly asynchronous
13 | @available(swift, obsoleted: 3, renamed: "vertical(layoutSize:subitems:)")
14 | open class func verticalGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, subitems: [NSCollectionLayoutItem]) -> Self
15 | open class func custom(layoutSize: NSCollectionLayoutSize, itemProvider: @escaping NSCollectionLayoutGroupCustomItemProvider) -> Self
| `- note: calls to class method 'custom(layoutSize:itemProvider:)' from outside of its actor context are implicitly asynchronous
16 | @available(swift, obsoleted: 3, renamed: "custom(layoutSize:itemProvider:)")
17 | open class func customGroupWithLayoutSize(_ layoutSize: NSCollectionLayoutSize, itemProvider: @escaping NSCollectionLayoutGroupCustomItemProvider) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:35:43: warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
33 | customItemProvider itemProvider: @escaping NSCollectionLayoutGroupCustomItemProvider
34 | ) {
35 | self.group = .custom(layoutSize: .init(widthDimension: width, heightDimension: height),
| `- warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | itemProvider: itemProvider)
37 | }
AppKit.NSCollectionLayoutSize:3:35: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSize : NSObject, NSCopying {
3 | @MainActor public convenience init(widthDimension width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension)
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(widthDimension:heightDimension:)", message: "Not available in Swift")
5 | open class func sizeWithWidthDimension(_ width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:44:19: warning: main actor-isolated property 'interItemSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
40 |
41 | /// Sets the amount of space between the items in the group.
42 | public func interItemSpacing(_ spacing: NSCollectionLayoutSpacing) -> Self {
| `- note: add '@MainActor' to make instance method 'interItemSpacing' part of global actor 'MainActor'
43 | let new = self
44 | new.group.interItemSpacing = spacing
| `- warning: main actor-isolated property 'interItemSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
45 | return new
46 | }
AppKit.NSCollectionLayoutGroup:23:25: note: mutation of this property is only permitted within the actor
21 | open class func new() -> Self
22 | open var supplementaryItems: [NSCollectionLayoutSupplementaryItem] { get set }
23 | @NSCopying open var interItemSpacing: NSCollectionLayoutSpacing? { get set }
| `- note: mutation of this property is only permitted within the actor
24 | open var subitems: [NSCollectionLayoutItem] { get }
25 | open func visualDescription() -> String
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:52:21: warning: call to main actor-isolated instance method 'visualDescription()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 |
50 | /// Returns the layout while printing an ASCII representation of the group.
51 | public func printVisualDescription() -> Self {
| `- note: add '@MainActor' to make instance method 'printVisualDescription()' part of global actor 'MainActor'
52 | print(group.visualDescription())
| `- warning: call to main actor-isolated instance method 'visualDescription()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | return self
54 | }
AppKit.NSCollectionLayoutGroup:25:15: note: calls to instance method 'visualDescription()' from outside of its actor context are implicitly asynchronous
23 | @NSCopying open var interItemSpacing: NSCollectionLayoutSpacing? { get set }
24 | open var subitems: [NSCollectionLayoutItem] { get }
25 | open func visualDescription() -> String
| `- note: calls to instance method 'visualDescription()' from outside of its actor context are implicitly asynchronous
26 | public convenience init(layoutSize: NSCollectionLayoutSize)
27 | public convenience init(layoutSize: NSCollectionLayoutSize, supplementaryItems: [NSCollectionLayoutSupplementaryItem])
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:58:15: warning: call to main actor-isolated instance method 'visualDescription()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 |
56 | /// Returns a string with an ASCII representation of the group.
57 | public func visualDescription() -> String {
| `- note: add '@MainActor' to make instance method 'visualDescription()' part of global actor 'MainActor'
58 | group.visualDescription()
| `- warning: call to main actor-isolated instance method 'visualDescription()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 |
AppKit.NSCollectionLayoutGroup:25:15: note: calls to instance method 'visualDescription()' from outside of its actor context are implicitly asynchronous
23 | @NSCopying open var interItemSpacing: NSCollectionLayoutSpacing? { get set }
24 | open var subitems: [NSCollectionLayoutItem] { get }
25 | open func visualDescription() -> String
| `- note: calls to instance method 'visualDescription()' from outside of its actor context are implicitly asynchronous
26 | public convenience init(layoutSize: NSCollectionLayoutSize)
27 | public convenience init(layoutSize: NSCollectionLayoutSize, supplementaryItems: [NSCollectionLayoutSupplementaryItem])
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:68:19: warning: main actor-isolated property 'edgeSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
64 | ///
65 | /// For more details, see: [edgeSpacing](https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3199085-edgespacing)
66 | public func edgeSpacing(_ spacing: NSCollectionLayoutEdgeSpacing) -> Self {
| `- note: add '@MainActor' to make instance method 'edgeSpacing' part of global actor 'MainActor'
67 | let new = self
68 | new.group.edgeSpacing = spacing
| `- warning: main actor-isolated property 'edgeSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
69 | return new
70 | }
AppKit.NSCollectionLayoutItem:14:36: note: mutation of this property is only permitted within the actor
12 | open class func new() -> Self
13 | open var contentInsets: NSDirectionalEdgeInsets { get set }
14 | @NSCopying @MainActor open var edgeSpacing: NSCollectionLayoutEdgeSpacing? { get set }
| `- note: mutation of this property is only permitted within the actor
15 | open var layoutSize: NSCollectionLayoutSize { get }
16 | open var supplementaryItems: [NSCollectionLayoutSupplementaryItem] { get }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:77:19: warning: main actor-isolated property 'contentInsets' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
73 | ///
74 | /// For more details, see: [contentInsets](https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3199084-contentinsets)
75 | public func contentInsets(_ insets: EdgeInsets) -> Self {
| `- note: add '@MainActor' to make instance method 'contentInsets' part of global actor 'MainActor'
76 | let new = self
77 | new.group.contentInsets = .init(backport: insets)
| `- warning: main actor-isolated property 'contentInsets' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
78 | return new
79 | }
AppKit.NSCollectionLayoutItem:13:14: note: mutation of this property is only permitted within the actor
11 | @available(*, unavailable)
12 | open class func new() -> Self
13 | open var contentInsets: NSDirectionalEdgeInsets { get set }
| `- note: mutation of this property is only permitted within the actor
14 | @NSCopying @MainActor open var edgeSpacing: NSCollectionLayoutEdgeSpacing? { get set }
15 | open var layoutSize: NSCollectionLayoutSize { get }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalGroup.swift:35:23: warning: sending task-isolated value of type 'NSCollectionLayoutGroupCustomItemProvider' (aka '(any NSCollectionLayoutEnvironment) -> Array<NSCollectionLayoutGroupCustomItem>') with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
33 | customItemProvider itemProvider: @escaping NSCollectionLayoutGroupCustomItemProvider
34 | ) {
35 | self.group = .custom(layoutSize: .init(widthDimension: width, heightDimension: height),
| `- warning: sending task-isolated value of type 'NSCollectionLayoutGroupCustomItemProvider' (aka '(any NSCollectionLayoutEnvironment) -> Array<NSCollectionLayoutGroupCustomItem>') with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
36 | itemProvider: itemProvider)
37 | }
[8/12] Compiling CompositionalLayoutBuilder CollectionLayoutGroupBuilder.swift
[9/12] Compiling CompositionalLayoutBuilder NSDirectionalEdgeInsets+Backport.swift
[10/12] Compiling CompositionalLayoutBuilder CompositionalLayoutBuilder.swift
[11/12] Emitting module CompositionalLayoutBuilder
[12/12] Compiling CompositionalLayoutBuilder CompositionalItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalItem.swift:20:22: warning: call to main actor-isolated initializer 'init(layoutSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
18 | height: NSCollectionLayoutDimension
19 | ) {
20 | self.item = .init(layoutSize: .init(widthDimension: width, heightDimension: height))
| `- warning: call to main actor-isolated initializer 'init(layoutSize:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 | }
22 |
AppKit.NSCollectionLayoutItem:3:35: note: calls to initializer 'init(layoutSize:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutItem : NSObject, NSCopying {
3 | @MainActor public convenience init(layoutSize: NSCollectionLayoutSize)
| `- note: calls to initializer 'init(layoutSize:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(layoutSize:)", message: "Not available in Swift")
5 | open class func itemWithLayoutSize(_ layoutSize: NSCollectionLayoutSize) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalItem.swift:20:40: warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
18 | height: NSCollectionLayoutDimension
19 | ) {
20 | self.item = .init(layoutSize: .init(widthDimension: width, heightDimension: height))
| `- warning: call to main actor-isolated initializer 'init(widthDimension:heightDimension:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
21 | }
22 |
AppKit.NSCollectionLayoutSize:3:35: note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
1 | @available(macOS 10.15, *)
2 | @MainActor open class NSCollectionLayoutSize : NSObject, NSCopying {
3 | @MainActor public convenience init(widthDimension width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension)
| `- note: calls to initializer 'init(widthDimension:heightDimension:)' from outside of its actor context are implicitly asynchronous
4 | @available(*, unavailable, renamed: "init(widthDimension:heightDimension:)", message: "Not available in Swift")
5 | open class func sizeWithWidthDimension(_ width: NSCollectionLayoutDimension, heightDimension height: NSCollectionLayoutDimension) -> Self
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalItem.swift:38:18: warning: main actor-isolated property 'edgeSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
34 | ///
35 | /// For more details, see: [edgeSpacing](https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3199085-edgespacing)
36 | public func edgeSpacing(_ spacing: NSCollectionLayoutEdgeSpacing) -> Self {
| `- note: add '@MainActor' to make instance method 'edgeSpacing' part of global actor 'MainActor'
37 | let new = self
38 | new.item.edgeSpacing = spacing
| `- warning: main actor-isolated property 'edgeSpacing' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
39 | return new
40 | }
AppKit.NSCollectionLayoutItem:14:25: note: mutation of this property is only permitted within the actor
12 | open class func new() -> Self
13 | open var contentInsets: NSDirectionalEdgeInsets { get set }
14 | @NSCopying open var edgeSpacing: NSCollectionLayoutEdgeSpacing? { get set }
| `- note: mutation of this property is only permitted within the actor
15 | open var layoutSize: NSCollectionLayoutSize { get }
16 | open var supplementaryItems: [NSCollectionLayoutSupplementaryItem] { get }
/Users/admin/builder/spi-builder-workspace/Sources/CompositionalLayoutBuilder/Layout Building Blocks/CompositionalItem.swift:47:18: warning: main actor-isolated property 'contentInsets' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
43 | ///
44 | /// For more details, see: [contentInsets](https://developer.apple.com/documentation/uikit/nscollectionlayoutitem/3199084-contentinsets)
45 | public func contentInsets(_ insets: EdgeInsets) -> Self {
| `- note: add '@MainActor' to make instance method 'contentInsets' part of global actor 'MainActor'
46 | let new = self
47 | new.item.contentInsets = .init(backport: insets)
| `- warning: main actor-isolated property 'contentInsets' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
48 | return new
49 | }
AppKit.NSCollectionLayoutItem:13:14: note: mutation of this property is only permitted within the actor
11 | @available(*, unavailable)
12 | open class func new() -> Self
13 | open var contentInsets: NSDirectionalEdgeInsets { get set }
| `- note: mutation of this property is only permitted within the actor
14 | @NSCopying open var edgeSpacing: NSCollectionLayoutEdgeSpacing? { get set }
15 | open var layoutSize: NSCollectionLayoutSize { get }
Build complete! (18.88s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "CompositionalLayoutBuilder",
"name" : "CompositionalLayoutBuilder",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "CompositionalLayoutBuilder",
"targets" : [
"CompositionalLayoutBuilder"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CompositionalLayoutBuilderTests",
"module_type" : "SwiftTarget",
"name" : "CompositionalLayoutBuilderTests",
"path" : "Tests/CompositionalLayoutBuilderTests",
"sources" : [
"CompositionalLayoutBuilderTests.swift"
],
"target_dependencies" : [
"CompositionalLayoutBuilder"
],
"type" : "test"
},
{
"c99name" : "CompositionalLayoutBuilder",
"module_type" : "SwiftTarget",
"name" : "CompositionalLayoutBuilder",
"path" : "Sources/CompositionalLayoutBuilder",
"product_memberships" : [
"CompositionalLayoutBuilder"
],
"sources" : [
"Builders/CollectionLayoutGroupBuilder.swift",
"Builders/CompositionalLayoutBuilder.swift",
"Internal Helpers/NSDirectionalEdgeInsets+Backport.swift",
"Layout Building Blocks/CompositionalGroup.swift",
"Layout Building Blocks/CompositionalItem.swift",
"Layout Building Blocks/CompositionalLayout.swift",
"Layout Building Blocks/CompositionalSection.swift",
"Public Helpers/UICollectionView+Extensions.swift",
"Public Helpers/UICollectionViewController+Extensions.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.