Build Information
Successful build of AmplifyUIAuthenticator, reference main (fd8632
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 04:03:32 UTC.
Swift 6 data race errors: 112
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
69 |
70 | static var white = Color(hue: 0, saturation: 0, lightness: 100)
| |- warning: static property 'white' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'white' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'white' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 |
72 | static var transparent = Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Extensions/Color+AmplifyUI.swift:72:20: warning: static property 'transparent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 | static var white = Color(hue: 0, saturation: 0, lightness: 100)
71 |
72 | static var transparent = Color.clear
| |- warning: static property 'transparent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'transparent' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'transparent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 | static let Font = AuthenticatorTheme.Colors.Color(
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Extensions/Color+AmplifyUI.swift:74:20: warning: static property 'Font' is not concurrency-safe because non-'Sendable' type 'AuthenticatorTheme.Colors.Color' may have shared mutable state; this is an error in the Swift 6 language mode
72 | static var transparent = Color.clear
73 |
74 | static let Font = AuthenticatorTheme.Colors.Color(
| |- warning: static property 'Font' is not concurrency-safe because non-'Sendable' type 'AuthenticatorTheme.Colors.Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Font' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 | primary: Color(light: .AmplifyUI.neutral100, dark: .AmplifyUI.white),
76 | secondary: Color(light: .AmplifyUI.neutral90, dark: .AmplifyUI.neutral10),
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Theming/AuthenticatorTheme.swift:121:19: note: consider making struct 'Color' conform to the 'Sendable' protocol
119 | extension AuthenticatorTheme.Colors {
120 | /// Represents a group of colors
121 | public struct Color {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
122 | public var primary: SwiftUI.Color
123 | public var secondary: SwiftUI.Color
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Extensions/Color+AmplifyUI.swift:87:20: warning: static property 'Background' is not concurrency-safe because non-'Sendable' type 'AuthenticatorTheme.Colors.Color' may have shared mutable state; this is an error in the Swift 6 language mode
85 | )
86 |
87 | static let Background = AuthenticatorTheme.Colors.Color(
| |- warning: static property 'Background' is not concurrency-safe because non-'Sendable' type 'AuthenticatorTheme.Colors.Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Background' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | primary: Color(light: .AmplifyUI.white, dark: .AmplifyUI.black),
89 | secondary: .AmplifyUI.neutral10,
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Theming/AuthenticatorTheme.swift:121:19: note: consider making struct 'Color' conform to the 'Sendable' protocol
119 | extension AuthenticatorTheme.Colors {
120 | /// Represents a group of colors
121 | public struct Color {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
122 | public var primary: SwiftUI.Color
123 | public var secondary: SwiftUI.Color
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Extensions/Color+AmplifyUI.swift:100:20: warning: static property 'Border' is not concurrency-safe because non-'Sendable' type 'AuthenticatorTheme.Colors.Color' may have shared mutable state; this is an error in the Swift 6 language mode
98 | )
99 |
100 | static let Border = AuthenticatorTheme.Colors.Color(
| |- warning: static property 'Border' is not concurrency-safe because non-'Sendable' type 'AuthenticatorTheme.Colors.Color' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'Border' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
101 | primary: .AmplifyUI.neutral60,
102 | secondary: .AmplifyUI.neutral40,
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Theming/AuthenticatorTheme.swift:121:19: note: consider making struct 'Color' conform to the 'Sendable' protocol
119 | extension AuthenticatorTheme.Colors {
120 | /// Represents a group of colors
121 | public struct Color {
| `- note: consider making struct 'Color' conform to the 'Sendable' protocol
122 | public var primary: SwiftUI.Color
123 | public var secondary: SwiftUI.Color
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Extensions/Color+AmplifyUI.swift:114:24: warning: static property 'primary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
112 |
113 | enum Brand {
114 | static var primary = Color.AmplifyUI.teal60
| |- warning: static property 'primary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'primary' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'primary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
115 | static var secondary = Color.AmplifyUI.purple60
116 | static var tertiary = Color.AmplifyUI.purple60
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Extensions/Color+AmplifyUI.swift:115:24: warning: static property 'secondary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
113 | enum Brand {
114 | static var primary = Color.AmplifyUI.teal60
115 | static var secondary = Color.AmplifyUI.purple60
| |- warning: static property 'secondary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'secondary' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'secondary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
116 | static var tertiary = Color.AmplifyUI.purple60
117 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Extensions/Color+AmplifyUI.swift:116:24: warning: static property 'tertiary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 | static var primary = Color.AmplifyUI.teal60
115 | static var secondary = Color.AmplifyUI.purple60
116 | static var tertiary = Color.AmplifyUI.purple60
| |- warning: static property 'tertiary' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tertiary' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'tertiary' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Authenticator.swift:260:25: warning: sending 'self.initialStep' risks causing data races; this is an error in the Swift 6 language mode
258 | state.authenticationService = authenticationService
259 | setUpContentStates(contentStates)
260 | await state.reloadState(initialStep: initialStep)
| |- warning: sending 'self.initialStep' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.initialStep' to nonisolated instance method 'reloadState(initialStep:)' risks causing data races between nonisolated and main actor-isolated uses
261 | }
262 | .onChange(of: contentStates) { contentStates in
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Authenticator.swift:260:25: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
258 | state.authenticationService = authenticationService
259 | setUpContentStates(contentStates)
260 | await state.reloadState(initialStep: initialStep)
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'reloadState(initialStep:)' risks causing data races between nonisolated and main actor-isolated uses
261 | }
262 | .onChange(of: contentStates) { contentStates in
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Authenticator.swift:267:29: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
265 | .onChange(of: initialStep) { initialStep in
266 | Task {
267 | await state.reloadState(initialStep: initialStep)
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'reloadState(initialStep:)' risks causing data races between nonisolated and main actor-isolated uses
268 | }
269 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
[1980/1995] Compiling Authenticator ContinueSignInWithMFASelectionView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Internal/AuthenticatorMessageView.swift:58:25: warning: call to main actor-isolated instance method 'dismissErrorView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
38 | }
39 |
40 | private func dismissErrorView() {
| |- note: calls to instance method 'dismissErrorView()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'ViewModifier'
41 | dismissTimer = nil
42 | message = nil
:
56 | repeats: false
57 | ) { _ in
58 | dismissErrorView()
| `- warning: call to main actor-isolated instance method 'dismissErrorView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithMFASelectionView.swift:108:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
106 |
107 | private func continueSignIn() async {
108 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
109 | }
110 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithMFASetupSelectionView.swift:95:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
93 |
94 | private func continueSignIn() async {
95 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithTOTPSetupView.swift:118:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
116 | }
117 |
118 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
119 | }
120 |
[1981/1995] Compiling Authenticator ContinueSignInWithMFASetupSelectionView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Internal/AuthenticatorMessageView.swift:58:25: warning: call to main actor-isolated instance method 'dismissErrorView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
38 | }
39 |
40 | private func dismissErrorView() {
| |- note: calls to instance method 'dismissErrorView()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'ViewModifier'
41 | dismissTimer = nil
42 | message = nil
:
56 | repeats: false
57 | ) { _ in
58 | dismissErrorView()
| `- warning: call to main actor-isolated instance method 'dismissErrorView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithMFASelectionView.swift:108:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
106 |
107 | private func continueSignIn() async {
108 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
109 | }
110 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithMFASetupSelectionView.swift:95:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
93 |
94 | private func continueSignIn() async {
95 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithTOTPSetupView.swift:118:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
116 | }
117 |
118 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
119 | }
120 |
[1982/1995] Compiling Authenticator ContinueSignInWithTOTPCopyKeyView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Internal/AuthenticatorMessageView.swift:58:25: warning: call to main actor-isolated instance method 'dismissErrorView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
38 | }
39 |
40 | private func dismissErrorView() {
| |- note: calls to instance method 'dismissErrorView()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'ViewModifier'
41 | dismissTimer = nil
42 | message = nil
:
56 | repeats: false
57 | ) { _ in
58 | dismissErrorView()
| `- warning: call to main actor-isolated instance method 'dismissErrorView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithMFASelectionView.swift:108:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
106 |
107 | private func continueSignIn() async {
108 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
109 | }
110 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithMFASetupSelectionView.swift:95:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
93 |
94 | private func continueSignIn() async {
95 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithTOTPSetupView.swift:118:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
116 | }
117 |
118 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
119 | }
120 |
[1983/1995] Compiling Authenticator ContinueSignInWithTOTPSetupQRCodeView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Internal/AuthenticatorMessageView.swift:58:25: warning: call to main actor-isolated instance method 'dismissErrorView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
38 | }
39 |
40 | private func dismissErrorView() {
| |- note: calls to instance method 'dismissErrorView()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'ViewModifier'
41 | dismissTimer = nil
42 | message = nil
:
56 | repeats: false
57 | ) { _ in
58 | dismissErrorView()
| `- warning: call to main actor-isolated instance method 'dismissErrorView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithMFASelectionView.swift:108:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
106 |
107 | private func continueSignIn() async {
108 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
109 | }
110 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithMFASetupSelectionView.swift:95:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
93 |
94 | private func continueSignIn() async {
95 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithTOTPSetupView.swift:118:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
116 | }
117 |
118 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
119 | }
120 |
[1984/1995] Compiling Authenticator ContinueSignInWithTOTPSetupView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Internal/AuthenticatorMessageView.swift:58:25: warning: call to main actor-isolated instance method 'dismissErrorView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
38 | }
39 |
40 | private func dismissErrorView() {
| |- note: calls to instance method 'dismissErrorView()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'ViewModifier'
41 | dismissTimer = nil
42 | message = nil
:
56 | repeats: false
57 | ) { _ in
58 | dismissErrorView()
| `- warning: call to main actor-isolated instance method 'dismissErrorView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithMFASelectionView.swift:108:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
106 |
107 | private func continueSignIn() async {
108 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
109 | }
110 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithMFASetupSelectionView.swift:95:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
93 |
94 | private func continueSignIn() async {
95 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithTOTPSetupView.swift:118:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
116 | }
117 |
118 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
119 | }
120 |
[1985/1995] Compiling Authenticator ErrorView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Internal/AuthenticatorMessageView.swift:58:25: warning: call to main actor-isolated instance method 'dismissErrorView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
38 | }
39 |
40 | private func dismissErrorView() {
| |- note: calls to instance method 'dismissErrorView()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'ViewModifier'
41 | dismissTimer = nil
42 | message = nil
:
56 | repeats: false
57 | ) { _ in
58 | dismissErrorView()
| `- warning: call to main actor-isolated instance method 'dismissErrorView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithMFASelectionView.swift:108:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
106 |
107 | private func continueSignIn() async {
108 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
109 | }
110 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithMFASetupSelectionView.swift:95:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
93 |
94 | private func continueSignIn() async {
95 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithTOTPSetupView.swift:118:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
116 | }
117 |
118 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
119 | }
120 |
[1986/1995] Compiling Authenticator AuthenticatorMessageView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Internal/AuthenticatorMessageView.swift:58:25: warning: call to main actor-isolated instance method 'dismissErrorView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
38 | }
39 |
40 | private func dismissErrorView() {
| |- note: calls to instance method 'dismissErrorView()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'ViewModifier'
41 | dismissTimer = nil
42 | message = nil
:
56 | repeats: false
57 | ) { _ in
58 | dismissErrorView()
| `- warning: call to main actor-isolated instance method 'dismissErrorView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithMFASelectionView.swift:108:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
106 |
107 | private func continueSignIn() async {
108 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
109 | }
110 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithMFASetupSelectionView.swift:95:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
93 |
94 | private func continueSignIn() async {
95 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithTOTPSetupView.swift:118:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
116 | }
117 |
118 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
119 | }
120 |
[1987/1995] Compiling Authenticator AuthenticatorTextWithHeader.swift
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Internal/AuthenticatorMessageView.swift:58:25: warning: call to main actor-isolated instance method 'dismissErrorView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
38 | }
39 |
40 | private func dismissErrorView() {
| |- note: calls to instance method 'dismissErrorView()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'ViewModifier'
41 | dismissTimer = nil
42 | message = nil
:
56 | repeats: false
57 | ) { _ in
58 | dismissErrorView()
| `- warning: call to main actor-isolated instance method 'dismissErrorView()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithMFASelectionView.swift:108:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
106 |
107 | private func continueSignIn() async {
108 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
109 | }
110 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithMFASetupSelectionView.swift:95:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
93 |
94 | private func continueSignIn() async {
95 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ContinueSignInWithTOTPSetupView.swift:118:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
116 | }
117 |
118 | try? await state.continueSignIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'continueSignIn()' risks causing data races between nonisolated and main actor-isolated uses
119 | }
120 |
[1988/1995] Compiling Authenticator PhoneNumberField.swift
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Primitives/PhoneNumberField.swift:132:18: warning: result of call to 'accessibilityHidden' is unused
130 | .foregroundColor(theme.colors.foreground.disabled.opacity(0.6))
131 | .font(theme.fonts.body)
132 | textView.accessibilityHidden(true)
| `- warning: result of call to 'accessibilityHidden' is unused
133 | return textView
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Primitives/TextField.swift:90:18: warning: result of call to 'accessibilityHidden' is unused
88 | .foregroundColor(theme.colors.foreground.disabled.opacity(0.6))
89 | .font(theme.fonts.body)
90 | textView.accessibilityHidden(true)
| `- warning: result of call to 'accessibilityHidden' is unused
91 | return textView
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:26:9: warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
14 | /// and display the appropiate field.
15 | public struct SignInView<Header: View,
16 | Footer: View>: View, KeyboardIterableFields {
| `- note: add '@preconcurrency' to the 'KeyboardIterableFields' conformance to defer isolation checking to run time
17 | @Environment(\.authenticatorState) private var authenticatorState
18 | @Environment(\.authenticatorOptions) private var options
:
24 | private var viewModifiers = ViewModifiers()
25 |
26 | var focusedField: FocusState<SignInState.Field?> = FocusState()
| `- warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
27 |
28 | /// Creates a `SignInView`
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:12:9: note: requirement 'focusedField' declared here
10 | protocol KeyboardIterableFields: AuthenticatorLogging {
11 | associatedtype Field: Hashable
12 | var focusedField: FocusState<Field?> {set get}
| `- note: requirement 'focusedField' declared here
13 |
14 | func focusPreviousField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:22:9: warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
11 | /// Represents the content being displayed when the ``Authenticator`` is in the ``AuthenticatorStep/signUp`` step.
12 | public struct SignUpView<Header: View,
13 | Footer: View>: View, KeyboardIterableFields {
| `- note: add '@preconcurrency' to the 'KeyboardIterableFields' conformance to defer isolation checking to run time
14 | @Environment(\.authenticatorState) private var authenticatorState
15 | @Environment(\.authenticatorOptions) private var options
:
20 | private let overridenSignUpFields: [SignUpField]?
21 |
22 | var focusedField: FocusState<SignUpAttribute?> = FocusState()
| `- warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
23 |
24 | /// Creates a `SignUpView`
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:12:9: note: requirement 'focusedField' declared here
10 | protocol KeyboardIterableFields: AuthenticatorLogging {
11 | associatedtype Field: Hashable
12 | var focusedField: FocusState<Field?> {set get}
| `- note: requirement 'focusedField' declared here
13 |
14 | func focusPreviousField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:153:10: warning: main actor-isolated instance method 'focusPreviousField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
151 | }
152 |
153 | func focusPreviousField() {
| |- warning: main actor-isolated instance method 'focusPreviousField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'focusPreviousField()' to make this instance method not isolated to the actor
154 | guard let currentIndex = currentIndex else { return }
155 | focusedField.wrappedValue = focusableField(beforeIndex: currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:14:10: note: mark the protocol requirement 'focusPreviousField()' 'async' to allow actor-isolated conformances
12 | var focusedField: FocusState<Field?> {set get}
13 |
14 | func focusPreviousField()
| `- note: mark the protocol requirement 'focusPreviousField()' 'async' to allow actor-isolated conformances
15 |
16 | func focusNextField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:158:10: warning: main actor-isolated instance method 'focusNextField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
156 | }
157 |
158 | func focusNextField() {
| |- warning: main actor-isolated instance method 'focusNextField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'focusNextField()' to make this instance method not isolated to the actor
159 | guard let currentIndex = currentIndex else { return }
160 | focusedField.wrappedValue = focusableField(afterIndex: currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:16:10: note: mark the protocol requirement 'focusNextField()' 'async' to allow actor-isolated conformances
14 | func focusPreviousField()
15 |
16 | func focusNextField()
| `- note: mark the protocol requirement 'focusNextField()' 'async' to allow actor-isolated conformances
17 |
18 | var hasPreviousField: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:163:9: warning: main actor-isolated property 'hasPreviousField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
161 | }
162 |
163 | var hasPreviousField: Bool {
| `- warning: main actor-isolated property 'hasPreviousField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
164 | guard let currentIndex = currentIndex else { return false }
165 | return focusableField(beforeIndex: currentIndex) != nil
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:18:9: note: requirement 'hasPreviousField' declared here
16 | func focusNextField()
17 |
18 | var hasPreviousField: Bool { get }
| `- note: requirement 'hasPreviousField' declared here
19 |
20 | var hasNextField: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:168:9: warning: main actor-isolated property 'hasNextField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
166 | }
167 |
168 | var hasNextField: Bool {
| `- warning: main actor-isolated property 'hasNextField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
169 | guard let currentIndex = currentIndex else { return false }
170 | return focusableField(afterIndex: currentIndex) != nil
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:20:9: note: requirement 'hasNextField' declared here
18 | var hasPreviousField: Bool { get }
19 |
20 | var hasNextField: Bool { get }
| `- note: requirement 'hasNextField' declared here
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:177:10: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:181:18: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: mutation of this property is only permitted within the actor
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
180 | init(state: SignUpState) {
181 | self.state = state
| `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
182 | }
183 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:200:50: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: property declared here
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
:
198 |
199 | if case .password = field.attributeType {
200 | let configuration = self.state.configuration.passwordProtectionSettings
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
201 | return FieldValidators.password(
202 | minLength: configuration.minLength,
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:205:95: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: property declared here
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
:
203 | characterPolicy: configuration.characterPolicy.asPasswordCharactersPolicy()
204 | )(value)
205 | } else if case .passwordConfirmation = field.attributeType, value != self.state.password {
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
206 | return "authenticator.validator.field.newPassword.doesNotMatch".localized()
207 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ResetPasswordView.swift:127:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
125 | }
126 |
127 | try? await state.resetPassword()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'resetPassword()' risks causing data races between nonisolated and main actor-isolated uses
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:152:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
150 | }
151 |
152 | try? await state.signIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'signIn()' risks causing data races between nonisolated and main actor-isolated uses
153 | }
154 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:177:10: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| |- warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated '$input_value' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:113:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
111 | }
112 |
113 | try? await state.signUp()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'signUp()' risks causing data races between nonisolated and main actor-isolated uses
114 | }
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/VerifyUserView.swift:87:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
85 |
86 | private func verifyUser() async {
87 | try? await state.verifyUser()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'verifyUser()' risks causing data races between nonisolated and main actor-isolated uses
88 | }
89 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/VerifyUserView.swift:91:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
89 |
90 | private func skip() async {
91 | try? await state.skip()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'skip()' risks causing data races between nonisolated and main actor-isolated uses
92 | }
93 | }
[1989/1995] Compiling Authenticator RadioButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Primitives/PhoneNumberField.swift:132:18: warning: result of call to 'accessibilityHidden' is unused
130 | .foregroundColor(theme.colors.foreground.disabled.opacity(0.6))
131 | .font(theme.fonts.body)
132 | textView.accessibilityHidden(true)
| `- warning: result of call to 'accessibilityHidden' is unused
133 | return textView
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Primitives/TextField.swift:90:18: warning: result of call to 'accessibilityHidden' is unused
88 | .foregroundColor(theme.colors.foreground.disabled.opacity(0.6))
89 | .font(theme.fonts.body)
90 | textView.accessibilityHidden(true)
| `- warning: result of call to 'accessibilityHidden' is unused
91 | return textView
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:26:9: warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
14 | /// and display the appropiate field.
15 | public struct SignInView<Header: View,
16 | Footer: View>: View, KeyboardIterableFields {
| `- note: add '@preconcurrency' to the 'KeyboardIterableFields' conformance to defer isolation checking to run time
17 | @Environment(\.authenticatorState) private var authenticatorState
18 | @Environment(\.authenticatorOptions) private var options
:
24 | private var viewModifiers = ViewModifiers()
25 |
26 | var focusedField: FocusState<SignInState.Field?> = FocusState()
| `- warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
27 |
28 | /// Creates a `SignInView`
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:12:9: note: requirement 'focusedField' declared here
10 | protocol KeyboardIterableFields: AuthenticatorLogging {
11 | associatedtype Field: Hashable
12 | var focusedField: FocusState<Field?> {set get}
| `- note: requirement 'focusedField' declared here
13 |
14 | func focusPreviousField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:22:9: warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
11 | /// Represents the content being displayed when the ``Authenticator`` is in the ``AuthenticatorStep/signUp`` step.
12 | public struct SignUpView<Header: View,
13 | Footer: View>: View, KeyboardIterableFields {
| `- note: add '@preconcurrency' to the 'KeyboardIterableFields' conformance to defer isolation checking to run time
14 | @Environment(\.authenticatorState) private var authenticatorState
15 | @Environment(\.authenticatorOptions) private var options
:
20 | private let overridenSignUpFields: [SignUpField]?
21 |
22 | var focusedField: FocusState<SignUpAttribute?> = FocusState()
| `- warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
23 |
24 | /// Creates a `SignUpView`
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:12:9: note: requirement 'focusedField' declared here
10 | protocol KeyboardIterableFields: AuthenticatorLogging {
11 | associatedtype Field: Hashable
12 | var focusedField: FocusState<Field?> {set get}
| `- note: requirement 'focusedField' declared here
13 |
14 | func focusPreviousField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:153:10: warning: main actor-isolated instance method 'focusPreviousField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
151 | }
152 |
153 | func focusPreviousField() {
| |- warning: main actor-isolated instance method 'focusPreviousField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'focusPreviousField()' to make this instance method not isolated to the actor
154 | guard let currentIndex = currentIndex else { return }
155 | focusedField.wrappedValue = focusableField(beforeIndex: currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:14:10: note: mark the protocol requirement 'focusPreviousField()' 'async' to allow actor-isolated conformances
12 | var focusedField: FocusState<Field?> {set get}
13 |
14 | func focusPreviousField()
| `- note: mark the protocol requirement 'focusPreviousField()' 'async' to allow actor-isolated conformances
15 |
16 | func focusNextField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:158:10: warning: main actor-isolated instance method 'focusNextField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
156 | }
157 |
158 | func focusNextField() {
| |- warning: main actor-isolated instance method 'focusNextField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'focusNextField()' to make this instance method not isolated to the actor
159 | guard let currentIndex = currentIndex else { return }
160 | focusedField.wrappedValue = focusableField(afterIndex: currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:16:10: note: mark the protocol requirement 'focusNextField()' 'async' to allow actor-isolated conformances
14 | func focusPreviousField()
15 |
16 | func focusNextField()
| `- note: mark the protocol requirement 'focusNextField()' 'async' to allow actor-isolated conformances
17 |
18 | var hasPreviousField: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:163:9: warning: main actor-isolated property 'hasPreviousField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
161 | }
162 |
163 | var hasPreviousField: Bool {
| `- warning: main actor-isolated property 'hasPreviousField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
164 | guard let currentIndex = currentIndex else { return false }
165 | return focusableField(beforeIndex: currentIndex) != nil
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:18:9: note: requirement 'hasPreviousField' declared here
16 | func focusNextField()
17 |
18 | var hasPreviousField: Bool { get }
| `- note: requirement 'hasPreviousField' declared here
19 |
20 | var hasNextField: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:168:9: warning: main actor-isolated property 'hasNextField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
166 | }
167 |
168 | var hasNextField: Bool {
| `- warning: main actor-isolated property 'hasNextField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
169 | guard let currentIndex = currentIndex else { return false }
170 | return focusableField(afterIndex: currentIndex) != nil
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:20:9: note: requirement 'hasNextField' declared here
18 | var hasPreviousField: Bool { get }
19 |
20 | var hasNextField: Bool { get }
| `- note: requirement 'hasNextField' declared here
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:177:10: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:181:18: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: mutation of this property is only permitted within the actor
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
180 | init(state: SignUpState) {
181 | self.state = state
| `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
182 | }
183 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:200:50: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: property declared here
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
:
198 |
199 | if case .password = field.attributeType {
200 | let configuration = self.state.configuration.passwordProtectionSettings
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
201 | return FieldValidators.password(
202 | minLength: configuration.minLength,
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:205:95: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: property declared here
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
:
203 | characterPolicy: configuration.characterPolicy.asPasswordCharactersPolicy()
204 | )(value)
205 | } else if case .passwordConfirmation = field.attributeType, value != self.state.password {
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
206 | return "authenticator.validator.field.newPassword.doesNotMatch".localized()
207 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ResetPasswordView.swift:127:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
125 | }
126 |
127 | try? await state.resetPassword()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'resetPassword()' risks causing data races between nonisolated and main actor-isolated uses
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:152:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
150 | }
151 |
152 | try? await state.signIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'signIn()' risks causing data races between nonisolated and main actor-isolated uses
153 | }
154 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:177:10: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| |- warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated '$input_value' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:113:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
111 | }
112 |
113 | try? await state.signUp()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'signUp()' risks causing data races between nonisolated and main actor-isolated uses
114 | }
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/VerifyUserView.swift:87:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
85 |
86 | private func verifyUser() async {
87 | try? await state.verifyUser()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'verifyUser()' risks causing data races between nonisolated and main actor-isolated uses
88 | }
89 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/VerifyUserView.swift:91:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
89 |
90 | private func skip() async {
91 | try? await state.skip()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'skip()' risks causing data races between nonisolated and main actor-isolated uses
92 | }
93 | }
[1990/1995] Compiling Authenticator TextField.swift
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Primitives/PhoneNumberField.swift:132:18: warning: result of call to 'accessibilityHidden' is unused
130 | .foregroundColor(theme.colors.foreground.disabled.opacity(0.6))
131 | .font(theme.fonts.body)
132 | textView.accessibilityHidden(true)
| `- warning: result of call to 'accessibilityHidden' is unused
133 | return textView
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Primitives/TextField.swift:90:18: warning: result of call to 'accessibilityHidden' is unused
88 | .foregroundColor(theme.colors.foreground.disabled.opacity(0.6))
89 | .font(theme.fonts.body)
90 | textView.accessibilityHidden(true)
| `- warning: result of call to 'accessibilityHidden' is unused
91 | return textView
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:26:9: warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
14 | /// and display the appropiate field.
15 | public struct SignInView<Header: View,
16 | Footer: View>: View, KeyboardIterableFields {
| `- note: add '@preconcurrency' to the 'KeyboardIterableFields' conformance to defer isolation checking to run time
17 | @Environment(\.authenticatorState) private var authenticatorState
18 | @Environment(\.authenticatorOptions) private var options
:
24 | private var viewModifiers = ViewModifiers()
25 |
26 | var focusedField: FocusState<SignInState.Field?> = FocusState()
| `- warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
27 |
28 | /// Creates a `SignInView`
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:12:9: note: requirement 'focusedField' declared here
10 | protocol KeyboardIterableFields: AuthenticatorLogging {
11 | associatedtype Field: Hashable
12 | var focusedField: FocusState<Field?> {set get}
| `- note: requirement 'focusedField' declared here
13 |
14 | func focusPreviousField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:22:9: warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
11 | /// Represents the content being displayed when the ``Authenticator`` is in the ``AuthenticatorStep/signUp`` step.
12 | public struct SignUpView<Header: View,
13 | Footer: View>: View, KeyboardIterableFields {
| `- note: add '@preconcurrency' to the 'KeyboardIterableFields' conformance to defer isolation checking to run time
14 | @Environment(\.authenticatorState) private var authenticatorState
15 | @Environment(\.authenticatorOptions) private var options
:
20 | private let overridenSignUpFields: [SignUpField]?
21 |
22 | var focusedField: FocusState<SignUpAttribute?> = FocusState()
| `- warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
23 |
24 | /// Creates a `SignUpView`
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:12:9: note: requirement 'focusedField' declared here
10 | protocol KeyboardIterableFields: AuthenticatorLogging {
11 | associatedtype Field: Hashable
12 | var focusedField: FocusState<Field?> {set get}
| `- note: requirement 'focusedField' declared here
13 |
14 | func focusPreviousField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:153:10: warning: main actor-isolated instance method 'focusPreviousField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
151 | }
152 |
153 | func focusPreviousField() {
| |- warning: main actor-isolated instance method 'focusPreviousField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'focusPreviousField()' to make this instance method not isolated to the actor
154 | guard let currentIndex = currentIndex else { return }
155 | focusedField.wrappedValue = focusableField(beforeIndex: currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:14:10: note: mark the protocol requirement 'focusPreviousField()' 'async' to allow actor-isolated conformances
12 | var focusedField: FocusState<Field?> {set get}
13 |
14 | func focusPreviousField()
| `- note: mark the protocol requirement 'focusPreviousField()' 'async' to allow actor-isolated conformances
15 |
16 | func focusNextField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:158:10: warning: main actor-isolated instance method 'focusNextField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
156 | }
157 |
158 | func focusNextField() {
| |- warning: main actor-isolated instance method 'focusNextField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'focusNextField()' to make this instance method not isolated to the actor
159 | guard let currentIndex = currentIndex else { return }
160 | focusedField.wrappedValue = focusableField(afterIndex: currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:16:10: note: mark the protocol requirement 'focusNextField()' 'async' to allow actor-isolated conformances
14 | func focusPreviousField()
15 |
16 | func focusNextField()
| `- note: mark the protocol requirement 'focusNextField()' 'async' to allow actor-isolated conformances
17 |
18 | var hasPreviousField: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:163:9: warning: main actor-isolated property 'hasPreviousField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
161 | }
162 |
163 | var hasPreviousField: Bool {
| `- warning: main actor-isolated property 'hasPreviousField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
164 | guard let currentIndex = currentIndex else { return false }
165 | return focusableField(beforeIndex: currentIndex) != nil
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:18:9: note: requirement 'hasPreviousField' declared here
16 | func focusNextField()
17 |
18 | var hasPreviousField: Bool { get }
| `- note: requirement 'hasPreviousField' declared here
19 |
20 | var hasNextField: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:168:9: warning: main actor-isolated property 'hasNextField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
166 | }
167 |
168 | var hasNextField: Bool {
| `- warning: main actor-isolated property 'hasNextField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
169 | guard let currentIndex = currentIndex else { return false }
170 | return focusableField(afterIndex: currentIndex) != nil
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:20:9: note: requirement 'hasNextField' declared here
18 | var hasPreviousField: Bool { get }
19 |
20 | var hasNextField: Bool { get }
| `- note: requirement 'hasNextField' declared here
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:177:10: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:181:18: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: mutation of this property is only permitted within the actor
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
180 | init(state: SignUpState) {
181 | self.state = state
| `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
182 | }
183 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:200:50: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: property declared here
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
:
198 |
199 | if case .password = field.attributeType {
200 | let configuration = self.state.configuration.passwordProtectionSettings
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
201 | return FieldValidators.password(
202 | minLength: configuration.minLength,
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:205:95: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: property declared here
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
:
203 | characterPolicy: configuration.characterPolicy.asPasswordCharactersPolicy()
204 | )(value)
205 | } else if case .passwordConfirmation = field.attributeType, value != self.state.password {
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
206 | return "authenticator.validator.field.newPassword.doesNotMatch".localized()
207 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ResetPasswordView.swift:127:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
125 | }
126 |
127 | try? await state.resetPassword()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'resetPassword()' risks causing data races between nonisolated and main actor-isolated uses
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:152:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
150 | }
151 |
152 | try? await state.signIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'signIn()' risks causing data races between nonisolated and main actor-isolated uses
153 | }
154 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:177:10: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| |- warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated '$input_value' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:113:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
111 | }
112 |
113 | try? await state.signUp()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'signUp()' risks causing data races between nonisolated and main actor-isolated uses
114 | }
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/VerifyUserView.swift:87:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
85 |
86 | private func verifyUser() async {
87 | try? await state.verifyUser()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'verifyUser()' risks causing data races between nonisolated and main actor-isolated uses
88 | }
89 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/VerifyUserView.swift:91:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
89 |
90 | private func skip() async {
91 | try? await state.skip()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'skip()' risks causing data races between nonisolated and main actor-isolated uses
92 | }
93 | }
[1991/1995] Compiling Authenticator ResetPasswordView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Primitives/PhoneNumberField.swift:132:18: warning: result of call to 'accessibilityHidden' is unused
130 | .foregroundColor(theme.colors.foreground.disabled.opacity(0.6))
131 | .font(theme.fonts.body)
132 | textView.accessibilityHidden(true)
| `- warning: result of call to 'accessibilityHidden' is unused
133 | return textView
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Primitives/TextField.swift:90:18: warning: result of call to 'accessibilityHidden' is unused
88 | .foregroundColor(theme.colors.foreground.disabled.opacity(0.6))
89 | .font(theme.fonts.body)
90 | textView.accessibilityHidden(true)
| `- warning: result of call to 'accessibilityHidden' is unused
91 | return textView
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:26:9: warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
14 | /// and display the appropiate field.
15 | public struct SignInView<Header: View,
16 | Footer: View>: View, KeyboardIterableFields {
| `- note: add '@preconcurrency' to the 'KeyboardIterableFields' conformance to defer isolation checking to run time
17 | @Environment(\.authenticatorState) private var authenticatorState
18 | @Environment(\.authenticatorOptions) private var options
:
24 | private var viewModifiers = ViewModifiers()
25 |
26 | var focusedField: FocusState<SignInState.Field?> = FocusState()
| `- warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
27 |
28 | /// Creates a `SignInView`
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:12:9: note: requirement 'focusedField' declared here
10 | protocol KeyboardIterableFields: AuthenticatorLogging {
11 | associatedtype Field: Hashable
12 | var focusedField: FocusState<Field?> {set get}
| `- note: requirement 'focusedField' declared here
13 |
14 | func focusPreviousField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:22:9: warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
11 | /// Represents the content being displayed when the ``Authenticator`` is in the ``AuthenticatorStep/signUp`` step.
12 | public struct SignUpView<Header: View,
13 | Footer: View>: View, KeyboardIterableFields {
| `- note: add '@preconcurrency' to the 'KeyboardIterableFields' conformance to defer isolation checking to run time
14 | @Environment(\.authenticatorState) private var authenticatorState
15 | @Environment(\.authenticatorOptions) private var options
:
20 | private let overridenSignUpFields: [SignUpField]?
21 |
22 | var focusedField: FocusState<SignUpAttribute?> = FocusState()
| `- warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
23 |
24 | /// Creates a `SignUpView`
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:12:9: note: requirement 'focusedField' declared here
10 | protocol KeyboardIterableFields: AuthenticatorLogging {
11 | associatedtype Field: Hashable
12 | var focusedField: FocusState<Field?> {set get}
| `- note: requirement 'focusedField' declared here
13 |
14 | func focusPreviousField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:153:10: warning: main actor-isolated instance method 'focusPreviousField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
151 | }
152 |
153 | func focusPreviousField() {
| |- warning: main actor-isolated instance method 'focusPreviousField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'focusPreviousField()' to make this instance method not isolated to the actor
154 | guard let currentIndex = currentIndex else { return }
155 | focusedField.wrappedValue = focusableField(beforeIndex: currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:14:10: note: mark the protocol requirement 'focusPreviousField()' 'async' to allow actor-isolated conformances
12 | var focusedField: FocusState<Field?> {set get}
13 |
14 | func focusPreviousField()
| `- note: mark the protocol requirement 'focusPreviousField()' 'async' to allow actor-isolated conformances
15 |
16 | func focusNextField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:158:10: warning: main actor-isolated instance method 'focusNextField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
156 | }
157 |
158 | func focusNextField() {
| |- warning: main actor-isolated instance method 'focusNextField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'focusNextField()' to make this instance method not isolated to the actor
159 | guard let currentIndex = currentIndex else { return }
160 | focusedField.wrappedValue = focusableField(afterIndex: currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:16:10: note: mark the protocol requirement 'focusNextField()' 'async' to allow actor-isolated conformances
14 | func focusPreviousField()
15 |
16 | func focusNextField()
| `- note: mark the protocol requirement 'focusNextField()' 'async' to allow actor-isolated conformances
17 |
18 | var hasPreviousField: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:163:9: warning: main actor-isolated property 'hasPreviousField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
161 | }
162 |
163 | var hasPreviousField: Bool {
| `- warning: main actor-isolated property 'hasPreviousField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
164 | guard let currentIndex = currentIndex else { return false }
165 | return focusableField(beforeIndex: currentIndex) != nil
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:18:9: note: requirement 'hasPreviousField' declared here
16 | func focusNextField()
17 |
18 | var hasPreviousField: Bool { get }
| `- note: requirement 'hasPreviousField' declared here
19 |
20 | var hasNextField: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:168:9: warning: main actor-isolated property 'hasNextField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
166 | }
167 |
168 | var hasNextField: Bool {
| `- warning: main actor-isolated property 'hasNextField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
169 | guard let currentIndex = currentIndex else { return false }
170 | return focusableField(afterIndex: currentIndex) != nil
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:20:9: note: requirement 'hasNextField' declared here
18 | var hasPreviousField: Bool { get }
19 |
20 | var hasNextField: Bool { get }
| `- note: requirement 'hasNextField' declared here
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:177:10: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:181:18: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: mutation of this property is only permitted within the actor
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
180 | init(state: SignUpState) {
181 | self.state = state
| `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
182 | }
183 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:200:50: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: property declared here
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
:
198 |
199 | if case .password = field.attributeType {
200 | let configuration = self.state.configuration.passwordProtectionSettings
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
201 | return FieldValidators.password(
202 | minLength: configuration.minLength,
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:205:95: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: property declared here
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
:
203 | characterPolicy: configuration.characterPolicy.asPasswordCharactersPolicy()
204 | )(value)
205 | } else if case .passwordConfirmation = field.attributeType, value != self.state.password {
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
206 | return "authenticator.validator.field.newPassword.doesNotMatch".localized()
207 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ResetPasswordView.swift:127:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
125 | }
126 |
127 | try? await state.resetPassword()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'resetPassword()' risks causing data races between nonisolated and main actor-isolated uses
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:152:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
150 | }
151 |
152 | try? await state.signIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'signIn()' risks causing data races between nonisolated and main actor-isolated uses
153 | }
154 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:177:10: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| |- warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated '$input_value' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:113:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
111 | }
112 |
113 | try? await state.signUp()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'signUp()' risks causing data races between nonisolated and main actor-isolated uses
114 | }
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/VerifyUserView.swift:87:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
85 |
86 | private func verifyUser() async {
87 | try? await state.verifyUser()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'verifyUser()' risks causing data races between nonisolated and main actor-isolated uses
88 | }
89 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/VerifyUserView.swift:91:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
89 |
90 | private func skip() async {
91 | try? await state.skip()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'skip()' risks causing data races between nonisolated and main actor-isolated uses
92 | }
93 | }
[1992/1995] Compiling Authenticator SignInView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Primitives/PhoneNumberField.swift:132:18: warning: result of call to 'accessibilityHidden' is unused
130 | .foregroundColor(theme.colors.foreground.disabled.opacity(0.6))
131 | .font(theme.fonts.body)
132 | textView.accessibilityHidden(true)
| `- warning: result of call to 'accessibilityHidden' is unused
133 | return textView
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Primitives/TextField.swift:90:18: warning: result of call to 'accessibilityHidden' is unused
88 | .foregroundColor(theme.colors.foreground.disabled.opacity(0.6))
89 | .font(theme.fonts.body)
90 | textView.accessibilityHidden(true)
| `- warning: result of call to 'accessibilityHidden' is unused
91 | return textView
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:26:9: warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
14 | /// and display the appropiate field.
15 | public struct SignInView<Header: View,
16 | Footer: View>: View, KeyboardIterableFields {
| `- note: add '@preconcurrency' to the 'KeyboardIterableFields' conformance to defer isolation checking to run time
17 | @Environment(\.authenticatorState) private var authenticatorState
18 | @Environment(\.authenticatorOptions) private var options
:
24 | private var viewModifiers = ViewModifiers()
25 |
26 | var focusedField: FocusState<SignInState.Field?> = FocusState()
| `- warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
27 |
28 | /// Creates a `SignInView`
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:12:9: note: requirement 'focusedField' declared here
10 | protocol KeyboardIterableFields: AuthenticatorLogging {
11 | associatedtype Field: Hashable
12 | var focusedField: FocusState<Field?> {set get}
| `- note: requirement 'focusedField' declared here
13 |
14 | func focusPreviousField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:22:9: warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
11 | /// Represents the content being displayed when the ``Authenticator`` is in the ``AuthenticatorStep/signUp`` step.
12 | public struct SignUpView<Header: View,
13 | Footer: View>: View, KeyboardIterableFields {
| `- note: add '@preconcurrency' to the 'KeyboardIterableFields' conformance to defer isolation checking to run time
14 | @Environment(\.authenticatorState) private var authenticatorState
15 | @Environment(\.authenticatorOptions) private var options
:
20 | private let overridenSignUpFields: [SignUpField]?
21 |
22 | var focusedField: FocusState<SignUpAttribute?> = FocusState()
| `- warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
23 |
24 | /// Creates a `SignUpView`
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:12:9: note: requirement 'focusedField' declared here
10 | protocol KeyboardIterableFields: AuthenticatorLogging {
11 | associatedtype Field: Hashable
12 | var focusedField: FocusState<Field?> {set get}
| `- note: requirement 'focusedField' declared here
13 |
14 | func focusPreviousField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:153:10: warning: main actor-isolated instance method 'focusPreviousField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
151 | }
152 |
153 | func focusPreviousField() {
| |- warning: main actor-isolated instance method 'focusPreviousField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'focusPreviousField()' to make this instance method not isolated to the actor
154 | guard let currentIndex = currentIndex else { return }
155 | focusedField.wrappedValue = focusableField(beforeIndex: currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:14:10: note: mark the protocol requirement 'focusPreviousField()' 'async' to allow actor-isolated conformances
12 | var focusedField: FocusState<Field?> {set get}
13 |
14 | func focusPreviousField()
| `- note: mark the protocol requirement 'focusPreviousField()' 'async' to allow actor-isolated conformances
15 |
16 | func focusNextField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:158:10: warning: main actor-isolated instance method 'focusNextField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
156 | }
157 |
158 | func focusNextField() {
| |- warning: main actor-isolated instance method 'focusNextField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'focusNextField()' to make this instance method not isolated to the actor
159 | guard let currentIndex = currentIndex else { return }
160 | focusedField.wrappedValue = focusableField(afterIndex: currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:16:10: note: mark the protocol requirement 'focusNextField()' 'async' to allow actor-isolated conformances
14 | func focusPreviousField()
15 |
16 | func focusNextField()
| `- note: mark the protocol requirement 'focusNextField()' 'async' to allow actor-isolated conformances
17 |
18 | var hasPreviousField: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:163:9: warning: main actor-isolated property 'hasPreviousField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
161 | }
162 |
163 | var hasPreviousField: Bool {
| `- warning: main actor-isolated property 'hasPreviousField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
164 | guard let currentIndex = currentIndex else { return false }
165 | return focusableField(beforeIndex: currentIndex) != nil
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:18:9: note: requirement 'hasPreviousField' declared here
16 | func focusNextField()
17 |
18 | var hasPreviousField: Bool { get }
| `- note: requirement 'hasPreviousField' declared here
19 |
20 | var hasNextField: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:168:9: warning: main actor-isolated property 'hasNextField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
166 | }
167 |
168 | var hasNextField: Bool {
| `- warning: main actor-isolated property 'hasNextField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
169 | guard let currentIndex = currentIndex else { return false }
170 | return focusableField(afterIndex: currentIndex) != nil
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:20:9: note: requirement 'hasNextField' declared here
18 | var hasPreviousField: Bool { get }
19 |
20 | var hasNextField: Bool { get }
| `- note: requirement 'hasNextField' declared here
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:177:10: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:181:18: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: mutation of this property is only permitted within the actor
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
180 | init(state: SignUpState) {
181 | self.state = state
| `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
182 | }
183 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:200:50: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: property declared here
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
:
198 |
199 | if case .password = field.attributeType {
200 | let configuration = self.state.configuration.passwordProtectionSettings
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
201 | return FieldValidators.password(
202 | minLength: configuration.minLength,
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:205:95: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: property declared here
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
:
203 | characterPolicy: configuration.characterPolicy.asPasswordCharactersPolicy()
204 | )(value)
205 | } else if case .passwordConfirmation = field.attributeType, value != self.state.password {
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
206 | return "authenticator.validator.field.newPassword.doesNotMatch".localized()
207 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ResetPasswordView.swift:127:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
125 | }
126 |
127 | try? await state.resetPassword()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'resetPassword()' risks causing data races between nonisolated and main actor-isolated uses
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:152:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
150 | }
151 |
152 | try? await state.signIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'signIn()' risks causing data races between nonisolated and main actor-isolated uses
153 | }
154 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:177:10: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| |- warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated '$input_value' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:113:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
111 | }
112 |
113 | try? await state.signUp()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'signUp()' risks causing data races between nonisolated and main actor-isolated uses
114 | }
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/VerifyUserView.swift:87:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
85 |
86 | private func verifyUser() async {
87 | try? await state.verifyUser()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'verifyUser()' risks causing data races between nonisolated and main actor-isolated uses
88 | }
89 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/VerifyUserView.swift:91:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
89 |
90 | private func skip() async {
91 | try? await state.skip()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'skip()' risks causing data races between nonisolated and main actor-isolated uses
92 | }
93 | }
[1993/1995] Compiling Authenticator SignUpView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Primitives/PhoneNumberField.swift:132:18: warning: result of call to 'accessibilityHidden' is unused
130 | .foregroundColor(theme.colors.foreground.disabled.opacity(0.6))
131 | .font(theme.fonts.body)
132 | textView.accessibilityHidden(true)
| `- warning: result of call to 'accessibilityHidden' is unused
133 | return textView
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Primitives/TextField.swift:90:18: warning: result of call to 'accessibilityHidden' is unused
88 | .foregroundColor(theme.colors.foreground.disabled.opacity(0.6))
89 | .font(theme.fonts.body)
90 | textView.accessibilityHidden(true)
| `- warning: result of call to 'accessibilityHidden' is unused
91 | return textView
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:26:9: warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
14 | /// and display the appropiate field.
15 | public struct SignInView<Header: View,
16 | Footer: View>: View, KeyboardIterableFields {
| `- note: add '@preconcurrency' to the 'KeyboardIterableFields' conformance to defer isolation checking to run time
17 | @Environment(\.authenticatorState) private var authenticatorState
18 | @Environment(\.authenticatorOptions) private var options
:
24 | private var viewModifiers = ViewModifiers()
25 |
26 | var focusedField: FocusState<SignInState.Field?> = FocusState()
| `- warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
27 |
28 | /// Creates a `SignInView`
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:12:9: note: requirement 'focusedField' declared here
10 | protocol KeyboardIterableFields: AuthenticatorLogging {
11 | associatedtype Field: Hashable
12 | var focusedField: FocusState<Field?> {set get}
| `- note: requirement 'focusedField' declared here
13 |
14 | func focusPreviousField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:22:9: warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
11 | /// Represents the content being displayed when the ``Authenticator`` is in the ``AuthenticatorStep/signUp`` step.
12 | public struct SignUpView<Header: View,
13 | Footer: View>: View, KeyboardIterableFields {
| `- note: add '@preconcurrency' to the 'KeyboardIterableFields' conformance to defer isolation checking to run time
14 | @Environment(\.authenticatorState) private var authenticatorState
15 | @Environment(\.authenticatorOptions) private var options
:
20 | private let overridenSignUpFields: [SignUpField]?
21 |
22 | var focusedField: FocusState<SignUpAttribute?> = FocusState()
| `- warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
23 |
24 | /// Creates a `SignUpView`
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:12:9: note: requirement 'focusedField' declared here
10 | protocol KeyboardIterableFields: AuthenticatorLogging {
11 | associatedtype Field: Hashable
12 | var focusedField: FocusState<Field?> {set get}
| `- note: requirement 'focusedField' declared here
13 |
14 | func focusPreviousField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:153:10: warning: main actor-isolated instance method 'focusPreviousField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
151 | }
152 |
153 | func focusPreviousField() {
| |- warning: main actor-isolated instance method 'focusPreviousField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'focusPreviousField()' to make this instance method not isolated to the actor
154 | guard let currentIndex = currentIndex else { return }
155 | focusedField.wrappedValue = focusableField(beforeIndex: currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:14:10: note: mark the protocol requirement 'focusPreviousField()' 'async' to allow actor-isolated conformances
12 | var focusedField: FocusState<Field?> {set get}
13 |
14 | func focusPreviousField()
| `- note: mark the protocol requirement 'focusPreviousField()' 'async' to allow actor-isolated conformances
15 |
16 | func focusNextField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:158:10: warning: main actor-isolated instance method 'focusNextField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
156 | }
157 |
158 | func focusNextField() {
| |- warning: main actor-isolated instance method 'focusNextField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'focusNextField()' to make this instance method not isolated to the actor
159 | guard let currentIndex = currentIndex else { return }
160 | focusedField.wrappedValue = focusableField(afterIndex: currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:16:10: note: mark the protocol requirement 'focusNextField()' 'async' to allow actor-isolated conformances
14 | func focusPreviousField()
15 |
16 | func focusNextField()
| `- note: mark the protocol requirement 'focusNextField()' 'async' to allow actor-isolated conformances
17 |
18 | var hasPreviousField: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:163:9: warning: main actor-isolated property 'hasPreviousField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
161 | }
162 |
163 | var hasPreviousField: Bool {
| `- warning: main actor-isolated property 'hasPreviousField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
164 | guard let currentIndex = currentIndex else { return false }
165 | return focusableField(beforeIndex: currentIndex) != nil
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:18:9: note: requirement 'hasPreviousField' declared here
16 | func focusNextField()
17 |
18 | var hasPreviousField: Bool { get }
| `- note: requirement 'hasPreviousField' declared here
19 |
20 | var hasNextField: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:168:9: warning: main actor-isolated property 'hasNextField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
166 | }
167 |
168 | var hasNextField: Bool {
| `- warning: main actor-isolated property 'hasNextField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
169 | guard let currentIndex = currentIndex else { return false }
170 | return focusableField(afterIndex: currentIndex) != nil
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:20:9: note: requirement 'hasNextField' declared here
18 | var hasPreviousField: Bool { get }
19 |
20 | var hasNextField: Bool { get }
| `- note: requirement 'hasNextField' declared here
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:177:10: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:181:18: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: mutation of this property is only permitted within the actor
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
180 | init(state: SignUpState) {
181 | self.state = state
| `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
182 | }
183 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:200:50: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: property declared here
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
:
198 |
199 | if case .password = field.attributeType {
200 | let configuration = self.state.configuration.passwordProtectionSettings
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
201 | return FieldValidators.password(
202 | minLength: configuration.minLength,
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:205:95: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: property declared here
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
:
203 | characterPolicy: configuration.characterPolicy.asPasswordCharactersPolicy()
204 | )(value)
205 | } else if case .passwordConfirmation = field.attributeType, value != self.state.password {
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
206 | return "authenticator.validator.field.newPassword.doesNotMatch".localized()
207 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ResetPasswordView.swift:127:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
125 | }
126 |
127 | try? await state.resetPassword()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'resetPassword()' risks causing data races between nonisolated and main actor-isolated uses
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:152:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
150 | }
151 |
152 | try? await state.signIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'signIn()' risks causing data races between nonisolated and main actor-isolated uses
153 | }
154 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:177:10: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| |- warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated '$input_value' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:113:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
111 | }
112 |
113 | try? await state.signUp()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'signUp()' risks causing data races between nonisolated and main actor-isolated uses
114 | }
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/VerifyUserView.swift:87:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
85 |
86 | private func verifyUser() async {
87 | try? await state.verifyUser()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'verifyUser()' risks causing data races between nonisolated and main actor-isolated uses
88 | }
89 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/VerifyUserView.swift:91:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
89 |
90 | private func skip() async {
91 | try? await state.skip()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'skip()' risks causing data races between nonisolated and main actor-isolated uses
92 | }
93 | }
[1994/1995] Compiling Authenticator VerifyUserView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Primitives/PhoneNumberField.swift:132:18: warning: result of call to 'accessibilityHidden' is unused
130 | .foregroundColor(theme.colors.foreground.disabled.opacity(0.6))
131 | .font(theme.fonts.body)
132 | textView.accessibilityHidden(true)
| `- warning: result of call to 'accessibilityHidden' is unused
133 | return textView
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Primitives/TextField.swift:90:18: warning: result of call to 'accessibilityHidden' is unused
88 | .foregroundColor(theme.colors.foreground.disabled.opacity(0.6))
89 | .font(theme.fonts.body)
90 | textView.accessibilityHidden(true)
| `- warning: result of call to 'accessibilityHidden' is unused
91 | return textView
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:26:9: warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
14 | /// and display the appropiate field.
15 | public struct SignInView<Header: View,
16 | Footer: View>: View, KeyboardIterableFields {
| `- note: add '@preconcurrency' to the 'KeyboardIterableFields' conformance to defer isolation checking to run time
17 | @Environment(\.authenticatorState) private var authenticatorState
18 | @Environment(\.authenticatorOptions) private var options
:
24 | private var viewModifiers = ViewModifiers()
25 |
26 | var focusedField: FocusState<SignInState.Field?> = FocusState()
| `- warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
27 |
28 | /// Creates a `SignInView`
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:12:9: note: requirement 'focusedField' declared here
10 | protocol KeyboardIterableFields: AuthenticatorLogging {
11 | associatedtype Field: Hashable
12 | var focusedField: FocusState<Field?> {set get}
| `- note: requirement 'focusedField' declared here
13 |
14 | func focusPreviousField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:22:9: warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
11 | /// Represents the content being displayed when the ``Authenticator`` is in the ``AuthenticatorStep/signUp`` step.
12 | public struct SignUpView<Header: View,
13 | Footer: View>: View, KeyboardIterableFields {
| `- note: add '@preconcurrency' to the 'KeyboardIterableFields' conformance to defer isolation checking to run time
14 | @Environment(\.authenticatorState) private var authenticatorState
15 | @Environment(\.authenticatorOptions) private var options
:
20 | private let overridenSignUpFields: [SignUpField]?
21 |
22 | var focusedField: FocusState<SignUpAttribute?> = FocusState()
| `- warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
23 |
24 | /// Creates a `SignUpView`
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:12:9: note: requirement 'focusedField' declared here
10 | protocol KeyboardIterableFields: AuthenticatorLogging {
11 | associatedtype Field: Hashable
12 | var focusedField: FocusState<Field?> {set get}
| `- note: requirement 'focusedField' declared here
13 |
14 | func focusPreviousField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:153:10: warning: main actor-isolated instance method 'focusPreviousField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
151 | }
152 |
153 | func focusPreviousField() {
| |- warning: main actor-isolated instance method 'focusPreviousField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'focusPreviousField()' to make this instance method not isolated to the actor
154 | guard let currentIndex = currentIndex else { return }
155 | focusedField.wrappedValue = focusableField(beforeIndex: currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:14:10: note: mark the protocol requirement 'focusPreviousField()' 'async' to allow actor-isolated conformances
12 | var focusedField: FocusState<Field?> {set get}
13 |
14 | func focusPreviousField()
| `- note: mark the protocol requirement 'focusPreviousField()' 'async' to allow actor-isolated conformances
15 |
16 | func focusNextField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:158:10: warning: main actor-isolated instance method 'focusNextField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
156 | }
157 |
158 | func focusNextField() {
| |- warning: main actor-isolated instance method 'focusNextField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'focusNextField()' to make this instance method not isolated to the actor
159 | guard let currentIndex = currentIndex else { return }
160 | focusedField.wrappedValue = focusableField(afterIndex: currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:16:10: note: mark the protocol requirement 'focusNextField()' 'async' to allow actor-isolated conformances
14 | func focusPreviousField()
15 |
16 | func focusNextField()
| `- note: mark the protocol requirement 'focusNextField()' 'async' to allow actor-isolated conformances
17 |
18 | var hasPreviousField: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:163:9: warning: main actor-isolated property 'hasPreviousField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
161 | }
162 |
163 | var hasPreviousField: Bool {
| `- warning: main actor-isolated property 'hasPreviousField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
164 | guard let currentIndex = currentIndex else { return false }
165 | return focusableField(beforeIndex: currentIndex) != nil
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:18:9: note: requirement 'hasPreviousField' declared here
16 | func focusNextField()
17 |
18 | var hasPreviousField: Bool { get }
| `- note: requirement 'hasPreviousField' declared here
19 |
20 | var hasNextField: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:168:9: warning: main actor-isolated property 'hasNextField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
166 | }
167 |
168 | var hasNextField: Bool {
| `- warning: main actor-isolated property 'hasNextField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
169 | guard let currentIndex = currentIndex else { return false }
170 | return focusableField(afterIndex: currentIndex) != nil
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:20:9: note: requirement 'hasNextField' declared here
18 | var hasPreviousField: Bool { get }
19 |
20 | var hasNextField: Bool { get }
| `- note: requirement 'hasNextField' declared here
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:177:10: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:181:18: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: mutation of this property is only permitted within the actor
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
180 | init(state: SignUpState) {
181 | self.state = state
| `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
182 | }
183 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:200:50: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: property declared here
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
:
198 |
199 | if case .password = field.attributeType {
200 | let configuration = self.state.configuration.passwordProtectionSettings
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
201 | return FieldValidators.password(
202 | minLength: configuration.minLength,
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:205:95: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: property declared here
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
:
203 | characterPolicy: configuration.characterPolicy.asPasswordCharactersPolicy()
204 | )(value)
205 | } else if case .passwordConfirmation = field.attributeType, value != self.state.password {
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
206 | return "authenticator.validator.field.newPassword.doesNotMatch".localized()
207 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ResetPasswordView.swift:127:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
125 | }
126 |
127 | try? await state.resetPassword()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'resetPassword()' risks causing data races between nonisolated and main actor-isolated uses
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:152:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
150 | }
151 |
152 | try? await state.signIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'signIn()' risks causing data races between nonisolated and main actor-isolated uses
153 | }
154 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:177:10: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| |- warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated '$input_value' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:113:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
111 | }
112 |
113 | try? await state.signUp()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'signUp()' risks causing data races between nonisolated and main actor-isolated uses
114 | }
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/VerifyUserView.swift:87:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
85 |
86 | private func verifyUser() async {
87 | try? await state.verifyUser()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'verifyUser()' risks causing data races between nonisolated and main actor-isolated uses
88 | }
89 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/VerifyUserView.swift:91:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
89 |
90 | private func skip() async {
91 | try? await state.skip()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'skip()' risks causing data races between nonisolated and main actor-isolated uses
92 | }
93 | }
[1995/1995] Compiling Authenticator resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Primitives/PhoneNumberField.swift:132:18: warning: result of call to 'accessibilityHidden' is unused
130 | .foregroundColor(theme.colors.foreground.disabled.opacity(0.6))
131 | .font(theme.fonts.body)
132 | textView.accessibilityHidden(true)
| `- warning: result of call to 'accessibilityHidden' is unused
133 | return textView
134 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/Primitives/TextField.swift:90:18: warning: result of call to 'accessibilityHidden' is unused
88 | .foregroundColor(theme.colors.foreground.disabled.opacity(0.6))
89 | .font(theme.fonts.body)
90 | textView.accessibilityHidden(true)
| `- warning: result of call to 'accessibilityHidden' is unused
91 | return textView
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:26:9: warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
14 | /// and display the appropiate field.
15 | public struct SignInView<Header: View,
16 | Footer: View>: View, KeyboardIterableFields {
| `- note: add '@preconcurrency' to the 'KeyboardIterableFields' conformance to defer isolation checking to run time
17 | @Environment(\.authenticatorState) private var authenticatorState
18 | @Environment(\.authenticatorOptions) private var options
:
24 | private var viewModifiers = ViewModifiers()
25 |
26 | var focusedField: FocusState<SignInState.Field?> = FocusState()
| `- warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
27 |
28 | /// Creates a `SignInView`
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:12:9: note: requirement 'focusedField' declared here
10 | protocol KeyboardIterableFields: AuthenticatorLogging {
11 | associatedtype Field: Hashable
12 | var focusedField: FocusState<Field?> {set get}
| `- note: requirement 'focusedField' declared here
13 |
14 | func focusPreviousField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:22:9: warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
11 | /// Represents the content being displayed when the ``Authenticator`` is in the ``AuthenticatorStep/signUp`` step.
12 | public struct SignUpView<Header: View,
13 | Footer: View>: View, KeyboardIterableFields {
| `- note: add '@preconcurrency' to the 'KeyboardIterableFields' conformance to defer isolation checking to run time
14 | @Environment(\.authenticatorState) private var authenticatorState
15 | @Environment(\.authenticatorOptions) private var options
:
20 | private let overridenSignUpFields: [SignUpField]?
21 |
22 | var focusedField: FocusState<SignUpAttribute?> = FocusState()
| `- warning: main actor-isolated property 'focusedField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
23 |
24 | /// Creates a `SignUpView`
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:12:9: note: requirement 'focusedField' declared here
10 | protocol KeyboardIterableFields: AuthenticatorLogging {
11 | associatedtype Field: Hashable
12 | var focusedField: FocusState<Field?> {set get}
| `- note: requirement 'focusedField' declared here
13 |
14 | func focusPreviousField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:153:10: warning: main actor-isolated instance method 'focusPreviousField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
151 | }
152 |
153 | func focusPreviousField() {
| |- warning: main actor-isolated instance method 'focusPreviousField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'focusPreviousField()' to make this instance method not isolated to the actor
154 | guard let currentIndex = currentIndex else { return }
155 | focusedField.wrappedValue = focusableField(beforeIndex: currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:14:10: note: mark the protocol requirement 'focusPreviousField()' 'async' to allow actor-isolated conformances
12 | var focusedField: FocusState<Field?> {set get}
13 |
14 | func focusPreviousField()
| `- note: mark the protocol requirement 'focusPreviousField()' 'async' to allow actor-isolated conformances
15 |
16 | func focusNextField()
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:158:10: warning: main actor-isolated instance method 'focusNextField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
156 | }
157 |
158 | func focusNextField() {
| |- warning: main actor-isolated instance method 'focusNextField()' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'focusNextField()' to make this instance method not isolated to the actor
159 | guard let currentIndex = currentIndex else { return }
160 | focusedField.wrappedValue = focusableField(afterIndex: currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:16:10: note: mark the protocol requirement 'focusNextField()' 'async' to allow actor-isolated conformances
14 | func focusPreviousField()
15 |
16 | func focusNextField()
| `- note: mark the protocol requirement 'focusNextField()' 'async' to allow actor-isolated conformances
17 |
18 | var hasPreviousField: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:163:9: warning: main actor-isolated property 'hasPreviousField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
161 | }
162 |
163 | var hasPreviousField: Bool {
| `- warning: main actor-isolated property 'hasPreviousField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
164 | guard let currentIndex = currentIndex else { return false }
165 | return focusableField(beforeIndex: currentIndex) != nil
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:18:9: note: requirement 'hasPreviousField' declared here
16 | func focusNextField()
17 |
18 | var hasPreviousField: Bool { get }
| `- note: requirement 'hasPreviousField' declared here
19 |
20 | var hasNextField: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:168:9: warning: main actor-isolated property 'hasNextField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
166 | }
167 |
168 | var hasNextField: Bool {
| `- warning: main actor-isolated property 'hasNextField' cannot be used to satisfy nonisolated requirement from protocol 'KeyboardIterableFields'; this is an error in the Swift 6 language mode
169 | guard let currentIndex = currentIndex else { return false }
170 | return focusableField(afterIndex: currentIndex) != nil
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Utilities/KeyboardIterableFields.swift:20:9: note: requirement 'hasNextField' declared here
18 | var hasPreviousField: Bool { get }
19 |
20 | var hasNextField: Bool { get }
| `- note: requirement 'hasNextField' declared here
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:177:10: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:181:18: warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: mutation of this property is only permitted within the actor
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
180 | init(state: SignUpState) {
181 | self.state = state
| `- warning: main actor-isolated property 'state' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
182 | }
183 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:200:50: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: property declared here
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
:
198 |
199 | if case .password = field.attributeType {
200 | let configuration = self.state.configuration.passwordProtectionSettings
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
201 | return FieldValidators.password(
202 | minLength: configuration.minLength,
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:205:95: warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| `- note: property declared here
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
:
203 | characterPolicy: configuration.characterPolicy.asPasswordCharactersPolicy()
204 | )(value)
205 | } else if case .passwordConfirmation = field.attributeType, value != self.state.password {
| `- warning: main actor-isolated property 'state' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
206 | return "authenticator.validator.field.newPassword.doesNotMatch".localized()
207 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/ResetPasswordView.swift:127:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
125 | }
126 |
127 | try? await state.resetPassword()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'resetPassword()' risks causing data races between nonisolated and main actor-isolated uses
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/States/AuthenticatorBaseState.swift:24:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
22 | }
23 |
24 | @ObservedObject var credentials: Credentials
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var errorTransform: ((AuthError) -> AuthenticatorError?)? = nil
SwiftUICore.ObservedObject.init:2:35: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
1 | generic struct ObservedObject {
2 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)}
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:152:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
150 | }
151 |
152 | try? await state.signIn()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'signIn()' risks causing data races between nonisolated and main actor-isolated uses
153 | }
154 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:177:10: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
175 | extension SignUpView {
176 | class Validators: ObservableObject {
177 | @ObservedObject private var state: SignUpState
| |- warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated '$input_value' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
178 | private var validators: [SignUpAttribute: Validator] = [:]
179 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignUpView.swift:113:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
111 | }
112 |
113 | try? await state.signUp()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'signUp()' risks causing data races between nonisolated and main actor-isolated uses
114 | }
115 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/VerifyUserView.swift:87:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
85 |
86 | private func verifyUser() async {
87 | try? await state.verifyUser()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'verifyUser()' risks causing data races between nonisolated and main actor-isolated uses
88 | }
89 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/VerifyUserView.swift:91:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
89 |
90 | private func skip() async {
91 | try? await state.skip()
| |- warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.state' to nonisolated instance method 'skip()' risks causing data races between nonisolated and main actor-isolated uses
92 | }
93 | }
Build complete! (398.19s)
Fetching https://github.com/aws-amplify/amplify-swift
[1/163403] Fetching amplify-swift
Fetched https://github.com/aws-amplify/amplify-swift from cache (6.45s)
Computing version for https://github.com/aws-amplify/amplify-swift
Computed https://github.com/aws-amplify/amplify-swift at 2.47.0 (6.99s)
Fetching https://github.com/aws-amplify/amplify-swift-utils-notifications.git
Fetching https://github.com/stephencelis/SQLite.swift.git
Fetching https://github.com/awslabs/aws-sdk-swift
[1/529] Fetching amplify-swift-utils-notifications
[240/10136] Fetching amplify-swift-utils-notifications, sqlite.swift
Fetched https://github.com/aws-amplify/amplify-swift-utils-notifications.git from cache (1.60s)
Fetched https://github.com/stephencelis/SQLite.swift.git from cache (1.60s)
[1/644348] Fetching aws-sdk-swift
Fetched https://github.com/awslabs/aws-sdk-swift from cache (306.33s)
Computing version for https://github.com/stephencelis/SQLite.swift.git
warning: 'sqlite.swift': /Package.swift:7:15: warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version
5 | name: "SQLite.swift",
6 | platforms: [
7 | .iOS(.v11),
| `- warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version
8 | .macOS(.v10_13),
9 | .watchOS(.v4),
/Package.swift:10:16: warning: 'v11' is deprecated: tvOS 12.0 is the oldest supported version
8 | .macOS(.v10_13),
9 | .watchOS(.v4),
10 | .tvOS(.v11),
| `- warning: 'v11' is deprecated: tvOS 12.0 is the oldest supported version
11 | .visionOS(.v1)
12 | ],
Computed https://github.com/stephencelis/SQLite.swift.git at 0.15.3 (307.12s)
Computing version for https://github.com/awslabs/aws-sdk-swift
Computed https://github.com/awslabs/aws-sdk-swift at 1.2.59 (0.79s)
Fetching https://github.com/smithy-lang/smithy-swift
Fetching https://github.com/awslabs/aws-crt-swift
[1/31158] Fetching aws-crt-swift
[1559/100868] Fetching aws-crt-swift, smithy-swift
Fetched https://github.com/smithy-lang/smithy-swift from cache (2.06s)
Fetched https://github.com/awslabs/aws-crt-swift from cache (2.06s)
Computing version for https://github.com/awslabs/aws-crt-swift
Computed https://github.com/awslabs/aws-crt-swift at 0.48.0 (2.65s)
Computing version for https://github.com/smithy-lang/smithy-swift
Computed https://github.com/smithy-lang/smithy-swift at 0.125.0 (0.60s)
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.71s)
Computing version for https://github.com/aws-amplify/amplify-swift-utils-notifications.git
Computed https://github.com/aws-amplify/amplify-swift-utils-notifications.git at 1.1.1 (1.28s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.44s)
Creating working copy for https://github.com/awslabs/aws-crt-swift
Working copy of https://github.com/awslabs/aws-crt-swift resolved at 0.48.0
Creating working copy for https://github.com/awslabs/aws-sdk-swift
Working copy of https://github.com/awslabs/aws-sdk-swift resolved at 1.2.59
Creating working copy for https://github.com/smithy-lang/smithy-swift
Working copy of https://github.com/smithy-lang/smithy-swift resolved at 0.125.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/aws-amplify/amplify-swift
Working copy of https://github.com/aws-amplify/amplify-swift resolved at 2.47.0
Creating working copy for https://github.com/stephencelis/SQLite.swift.git
Working copy of https://github.com/stephencelis/SQLite.swift.git resolved at 0.15.3
Creating working copy for https://github.com/aws-amplify/amplify-swift-utils-notifications.git
Working copy of https://github.com/aws-amplify/amplify-swift-utils-notifications.git resolved at 1.1.1
warning: 'sqlite.swift': /Users/admin/builder/spi-builder-workspace/.build/checkouts/SQLite.swift/Package.swift:7:15: warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version
5 | name: "SQLite.swift",
6 | platforms: [
7 | .iOS(.v11),
| `- warning: 'v11' is deprecated: iOS 12.0 is the oldest supported version
8 | .macOS(.v10_13),
9 | .watchOS(.v4),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SQLite.swift/Package.swift:10:16: warning: 'v11' is deprecated: tvOS 12.0 is the oldest supported version
8 | .macOS(.v10_13),
9 | .watchOS(.v4),
10 | .tvOS(.v11),
| `- warning: 'v11' is deprecated: tvOS 12.0 is the oldest supported version
11 | .visionOS(.v1)
12 | ],
warning: 'amplify-swift': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/amplify-swift/AmplifyPlugins/Core/AWSPluginsCore/WebSocket/README.md
Build complete.
{
"default_localization" : "en",
"dependencies" : [
{
"identity" : "amplify-swift",
"requirement" : {
"range" : [
{
"lower_bound" : "2.45.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/aws-amplify/amplify-swift"
}
],
"manifest_display_name" : "AmplifyUIAuthenticator",
"name" : "AmplifyUIAuthenticator",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "Authenticator",
"targets" : [
"Authenticator"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AuthenticatorTests",
"module_type" : "SwiftTarget",
"name" : "AuthenticatorTests",
"path" : "Tests/AuthenticatorTests",
"sources" : [
"Mocks/MockAuthenticationService.swift",
"Mocks/MockAuthenticatorState.swift",
"States/AuthenticatorBaseStateTests.swift",
"States/ConfirmResetPasswordStateTests.swift",
"States/ConfirmSignInWithCodeStateTests.swift",
"States/ConfirmSignInWithNewPasswordStateTests.swift",
"States/ConfirmSignUpStateTests.swift",
"States/ConfirmVerifyUserStateTests.swift",
"States/ContinueSignInWithEmailMFASetupStateTests.swift",
"States/ContinueSignInWithMFASelectionStateTests.swift",
"States/ContinueSignInWithMFASetupSelectionStateTests.swift",
"States/ContinueSignInWithTOTPSetupStateTests.swift",
"States/ResetPasswordStateTests.swift",
"States/SignInStateTests.swift",
"States/SignUpStateTests.swift",
"States/SignedInStateTests.swift",
"States/VerifyUserStateTests.swift"
],
"target_dependencies" : [
"Authenticator"
],
"type" : "test"
},
{
"c99name" : "Authenticator",
"module_type" : "SwiftTarget",
"name" : "Authenticator",
"path" : "Sources/Authenticator",
"product_dependencies" : [
"Amplify",
"AWSCognitoAuthPlugin"
],
"product_memberships" : [
"Authenticator"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Resources/en.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
}
],
"sources" : [
"Authenticator.swift",
"Configuration/AmplifyConfiguration.swift",
"Configuration/AuthenticatorOptions.swift",
"Constants/ComponentInformation.swift",
"Extensions/AuthError+Connectivity.swift",
"Extensions/AuthUserAttributeKey+LocalizedTitle.swift",
"Extensions/Bundle+Utils.swift",
"Extensions/Color+AmplifyUI.swift",
"Extensions/Color+Utils.swift",
"Extensions/DeliveryDestination+Value.swift",
"Extensions/EnvironmentValues+Authenticator.swift",
"Extensions/Logger+Error.swift",
"Extensions/String+Localizable.swift",
"Models/AuthenticatorMessage.swift",
"Models/AuthenticatorState.swift",
"Models/AuthenticatorStep.swift",
"Models/Internal/AuthenticatorMFAType.swift",
"Models/Internal/AuthenticatorStateProtocol.swift",
"Models/Internal/Credentials.swift",
"Models/Internal/InputType.swift",
"Models/Internal/Step.swift",
"Models/Internal/Validator.swift",
"Models/SignUpAttribute.swift",
"Models/SignUpField.swift",
"Options/TOTPOptions.swift",
"Service/AmplifyAuthenticationService.swift",
"Service/AuthenticationService.swift",
"States/AuthenticatorBaseState.swift",
"States/ConfirmResetPasswordState.swift",
"States/ConfirmSignInWithCodeState.swift",
"States/ConfirmSignInWithNewPasswordState.swift",
"States/ConfirmSignUpState.swift",
"States/ConfirmVerifyUserState.swift",
"States/ContinueSignInWithEmailMFASetupState.swift",
"States/ContinueSignInWithMFASelectionState.swift",
"States/ContinueSignInWithMFASetupSelectionState.swift",
"States/ContinueSignInWithTOTPSetupState.swift",
"States/ResetPasswordState.swift",
"States/SignInState.swift",
"States/SignUpState.swift",
"States/SignedInState.swift",
"States/VerifyUserState.swift",
"Theming/AuthenticatorTheme.swift",
"Utilities/AuthenticatorField.swift",
"Utilities/AuthenticatorLogging.swift",
"Utilities/FieldValidator.swift",
"Utilities/KeyboardIterableFields.swift",
"Utilities/Padding.swift",
"Utilities/Platform.swift",
"Utilities/PreviewFactory.swift",
"Utilities/RegionUtils.swift",
"Views/ConfirmResetPasswordView.swift",
"Views/ConfirmSignInWithCustomChallengeView.swift",
"Views/ConfirmSignInWithMFACodeView.swift",
"Views/ConfirmSignInWithNewPasswordView.swift",
"Views/ConfirmSignInWithOTPView.swift",
"Views/ConfirmSignInWithTOTPCodeView.swift",
"Views/ConfirmSignUpView.swift",
"Views/ConfirmVerifyUserView.swift",
"Views/ContinueSignInWithEmailMFASetupView.swift",
"Views/ContinueSignInWithMFASelectionView.swift",
"Views/ContinueSignInWithMFASetupSelectionView.swift",
"Views/ContinueSignInWithTOTPCopyKeyView.swift",
"Views/ContinueSignInWithTOTPSetupQRCodeView.swift",
"Views/ContinueSignInWithTOTPSetupView.swift",
"Views/ErrorView.swift",
"Views/Internal/AuthenticatorMessageView.swift",
"Views/Internal/AuthenticatorTextWithHeader.swift",
"Views/Internal/AuthenticatorView.swift",
"Views/Internal/ConfirmSignInWithCodeView.swift",
"Views/Internal/DefaultHeader.swift",
"Views/Internal/SignUpInputField.swift",
"Views/Primitives/Button.swift",
"Views/Primitives/DatePicker.swift",
"Views/Primitives/ImageButton.swift",
"Views/Primitives/PasswordField.swift",
"Views/Primitives/PhoneNumberField.swift",
"Views/Primitives/RadioButton.swift",
"Views/Primitives/TextField.swift",
"Views/ResetPasswordView.swift",
"Views/SignInView.swift",
"Views/SignUpView.swift",
"Views/VerifyUserView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.