Build Information
Failed to build SwiftUIBackports, reference main (f5f23b
), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 00:48:47 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
25 | /// - Returns: A view that fires an action when the specified value changes.
26 | @ViewBuilder
27 | func onChange<Value: Equatable>(of value: Value, perform action: @escaping (Value) -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'onChange(of:perform:)' part of global actor 'MainActor'
28 | if #available(iOS 14, tvOS 14, macOS 11, watchOS 7, *) {
29 | wrapped.onChange(of: value, perform: action)
30 | } else {
31 | wrapped.modifier(ChangeModifier(value: value, action: action))
| `- warning: call to main actor-isolated initializer 'init(value:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
32 | }
33 | }
:
41 | @State var oldValue: Value?
42 |
43 | init(value: Value, action: @escaping (Value) -> Void) {
| `- note: calls to initializer 'init(value:action:)' from outside of its actor context are implicitly asynchronous
44 | self.value = value
45 | self.action = action
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/OnChange/OnChange.swift:31:30: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
29 | wrapped.onChange(of: value, perform: action)
30 | } else {
31 | wrapped.modifier(ChangeModifier(value: value, action: action))
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'value' to main actor-isolated initializer 'init(value:action:)' risks causing data races between main actor-isolated and task-isolated uses
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/OnChange/OnChange.swift:31:30: warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
29 | wrapped.onChange(of: value, perform: action)
30 | } else {
31 | wrapped.modifier(ChangeModifier(value: value, action: action))
| |- warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'action' to main actor-isolated initializer 'init(value:action:)' risks causing data races between main actor-isolated and task-isolated uses
32 | }
33 | }
[129/153] Compiling SwiftUIBackports FetchAssetList.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/OnChange/OnChange.swift:31:30: warning: call to main actor-isolated initializer 'init(value:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | /// - Returns: A view that fires an action when the specified value changes.
26 | @ViewBuilder
27 | func onChange<Value: Equatable>(of value: Value, perform action: @escaping (Value) -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'onChange(of:perform:)' part of global actor 'MainActor'
28 | if #available(iOS 14, tvOS 14, macOS 11, watchOS 7, *) {
29 | wrapped.onChange(of: value, perform: action)
30 | } else {
31 | wrapped.modifier(ChangeModifier(value: value, action: action))
| `- warning: call to main actor-isolated initializer 'init(value:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
32 | }
33 | }
:
41 | @State var oldValue: Value?
42 |
43 | init(value: Value, action: @escaping (Value) -> Void) {
| `- note: calls to initializer 'init(value:action:)' from outside of its actor context are implicitly asynchronous
44 | self.value = value
45 | self.action = action
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/OnChange/OnChange.swift:31:30: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
29 | wrapped.onChange(of: value, perform: action)
30 | } else {
31 | wrapped.modifier(ChangeModifier(value: value, action: action))
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'value' to main actor-isolated initializer 'init(value:action:)' risks causing data races between main actor-isolated and task-isolated uses
32 | }
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/OnChange/OnChange.swift:31:30: warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
29 | wrapped.onChange(of: value, perform: action)
30 | } else {
31 | wrapped.modifier(ChangeModifier(value: value, action: action))
| |- warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'action' to main actor-isolated initializer 'init(value:action:)' risks causing data races between main actor-isolated and task-isolated uses
32 | }
33 | }
[130/153] Compiling SwiftUIBackports Task.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:56:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | /// the view appears.
53 | @ViewBuilder
54 | func task(priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(priority:_:)' part of global actor 'MainActor'
55 | wrapped.modifier(
56 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | id: 0,
58 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | /// the view appears, or restarts the task with the `id` value changes.
123 | @ViewBuilder
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(id:priority:_:)' part of global actor 'MainActor'
125 | wrapped.modifier(
126 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | id: id,
128 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
125 | wrapped.modifier(
126 | TaskModifier(
| |- warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'id' to main actor-isolated initializer 'init(id:priority:action:)' risks causing data races between main actor-isolated and task-isolated uses
127 | id: id,
128 | priority: priority,
[131/153] Compiling SwiftUIBackports Toolbar.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:56:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | /// the view appears.
53 | @ViewBuilder
54 | func task(priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(priority:_:)' part of global actor 'MainActor'
55 | wrapped.modifier(
56 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | id: 0,
58 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | /// the view appears, or restarts the task with the `id` value changes.
123 | @ViewBuilder
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(id:priority:_:)' part of global actor 'MainActor'
125 | wrapped.modifier(
126 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | id: id,
128 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
125 | wrapped.modifier(
126 | TaskModifier(
| |- warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'id' to main actor-isolated initializer 'init(id:priority:action:)' risks causing data races between main actor-isolated and task-isolated uses
127 | id: id,
128 | priority: priority,
[132/153] Compiling SwiftUIBackports ToolbarBackground+Environment.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:56:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | /// the view appears.
53 | @ViewBuilder
54 | func task(priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(priority:_:)' part of global actor 'MainActor'
55 | wrapped.modifier(
56 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | id: 0,
58 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | /// the view appears, or restarts the task with the `id` value changes.
123 | @ViewBuilder
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(id:priority:_:)' part of global actor 'MainActor'
125 | wrapped.modifier(
126 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | id: id,
128 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
125 | wrapped.modifier(
126 | TaskModifier(
| |- warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'id' to main actor-isolated initializer 'init(id:priority:action:)' risks causing data races between main actor-isolated and task-isolated uses
127 | id: id,
128 | priority: priority,
[133/153] Compiling SwiftUIBackports ToolbarBackground.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:56:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | /// the view appears.
53 | @ViewBuilder
54 | func task(priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(priority:_:)' part of global actor 'MainActor'
55 | wrapped.modifier(
56 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | id: 0,
58 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | /// the view appears, or restarts the task with the `id` value changes.
123 | @ViewBuilder
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(id:priority:_:)' part of global actor 'MainActor'
125 | wrapped.modifier(
126 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | id: id,
128 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
125 | wrapped.modifier(
126 | TaskModifier(
| |- warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'id' to main actor-isolated initializer 'init(id:priority:action:)' risks causing data races between main actor-isolated and task-isolated uses
127 | id: id,
128 | priority: priority,
[134/153] Compiling SwiftUIBackports ToolbarBackgroundModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:56:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | /// the view appears.
53 | @ViewBuilder
54 | func task(priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(priority:_:)' part of global actor 'MainActor'
55 | wrapped.modifier(
56 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | id: 0,
58 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | /// the view appears, or restarts the task with the `id` value changes.
123 | @ViewBuilder
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(id:priority:_:)' part of global actor 'MainActor'
125 | wrapped.modifier(
126 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | id: id,
128 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
125 | wrapped.modifier(
126 | TaskModifier(
| |- warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'id' to main actor-isolated initializer 'init(id:priority:action:)' risks causing data races between main actor-isolated and task-isolated uses
127 | id: id,
128 | priority: priority,
[135/153] Compiling SwiftUIBackports PushTransition.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:56:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | /// the view appears.
53 | @ViewBuilder
54 | func task(priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(priority:_:)' part of global actor 'MainActor'
55 | wrapped.modifier(
56 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | id: 0,
58 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | /// the view appears, or restarts the task with the `id` value changes.
123 | @ViewBuilder
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(id:priority:_:)' part of global actor 'MainActor'
125 | wrapped.modifier(
126 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | id: id,
128 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
125 | wrapped.modifier(
126 | TaskModifier(
| |- warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'id' to main actor-isolated initializer 'init(id:priority:action:)' risks causing data races between main actor-isolated and task-isolated uses
127 | id: id,
128 | priority: priority,
[136/153] Compiling SwiftUIBackports Visibility.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:56:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | /// the view appears.
53 | @ViewBuilder
54 | func task(priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(priority:_:)' part of global actor 'MainActor'
55 | wrapped.modifier(
56 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | id: 0,
58 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | /// the view appears, or restarts the task with the `id` value changes.
123 | @ViewBuilder
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(id:priority:_:)' part of global actor 'MainActor'
125 | wrapped.modifier(
126 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | id: id,
128 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
125 | wrapped.modifier(
126 | TaskModifier(
| |- warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'id' to main actor-isolated initializer 'init(id:priority:action:)' risks causing data races between main actor-isolated and task-isolated uses
127 | id: id,
128 | priority: priority,
[137/153] Compiling SwiftUIBackports AutoCapitalization.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:56:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | /// the view appears.
53 | @ViewBuilder
54 | func task(priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(priority:_:)' part of global actor 'MainActor'
55 | wrapped.modifier(
56 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | id: 0,
58 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | /// the view appears, or restarts the task with the `id` value changes.
123 | @ViewBuilder
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(id:priority:_:)' part of global actor 'MainActor'
125 | wrapped.modifier(
126 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | id: id,
128 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
125 | wrapped.modifier(
126 | TaskModifier(
| |- warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'id' to main actor-isolated initializer 'init(id:priority:action:)' risks causing data races between main actor-isolated and task-isolated uses
127 | id: id,
128 | priority: priority,
[138/153] Compiling SwiftUIBackports FocusState.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:56:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | /// the view appears.
53 | @ViewBuilder
54 | func task(priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(priority:_:)' part of global actor 'MainActor'
55 | wrapped.modifier(
56 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | id: 0,
58 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | /// the view appears, or restarts the task with the `id` value changes.
123 | @ViewBuilder
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(id:priority:_:)' part of global actor 'MainActor'
125 | wrapped.modifier(
126 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | id: id,
128 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
125 | wrapped.modifier(
126 | TaskModifier(
| |- warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'id' to main actor-isolated initializer 'init(id:priority:action:)' risks causing data races between main actor-isolated and task-isolated uses
127 | id: id,
128 | priority: priority,
[139/153] Compiling SwiftUIBackports ViewFocused.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:56:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | /// the view appears.
53 | @ViewBuilder
54 | func task(priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(priority:_:)' part of global actor 'MainActor'
55 | wrapped.modifier(
56 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | id: 0,
58 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | /// the view appears, or restarts the task with the `id` value changes.
123 | @ViewBuilder
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(id:priority:_:)' part of global actor 'MainActor'
125 | wrapped.modifier(
126 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | id: id,
128 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
125 | wrapped.modifier(
126 | TaskModifier(
| |- warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'id' to main actor-isolated initializer 'init(id:priority:action:)' risks causing data races between main actor-isolated and task-isolated uses
127 | id: id,
128 | priority: priority,
[140/153] Compiling SwiftUIBackports BackgroundInteraction.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:56:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | /// the view appears.
53 | @ViewBuilder
54 | func task(priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(priority:_:)' part of global actor 'MainActor'
55 | wrapped.modifier(
56 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | id: 0,
58 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | /// the view appears, or restarts the task with the `id` value changes.
123 | @ViewBuilder
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(id:priority:_:)' part of global actor 'MainActor'
125 | wrapped.modifier(
126 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | id: id,
128 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
125 | wrapped.modifier(
126 | TaskModifier(
| |- warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'id' to main actor-isolated initializer 'init(id:priority:action:)' risks causing data races between main actor-isolated and task-isolated uses
127 | id: id,
128 | priority: priority,
[141/153] Compiling SwiftUIBackports ContentInteraction.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:56:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | /// the view appears.
53 | @ViewBuilder
54 | func task(priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(priority:_:)' part of global actor 'MainActor'
55 | wrapped.modifier(
56 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
57 | id: 0,
58 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
122 | /// the view appears, or restarts the task with the `id` value changes.
123 | @ViewBuilder
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
| `- note: add '@MainActor' to make instance method 'task(id:priority:_:)' part of global actor 'MainActor'
125 | wrapped.modifier(
126 | TaskModifier(
| `- warning: call to main actor-isolated initializer 'init(id:priority:action:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
127 | id: id,
128 | priority: priority,
:
143 | @State private var publisher = PassthroughSubject<(), Never>()
144 |
145 | init(id: ID, priority: TaskPriority, action: @Sendable @escaping () async -> Void) {
| `- note: calls to initializer 'init(id:priority:action:)' from outside of its actor context are implicitly asynchronous
146 | self.id = id
147 | self.priority = priority
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/Task/Task.swift:126:13: warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
124 | func task<T: Equatable>(id: T, priority: TaskPriority = .userInitiated, @_inheritActorContext _ action: @escaping @Sendable () async -> Void) -> some View {
125 | wrapped.modifier(
126 | TaskModifier(
| |- warning: sending 'id' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'id' to main actor-isolated initializer 'init(id:priority:action:)' risks causing data races between main actor-isolated and task-isolated uses
127 | id: id,
128 | priority: priority,
[142/153] Compiling SwiftUIBackports Items+Preview.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:84:14: warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
28 | }
29 |
30 | final class SourceView: NSView, NSSharingServicePickerDelegate, NSSharingServiceDelegate {
| `- note: add '@preconcurrency' to the 'NSSharingServicePickerDelegate' conformance to defer isolation checking to run time
31 | var picker: NSSharingServicePicker?
32 |
:
82 | }
83 |
84 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService] {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' to make this instance method not isolated to the actor
85 | proposedServices
86 | }
AppKit.NSSharingServicePickerDelegate:3:19: note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
1 | public protocol NSSharingServicePickerDelegate : NSObjectProtocol {
2 | @available(macOS 10.8, *)
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
| `- note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:75:14: warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
73 | }
74 |
75 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> NSSharingServiceDelegate? {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:delegateFor:)' to make this instance method not isolated to the actor
76 | return self
77 | }
AppKit.NSSharingServicePickerDelegate:5:19: note: 'sharingServicePicker(_:delegateFor:)' declared here
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
| `- note: 'sharingServicePicker(_:delegateFor:)' declared here
6 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:delegateFor:)")
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:79:21: warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
77 | }
78 |
79 | public func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?) {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:didChoose:)' to make this instance method not isolated to the actor
80 | sharingServicePicker.delegate = nil
81 | dismissController()
AppKit.NSSharingServicePickerDelegate:9:19: note: 'sharingServicePicker(_:didChoose:)' declared here
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
8 | @available(macOS 10.8, *)
9 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?)
| `- note: 'sharingServicePicker(_:didChoose:)' declared here
10 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:didChoose:)")
11 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChooseSharingService service: NSSharingService?)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:56: warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:9:43: note: property declared here
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:145:16: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | observedObject.value = state.value
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:146:17: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
146 | observedObject.value = state.value
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/System Overlays/SystemOverlays.swift:39: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
37 | private struct PersistentSystemOverlaysPreferenceKey: PreferenceKey {
38 | typealias Value = Backport<Any>.Visibility
39 | static var defaultValue: Value = .automatic
| |- 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
40 | static func reduce(value: inout Value, nextValue: () -> Value) {
41 | value = nextValue()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:139:9: error: return from initializer without initializing all stored properties
137 | public init(wrappedValue thunk: @autoclosure @escaping () -> Wrapped) {
138 | self.thunk = thunk
139 | }
| |- error: return from initializer without initializing all stored properties
| `- note: 'self.observedObject' not initialized
140 |
141 | public mutating func update() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| |- warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.wrappedValue' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[143/153] Compiling SwiftUIBackports Items.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:84:14: warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
28 | }
29 |
30 | final class SourceView: NSView, NSSharingServicePickerDelegate, NSSharingServiceDelegate {
| `- note: add '@preconcurrency' to the 'NSSharingServicePickerDelegate' conformance to defer isolation checking to run time
31 | var picker: NSSharingServicePicker?
32 |
:
82 | }
83 |
84 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService] {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' to make this instance method not isolated to the actor
85 | proposedServices
86 | }
AppKit.NSSharingServicePickerDelegate:3:19: note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
1 | public protocol NSSharingServicePickerDelegate : NSObjectProtocol {
2 | @available(macOS 10.8, *)
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
| `- note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:75:14: warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
73 | }
74 |
75 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> NSSharingServiceDelegate? {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:delegateFor:)' to make this instance method not isolated to the actor
76 | return self
77 | }
AppKit.NSSharingServicePickerDelegate:5:19: note: 'sharingServicePicker(_:delegateFor:)' declared here
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
| `- note: 'sharingServicePicker(_:delegateFor:)' declared here
6 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:delegateFor:)")
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:79:21: warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
77 | }
78 |
79 | public func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?) {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:didChoose:)' to make this instance method not isolated to the actor
80 | sharingServicePicker.delegate = nil
81 | dismissController()
AppKit.NSSharingServicePickerDelegate:9:19: note: 'sharingServicePicker(_:didChoose:)' declared here
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
8 | @available(macOS 10.8, *)
9 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?)
| `- note: 'sharingServicePicker(_:didChoose:)' declared here
10 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:didChoose:)")
11 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChooseSharingService service: NSSharingService?)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:56: warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:9:43: note: property declared here
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:145:16: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | observedObject.value = state.value
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:146:17: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
146 | observedObject.value = state.value
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/System Overlays/SystemOverlays.swift:39: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
37 | private struct PersistentSystemOverlaysPreferenceKey: PreferenceKey {
38 | typealias Value = Backport<Any>.Visibility
39 | static var defaultValue: Value = .automatic
| |- 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
40 | static func reduce(value: inout Value, nextValue: () -> Value) {
41 | value = nextValue()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:139:9: error: return from initializer without initializing all stored properties
137 | public init(wrappedValue thunk: @autoclosure @escaping () -> Wrapped) {
138 | self.thunk = thunk
139 | }
| |- error: return from initializer without initializing all stored properties
| `- note: 'self.observedObject' not initialized
140 |
141 | public mutating func update() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| |- warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.wrappedValue' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[144/153] Compiling SwiftUIBackports ShareLink.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:84:14: warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
28 | }
29 |
30 | final class SourceView: NSView, NSSharingServicePickerDelegate, NSSharingServiceDelegate {
| `- note: add '@preconcurrency' to the 'NSSharingServicePickerDelegate' conformance to defer isolation checking to run time
31 | var picker: NSSharingServicePicker?
32 |
:
82 | }
83 |
84 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService] {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' to make this instance method not isolated to the actor
85 | proposedServices
86 | }
AppKit.NSSharingServicePickerDelegate:3:19: note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
1 | public protocol NSSharingServicePickerDelegate : NSObjectProtocol {
2 | @available(macOS 10.8, *)
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
| `- note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:75:14: warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
73 | }
74 |
75 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> NSSharingServiceDelegate? {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:delegateFor:)' to make this instance method not isolated to the actor
76 | return self
77 | }
AppKit.NSSharingServicePickerDelegate:5:19: note: 'sharingServicePicker(_:delegateFor:)' declared here
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
| `- note: 'sharingServicePicker(_:delegateFor:)' declared here
6 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:delegateFor:)")
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:79:21: warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
77 | }
78 |
79 | public func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?) {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:didChoose:)' to make this instance method not isolated to the actor
80 | sharingServicePicker.delegate = nil
81 | dismissController()
AppKit.NSSharingServicePickerDelegate:9:19: note: 'sharingServicePicker(_:didChoose:)' declared here
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
8 | @available(macOS 10.8, *)
9 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?)
| `- note: 'sharingServicePicker(_:didChoose:)' declared here
10 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:didChoose:)")
11 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChooseSharingService service: NSSharingService?)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:56: warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:9:43: note: property declared here
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:145:16: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | observedObject.value = state.value
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:146:17: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
146 | observedObject.value = state.value
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/System Overlays/SystemOverlays.swift:39: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
37 | private struct PersistentSystemOverlaysPreferenceKey: PreferenceKey {
38 | typealias Value = Backport<Any>.Visibility
39 | static var defaultValue: Value = .automatic
| |- 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
40 | static func reduce(value: inout Value, nextValue: () -> Value) {
41 | value = nextValue()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:139:9: error: return from initializer without initializing all stored properties
137 | public init(wrappedValue thunk: @autoclosure @escaping () -> Wrapped) {
138 | self.thunk = thunk
139 | }
| |- error: return from initializer without initializing all stored properties
| `- note: 'self.observedObject' not initialized
140 |
141 | public mutating func update() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| |- warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.wrappedValue' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[145/153] Compiling SwiftUIBackports SharePreview.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:84:14: warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
28 | }
29 |
30 | final class SourceView: NSView, NSSharingServicePickerDelegate, NSSharingServiceDelegate {
| `- note: add '@preconcurrency' to the 'NSSharingServicePickerDelegate' conformance to defer isolation checking to run time
31 | var picker: NSSharingServicePicker?
32 |
:
82 | }
83 |
84 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService] {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' to make this instance method not isolated to the actor
85 | proposedServices
86 | }
AppKit.NSSharingServicePickerDelegate:3:19: note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
1 | public protocol NSSharingServicePickerDelegate : NSObjectProtocol {
2 | @available(macOS 10.8, *)
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
| `- note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:75:14: warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
73 | }
74 |
75 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> NSSharingServiceDelegate? {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:delegateFor:)' to make this instance method not isolated to the actor
76 | return self
77 | }
AppKit.NSSharingServicePickerDelegate:5:19: note: 'sharingServicePicker(_:delegateFor:)' declared here
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
| `- note: 'sharingServicePicker(_:delegateFor:)' declared here
6 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:delegateFor:)")
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:79:21: warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
77 | }
78 |
79 | public func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?) {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:didChoose:)' to make this instance method not isolated to the actor
80 | sharingServicePicker.delegate = nil
81 | dismissController()
AppKit.NSSharingServicePickerDelegate:9:19: note: 'sharingServicePicker(_:didChoose:)' declared here
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
8 | @available(macOS 10.8, *)
9 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?)
| `- note: 'sharingServicePicker(_:didChoose:)' declared here
10 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:didChoose:)")
11 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChooseSharingService service: NSSharingService?)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:56: warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:9:43: note: property declared here
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:145:16: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | observedObject.value = state.value
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:146:17: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
146 | observedObject.value = state.value
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/System Overlays/SystemOverlays.swift:39: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
37 | private struct PersistentSystemOverlaysPreferenceKey: PreferenceKey {
38 | typealias Value = Backport<Any>.Visibility
39 | static var defaultValue: Value = .automatic
| |- 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
40 | static func reduce(value: inout Value, nextValue: () -> Value) {
41 | value = nextValue()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:139:9: error: return from initializer without initializing all stored properties
137 | public init(wrappedValue thunk: @autoclosure @escaping () -> Wrapped) {
138 | self.thunk = thunk
139 | }
| |- error: return from initializer without initializing all stored properties
| `- note: 'self.observedObject' not initialized
140 |
141 | public mutating func update() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| |- warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.wrappedValue' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[146/153] Compiling SwiftUIBackports ShareSheet.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:84:14: warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
28 | }
29 |
30 | final class SourceView: NSView, NSSharingServicePickerDelegate, NSSharingServiceDelegate {
| `- note: add '@preconcurrency' to the 'NSSharingServicePickerDelegate' conformance to defer isolation checking to run time
31 | var picker: NSSharingServicePicker?
32 |
:
82 | }
83 |
84 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService] {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' to make this instance method not isolated to the actor
85 | proposedServices
86 | }
AppKit.NSSharingServicePickerDelegate:3:19: note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
1 | public protocol NSSharingServicePickerDelegate : NSObjectProtocol {
2 | @available(macOS 10.8, *)
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
| `- note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:75:14: warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
73 | }
74 |
75 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> NSSharingServiceDelegate? {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:delegateFor:)' to make this instance method not isolated to the actor
76 | return self
77 | }
AppKit.NSSharingServicePickerDelegate:5:19: note: 'sharingServicePicker(_:delegateFor:)' declared here
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
| `- note: 'sharingServicePicker(_:delegateFor:)' declared here
6 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:delegateFor:)")
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:79:21: warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
77 | }
78 |
79 | public func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?) {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:didChoose:)' to make this instance method not isolated to the actor
80 | sharingServicePicker.delegate = nil
81 | dismissController()
AppKit.NSSharingServicePickerDelegate:9:19: note: 'sharingServicePicker(_:didChoose:)' declared here
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
8 | @available(macOS 10.8, *)
9 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?)
| `- note: 'sharingServicePicker(_:didChoose:)' declared here
10 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:didChoose:)")
11 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChooseSharingService service: NSSharingService?)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:56: warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:9:43: note: property declared here
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:145:16: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | observedObject.value = state.value
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:146:17: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
146 | observedObject.value = state.value
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/System Overlays/SystemOverlays.swift:39: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
37 | private struct PersistentSystemOverlaysPreferenceKey: PreferenceKey {
38 | typealias Value = Backport<Any>.Visibility
39 | static var defaultValue: Value = .automatic
| |- 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
40 | static func reduce(value: inout Value, nextValue: () -> Value) {
41 | value = nextValue()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:139:9: error: return from initializer without initializing all stored properties
137 | public init(wrappedValue thunk: @autoclosure @escaping () -> Wrapped) {
138 | self.thunk = thunk
139 | }
| |- error: return from initializer without initializing all stored properties
| `- note: 'self.observedObject' not initialized
140 |
141 | public mutating func update() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| |- warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.wrappedValue' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[147/153] Compiling SwiftUIBackports Item+Label+Preview.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:84:14: warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
28 | }
29 |
30 | final class SourceView: NSView, NSSharingServicePickerDelegate, NSSharingServiceDelegate {
| `- note: add '@preconcurrency' to the 'NSSharingServicePickerDelegate' conformance to defer isolation checking to run time
31 | var picker: NSSharingServicePicker?
32 |
:
82 | }
83 |
84 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService] {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' to make this instance method not isolated to the actor
85 | proposedServices
86 | }
AppKit.NSSharingServicePickerDelegate:3:19: note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
1 | public protocol NSSharingServicePickerDelegate : NSObjectProtocol {
2 | @available(macOS 10.8, *)
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
| `- note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:75:14: warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
73 | }
74 |
75 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> NSSharingServiceDelegate? {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:delegateFor:)' to make this instance method not isolated to the actor
76 | return self
77 | }
AppKit.NSSharingServicePickerDelegate:5:19: note: 'sharingServicePicker(_:delegateFor:)' declared here
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
| `- note: 'sharingServicePicker(_:delegateFor:)' declared here
6 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:delegateFor:)")
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:79:21: warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
77 | }
78 |
79 | public func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?) {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:didChoose:)' to make this instance method not isolated to the actor
80 | sharingServicePicker.delegate = nil
81 | dismissController()
AppKit.NSSharingServicePickerDelegate:9:19: note: 'sharingServicePicker(_:didChoose:)' declared here
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
8 | @available(macOS 10.8, *)
9 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?)
| `- note: 'sharingServicePicker(_:didChoose:)' declared here
10 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:didChoose:)")
11 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChooseSharingService service: NSSharingService?)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:56: warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:9:43: note: property declared here
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:145:16: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | observedObject.value = state.value
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:146:17: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
146 | observedObject.value = state.value
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/System Overlays/SystemOverlays.swift:39: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
37 | private struct PersistentSystemOverlaysPreferenceKey: PreferenceKey {
38 | typealias Value = Backport<Any>.Visibility
39 | static var defaultValue: Value = .automatic
| |- 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
40 | static func reduce(value: inout Value, nextValue: () -> Value) {
41 | value = nextValue()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:139:9: error: return from initializer without initializing all stored properties
137 | public init(wrappedValue thunk: @autoclosure @escaping () -> Wrapped) {
138 | self.thunk = thunk
139 | }
| |- error: return from initializer without initializing all stored properties
| `- note: 'self.observedObject' not initialized
140 |
141 | public mutating func update() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| |- warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.wrappedValue' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[148/153] Compiling SwiftUIBackports Item+Label.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:84:14: warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
28 | }
29 |
30 | final class SourceView: NSView, NSSharingServicePickerDelegate, NSSharingServiceDelegate {
| `- note: add '@preconcurrency' to the 'NSSharingServicePickerDelegate' conformance to defer isolation checking to run time
31 | var picker: NSSharingServicePicker?
32 |
:
82 | }
83 |
84 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService] {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' to make this instance method not isolated to the actor
85 | proposedServices
86 | }
AppKit.NSSharingServicePickerDelegate:3:19: note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
1 | public protocol NSSharingServicePickerDelegate : NSObjectProtocol {
2 | @available(macOS 10.8, *)
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
| `- note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:75:14: warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
73 | }
74 |
75 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> NSSharingServiceDelegate? {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:delegateFor:)' to make this instance method not isolated to the actor
76 | return self
77 | }
AppKit.NSSharingServicePickerDelegate:5:19: note: 'sharingServicePicker(_:delegateFor:)' declared here
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
| `- note: 'sharingServicePicker(_:delegateFor:)' declared here
6 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:delegateFor:)")
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:79:21: warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
77 | }
78 |
79 | public func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?) {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:didChoose:)' to make this instance method not isolated to the actor
80 | sharingServicePicker.delegate = nil
81 | dismissController()
AppKit.NSSharingServicePickerDelegate:9:19: note: 'sharingServicePicker(_:didChoose:)' declared here
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
8 | @available(macOS 10.8, *)
9 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?)
| `- note: 'sharingServicePicker(_:didChoose:)' declared here
10 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:didChoose:)")
11 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChooseSharingService service: NSSharingService?)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:56: warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:9:43: note: property declared here
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:145:16: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | observedObject.value = state.value
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:146:17: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
146 | observedObject.value = state.value
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/System Overlays/SystemOverlays.swift:39: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
37 | private struct PersistentSystemOverlaysPreferenceKey: PreferenceKey {
38 | typealias Value = Backport<Any>.Visibility
39 | static var defaultValue: Value = .automatic
| |- 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
40 | static func reduce(value: inout Value, nextValue: () -> Value) {
41 | value = nextValue()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:139:9: error: return from initializer without initializing all stored properties
137 | public init(wrappedValue thunk: @autoclosure @escaping () -> Wrapped) {
138 | self.thunk = thunk
139 | }
| |- error: return from initializer without initializing all stored properties
| `- note: 'self.observedObject' not initialized
140 |
141 | public mutating func update() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| |- warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.wrappedValue' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[149/153] Compiling SwiftUIBackports Item+Preview.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:84:14: warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
28 | }
29 |
30 | final class SourceView: NSView, NSSharingServicePickerDelegate, NSSharingServiceDelegate {
| `- note: add '@preconcurrency' to the 'NSSharingServicePickerDelegate' conformance to defer isolation checking to run time
31 | var picker: NSSharingServicePicker?
32 |
:
82 | }
83 |
84 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService] {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' to make this instance method not isolated to the actor
85 | proposedServices
86 | }
AppKit.NSSharingServicePickerDelegate:3:19: note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
1 | public protocol NSSharingServicePickerDelegate : NSObjectProtocol {
2 | @available(macOS 10.8, *)
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
| `- note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:75:14: warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
73 | }
74 |
75 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> NSSharingServiceDelegate? {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:delegateFor:)' to make this instance method not isolated to the actor
76 | return self
77 | }
AppKit.NSSharingServicePickerDelegate:5:19: note: 'sharingServicePicker(_:delegateFor:)' declared here
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
| `- note: 'sharingServicePicker(_:delegateFor:)' declared here
6 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:delegateFor:)")
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:79:21: warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
77 | }
78 |
79 | public func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?) {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:didChoose:)' to make this instance method not isolated to the actor
80 | sharingServicePicker.delegate = nil
81 | dismissController()
AppKit.NSSharingServicePickerDelegate:9:19: note: 'sharingServicePicker(_:didChoose:)' declared here
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
8 | @available(macOS 10.8, *)
9 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?)
| `- note: 'sharingServicePicker(_:didChoose:)' declared here
10 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:didChoose:)")
11 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChooseSharingService service: NSSharingService?)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:56: warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:9:43: note: property declared here
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:145:16: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | observedObject.value = state.value
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:146:17: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
146 | observedObject.value = state.value
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/System Overlays/SystemOverlays.swift:39: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
37 | private struct PersistentSystemOverlaysPreferenceKey: PreferenceKey {
38 | typealias Value = Backport<Any>.Visibility
39 | static var defaultValue: Value = .automatic
| |- 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
40 | static func reduce(value: inout Value, nextValue: () -> Value) {
41 | value = nextValue()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:139:9: error: return from initializer without initializing all stored properties
137 | public init(wrappedValue thunk: @autoclosure @escaping () -> Wrapped) {
138 | self.thunk = thunk
139 | }
| |- error: return from initializer without initializing all stored properties
| `- note: 'self.observedObject' not initialized
140 |
141 | public mutating func update() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| |- warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.wrappedValue' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[150/153] Compiling SwiftUIBackports Item.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:84:14: warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
28 | }
29 |
30 | final class SourceView: NSView, NSSharingServicePickerDelegate, NSSharingServiceDelegate {
| `- note: add '@preconcurrency' to the 'NSSharingServicePickerDelegate' conformance to defer isolation checking to run time
31 | var picker: NSSharingServicePicker?
32 |
:
82 | }
83 |
84 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService] {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' to make this instance method not isolated to the actor
85 | proposedServices
86 | }
AppKit.NSSharingServicePickerDelegate:3:19: note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
1 | public protocol NSSharingServicePickerDelegate : NSObjectProtocol {
2 | @available(macOS 10.8, *)
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
| `- note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:75:14: warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
73 | }
74 |
75 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> NSSharingServiceDelegate? {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:delegateFor:)' to make this instance method not isolated to the actor
76 | return self
77 | }
AppKit.NSSharingServicePickerDelegate:5:19: note: 'sharingServicePicker(_:delegateFor:)' declared here
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
| `- note: 'sharingServicePicker(_:delegateFor:)' declared here
6 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:delegateFor:)")
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:79:21: warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
77 | }
78 |
79 | public func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?) {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:didChoose:)' to make this instance method not isolated to the actor
80 | sharingServicePicker.delegate = nil
81 | dismissController()
AppKit.NSSharingServicePickerDelegate:9:19: note: 'sharingServicePicker(_:didChoose:)' declared here
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
8 | @available(macOS 10.8, *)
9 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?)
| `- note: 'sharingServicePicker(_:didChoose:)' declared here
10 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:didChoose:)")
11 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChooseSharingService service: NSSharingService?)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:56: warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:9:43: note: property declared here
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:145:16: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | observedObject.value = state.value
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:146:17: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
146 | observedObject.value = state.value
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/System Overlays/SystemOverlays.swift:39: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
37 | private struct PersistentSystemOverlaysPreferenceKey: PreferenceKey {
38 | typealias Value = Backport<Any>.Visibility
39 | static var defaultValue: Value = .automatic
| |- 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
40 | static func reduce(value: inout Value, nextValue: () -> Value) {
41 | value = nextValue()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:139:9: error: return from initializer without initializing all stored properties
137 | public init(wrappedValue thunk: @autoclosure @escaping () -> Wrapped) {
138 | self.thunk = thunk
139 | }
| |- error: return from initializer without initializing all stored properties
| `- note: 'self.observedObject' not initialized
140 |
141 | public mutating func update() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| |- warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.wrappedValue' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[151/153] Compiling SwiftUIBackports Transferable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:84:14: warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
28 | }
29 |
30 | final class SourceView: NSView, NSSharingServicePickerDelegate, NSSharingServiceDelegate {
| `- note: add '@preconcurrency' to the 'NSSharingServicePickerDelegate' conformance to defer isolation checking to run time
31 | var picker: NSSharingServicePicker?
32 |
:
82 | }
83 |
84 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService] {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' to make this instance method not isolated to the actor
85 | proposedServices
86 | }
AppKit.NSSharingServicePickerDelegate:3:19: note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
1 | public protocol NSSharingServicePickerDelegate : NSObjectProtocol {
2 | @available(macOS 10.8, *)
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
| `- note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:75:14: warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
73 | }
74 |
75 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> NSSharingServiceDelegate? {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:delegateFor:)' to make this instance method not isolated to the actor
76 | return self
77 | }
AppKit.NSSharingServicePickerDelegate:5:19: note: 'sharingServicePicker(_:delegateFor:)' declared here
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
| `- note: 'sharingServicePicker(_:delegateFor:)' declared here
6 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:delegateFor:)")
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:79:21: warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
77 | }
78 |
79 | public func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?) {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:didChoose:)' to make this instance method not isolated to the actor
80 | sharingServicePicker.delegate = nil
81 | dismissController()
AppKit.NSSharingServicePickerDelegate:9:19: note: 'sharingServicePicker(_:didChoose:)' declared here
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
8 | @available(macOS 10.8, *)
9 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?)
| `- note: 'sharingServicePicker(_:didChoose:)' declared here
10 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:didChoose:)")
11 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChooseSharingService service: NSSharingService?)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:56: warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:9:43: note: property declared here
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:145:16: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | observedObject.value = state.value
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:146:17: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
146 | observedObject.value = state.value
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/System Overlays/SystemOverlays.swift:39: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
37 | private struct PersistentSystemOverlaysPreferenceKey: PreferenceKey {
38 | typealias Value = Backport<Any>.Visibility
39 | static var defaultValue: Value = .automatic
| |- 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
40 | static func reduce(value: inout Value, nextValue: () -> Value) {
41 | value = nextValue()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:139:9: error: return from initializer without initializing all stored properties
137 | public init(wrappedValue thunk: @autoclosure @escaping () -> Wrapped) {
138 | self.thunk = thunk
139 | }
| |- error: return from initializer without initializing all stored properties
| `- note: 'self.observedObject' not initialized
140 |
141 | public mutating func update() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| |- warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.wrappedValue' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[152/153] Compiling SwiftUIBackports StateObject.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:84:14: warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
28 | }
29 |
30 | final class SourceView: NSView, NSSharingServicePickerDelegate, NSSharingServiceDelegate {
| `- note: add '@preconcurrency' to the 'NSSharingServicePickerDelegate' conformance to defer isolation checking to run time
31 | var picker: NSSharingServicePicker?
32 |
:
82 | }
83 |
84 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService] {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' to make this instance method not isolated to the actor
85 | proposedServices
86 | }
AppKit.NSSharingServicePickerDelegate:3:19: note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
1 | public protocol NSSharingServicePickerDelegate : NSObjectProtocol {
2 | @available(macOS 10.8, *)
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
| `- note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:75:14: warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
73 | }
74 |
75 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> NSSharingServiceDelegate? {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:delegateFor:)' to make this instance method not isolated to the actor
76 | return self
77 | }
AppKit.NSSharingServicePickerDelegate:5:19: note: 'sharingServicePicker(_:delegateFor:)' declared here
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
| `- note: 'sharingServicePicker(_:delegateFor:)' declared here
6 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:delegateFor:)")
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:79:21: warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
77 | }
78 |
79 | public func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?) {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:didChoose:)' to make this instance method not isolated to the actor
80 | sharingServicePicker.delegate = nil
81 | dismissController()
AppKit.NSSharingServicePickerDelegate:9:19: note: 'sharingServicePicker(_:didChoose:)' declared here
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
8 | @available(macOS 10.8, *)
9 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?)
| `- note: 'sharingServicePicker(_:didChoose:)' declared here
10 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:didChoose:)")
11 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChooseSharingService service: NSSharingService?)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:56: warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:9:43: note: property declared here
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:145:16: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | observedObject.value = state.value
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:146:17: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
146 | observedObject.value = state.value
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/System Overlays/SystemOverlays.swift:39: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
37 | private struct PersistentSystemOverlaysPreferenceKey: PreferenceKey {
38 | typealias Value = Backport<Any>.Visibility
39 | static var defaultValue: Value = .automatic
| |- 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
40 | static func reduce(value: inout Value, nextValue: () -> Value) {
41 | value = nextValue()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:139:9: error: return from initializer without initializing all stored properties
137 | public init(wrappedValue thunk: @autoclosure @escaping () -> Wrapped) {
138 | self.thunk = thunk
139 | }
| |- error: return from initializer without initializing all stored properties
| `- note: 'self.observedObject' not initialized
140 |
141 | public mutating func update() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| |- warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.wrappedValue' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
[153/153] Compiling SwiftUIBackports SystemOverlays.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:84:14: warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
28 | }
29 |
30 | final class SourceView: NSView, NSSharingServicePickerDelegate, NSSharingServiceDelegate {
| `- note: add '@preconcurrency' to the 'NSSharingServicePickerDelegate' conformance to defer isolation checking to run time
31 | var picker: NSSharingServicePicker?
32 |
:
82 | }
83 |
84 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService] {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' to make this instance method not isolated to the actor
85 | proposedServices
86 | }
AppKit.NSSharingServicePickerDelegate:3:19: note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
1 | public protocol NSSharingServicePickerDelegate : NSObjectProtocol {
2 | @available(macOS 10.8, *)
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
| `- note: 'sharingServicePicker(_:sharingServicesForItems:proposedSharingServices:)' declared here
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:75:14: warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
73 | }
74 |
75 | func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> NSSharingServiceDelegate? {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:delegateFor:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:delegateFor:)' to make this instance method not isolated to the actor
76 | return self
77 | }
AppKit.NSSharingServicePickerDelegate:5:19: note: 'sharingServicePicker(_:delegateFor:)' declared here
3 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService]
4 | @available(macOS 10.8, *)
5 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateFor sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
| `- note: 'sharingServicePicker(_:delegateFor:)' declared here
6 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:delegateFor:)")
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/ShareLink/ShareSheet.swift:79:21: warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
77 | }
78 |
79 | public func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?) {
| |- warning: main actor-isolated instance method 'sharingServicePicker(_:didChoose:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'sharingServicePicker(_:didChoose:)' to make this instance method not isolated to the actor
80 | sharingServicePicker.delegate = nil
81 | dismissController()
AppKit.NSSharingServicePickerDelegate:9:19: note: 'sharingServicePicker(_:didChoose:)' declared here
7 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, delegateForSharingService sharingService: NSSharingService) -> (any NSSharingServiceDelegate)?
8 | @available(macOS 10.8, *)
9 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?)
| `- note: 'sharingServicePicker(_:didChoose:)' declared here
10 | @available(swift, obsoleted: 3, renamed: "sharingServicePicker(_:didChoose:)")
11 | optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChooseSharingService service: NSSharingService?)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:56: warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:9:43: note: property declared here
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:145:16: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
146 | observedObject.value = state.value
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:146:17: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | @State private var state = Wrapper()
69 |
70 | @ObservedObject private var observedObject = Wrapper()
| `- note: property declared here
71 |
72 | private var thunk: () -> Wrapped
:
139 | }
140 |
141 | public mutating func update() {
| `- note: add '@MainActor' to make instance method 'update()' part of global actor 'MainActor'
142 | if state.value == nil {
143 | state.value = thunk()
144 | }
145 | if observedObject.value !== state.value {
146 | observedObject.value = state.value
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
147 | }
148 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/System Overlays/SystemOverlays.swift:39: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
37 | private struct PersistentSystemOverlaysPreferenceKey: PreferenceKey {
38 | typealias Value = Backport<Any>.Visibility
39 | static var defaultValue: Value = .automatic
| |- 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
40 | static func reduce(value: inout Value, nextValue: () -> Value) {
41 | value = nextValue()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:139:9: error: return from initializer without initializing all stored properties
137 | public init(wrappedValue thunk: @autoclosure @escaping () -> Wrapped) {
138 | self.thunk = thunk
139 | }
| |- error: return from initializer without initializing all stored properties
| `- note: 'self.observedObject' not initialized
140 |
141 | public mutating func update() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIBackports/Shared/StateObject/StateObject.swift:115:13: warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
113 | /// }
114 | public var projectedValue: ObservedObject<Wrapped>.Wrapper {
115 | ObservedObject(wrappedValue: wrappedValue).projectedValue
| |- warning: sending 'self.wrappedValue' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.wrappedValue' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
116 | }
117 |
BUILD FAILURE 6.0 macosSpm