Build Information
Successful build of AmplifyUIAuthenticator, reference main (e7faae), with Swift 6.1 for macOS (SPM) on 5 Jul 2026 16:54:52 UTC.
Swift 6 data race errors: 118
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 InferSendableFromCapturesBuild Log
101 | try? await state.continue()
| |- 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 'continue()' risks causing data races between nonisolated and main actor-isolated uses
102 | }
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/PasskeyCreatedView.swift:88:29: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
86 | .onAppear {
87 | Task {
88 | await state.fetchPasskeyCredentials()
| |- 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 'fetchPasskeyCredentials()' risks causing data races between nonisolated and main actor-isolated uses
89 | }
90 | }
/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 |
[2241/2249] Compiling Authenticator TextField.swift
/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/PromptToCreatePasskeyView.swift:82:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
80 |
81 | private func createPasskey() async {
82 | try? await state.createPasskey()
| |- 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 'createPasskey()' risks causing data races between nonisolated and main actor-isolated uses
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/PromptToCreatePasskeyView.swift:86:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
84 |
85 | private func skip() async {
86 | 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
87 | }
88 | }
/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/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/Views/SignInConfirmPasswordView.swift:94:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
92 | }
93 |
94 | try? await state.confirmPassword()
| |- 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 'confirmPassword()' risks causing data races between nonisolated and main actor-isolated uses
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInSelectAuthFactorView.swift:136:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
134 | private func selectAuthFactor(_ factor: AuthFactor) async {
135 | state.selectedAuthFactor = factor
136 | try? await state.selectAuthFactor()
| |- 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 'selectAuthFactor()' risks causing data races between nonisolated and main actor-isolated uses
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:186:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
184 | }
185 |
186 | 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
187 | }
188 |
/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 | }
[2242/2249] Compiling Authenticator PromptToCreatePasskeyView.swift
/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/PromptToCreatePasskeyView.swift:82:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
80 |
81 | private func createPasskey() async {
82 | try? await state.createPasskey()
| |- 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 'createPasskey()' risks causing data races between nonisolated and main actor-isolated uses
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/PromptToCreatePasskeyView.swift:86:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
84 |
85 | private func skip() async {
86 | 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
87 | }
88 | }
/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/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/Views/SignInConfirmPasswordView.swift:94:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
92 | }
93 |
94 | try? await state.confirmPassword()
| |- 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 'confirmPassword()' risks causing data races between nonisolated and main actor-isolated uses
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInSelectAuthFactorView.swift:136:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
134 | private func selectAuthFactor(_ factor: AuthFactor) async {
135 | state.selectedAuthFactor = factor
136 | try? await state.selectAuthFactor()
| |- 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 'selectAuthFactor()' risks causing data races between nonisolated and main actor-isolated uses
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:186:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
184 | }
185 |
186 | 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
187 | }
188 |
/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 | }
[2243/2249] Compiling Authenticator ResetPasswordView.swift
/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/PromptToCreatePasskeyView.swift:82:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
80 |
81 | private func createPasskey() async {
82 | try? await state.createPasskey()
| |- 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 'createPasskey()' risks causing data races between nonisolated and main actor-isolated uses
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/PromptToCreatePasskeyView.swift:86:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
84 |
85 | private func skip() async {
86 | 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
87 | }
88 | }
/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/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/Views/SignInConfirmPasswordView.swift:94:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
92 | }
93 |
94 | try? await state.confirmPassword()
| |- 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 'confirmPassword()' risks causing data races between nonisolated and main actor-isolated uses
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInSelectAuthFactorView.swift:136:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
134 | private func selectAuthFactor(_ factor: AuthFactor) async {
135 | state.selectedAuthFactor = factor
136 | try? await state.selectAuthFactor()
| |- 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 'selectAuthFactor()' risks causing data races between nonisolated and main actor-isolated uses
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:186:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
184 | }
185 |
186 | 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
187 | }
188 |
/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 | }
[2244/2249] Compiling Authenticator SignInConfirmPasswordView.swift
/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/PromptToCreatePasskeyView.swift:82:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
80 |
81 | private func createPasskey() async {
82 | try? await state.createPasskey()
| |- 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 'createPasskey()' risks causing data races between nonisolated and main actor-isolated uses
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/PromptToCreatePasskeyView.swift:86:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
84 |
85 | private func skip() async {
86 | 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
87 | }
88 | }
/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/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/Views/SignInConfirmPasswordView.swift:94:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
92 | }
93 |
94 | try? await state.confirmPassword()
| |- 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 'confirmPassword()' risks causing data races between nonisolated and main actor-isolated uses
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInSelectAuthFactorView.swift:136:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
134 | private func selectAuthFactor(_ factor: AuthFactor) async {
135 | state.selectedAuthFactor = factor
136 | try? await state.selectAuthFactor()
| |- 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 'selectAuthFactor()' risks causing data races between nonisolated and main actor-isolated uses
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:186:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
184 | }
185 |
186 | 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
187 | }
188 |
/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 | }
[2245/2249] Compiling Authenticator SignInSelectAuthFactorView.swift
/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/PromptToCreatePasskeyView.swift:82:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
80 |
81 | private func createPasskey() async {
82 | try? await state.createPasskey()
| |- 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 'createPasskey()' risks causing data races between nonisolated and main actor-isolated uses
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/PromptToCreatePasskeyView.swift:86:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
84 |
85 | private func skip() async {
86 | 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
87 | }
88 | }
/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/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/Views/SignInConfirmPasswordView.swift:94:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
92 | }
93 |
94 | try? await state.confirmPassword()
| |- 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 'confirmPassword()' risks causing data races between nonisolated and main actor-isolated uses
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInSelectAuthFactorView.swift:136:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
134 | private func selectAuthFactor(_ factor: AuthFactor) async {
135 | state.selectedAuthFactor = factor
136 | try? await state.selectAuthFactor()
| |- 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 'selectAuthFactor()' risks causing data races between nonisolated and main actor-isolated uses
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:186:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
184 | }
185 |
186 | 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
187 | }
188 |
/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 | }
[2246/2249] Compiling Authenticator SignInView.swift
/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/PromptToCreatePasskeyView.swift:82:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
80 |
81 | private func createPasskey() async {
82 | try? await state.createPasskey()
| |- 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 'createPasskey()' risks causing data races between nonisolated and main actor-isolated uses
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/PromptToCreatePasskeyView.swift:86:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
84 |
85 | private func skip() async {
86 | 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
87 | }
88 | }
/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/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/Views/SignInConfirmPasswordView.swift:94:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
92 | }
93 |
94 | try? await state.confirmPassword()
| |- 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 'confirmPassword()' risks causing data races between nonisolated and main actor-isolated uses
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInSelectAuthFactorView.swift:136:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
134 | private func selectAuthFactor(_ factor: AuthFactor) async {
135 | state.selectedAuthFactor = factor
136 | try? await state.selectAuthFactor()
| |- 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 'selectAuthFactor()' risks causing data races between nonisolated and main actor-isolated uses
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:186:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
184 | }
185 |
186 | 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
187 | }
188 |
/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 | }
[2247/2249] Compiling Authenticator SignUpView.swift
/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/PromptToCreatePasskeyView.swift:82:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
80 |
81 | private func createPasskey() async {
82 | try? await state.createPasskey()
| |- 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 'createPasskey()' risks causing data races between nonisolated and main actor-isolated uses
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/PromptToCreatePasskeyView.swift:86:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
84 |
85 | private func skip() async {
86 | 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
87 | }
88 | }
/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/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/Views/SignInConfirmPasswordView.swift:94:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
92 | }
93 |
94 | try? await state.confirmPassword()
| |- 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 'confirmPassword()' risks causing data races between nonisolated and main actor-isolated uses
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInSelectAuthFactorView.swift:136:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
134 | private func selectAuthFactor(_ factor: AuthFactor) async {
135 | state.selectedAuthFactor = factor
136 | try? await state.selectAuthFactor()
| |- 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 'selectAuthFactor()' risks causing data races between nonisolated and main actor-isolated uses
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:186:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
184 | }
185 |
186 | 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
187 | }
188 |
/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 | }
[2248/2249] Compiling Authenticator VerifyUserView.swift
/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/PromptToCreatePasskeyView.swift:82:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
80 |
81 | private func createPasskey() async {
82 | try? await state.createPasskey()
| |- 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 'createPasskey()' risks causing data races between nonisolated and main actor-isolated uses
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/PromptToCreatePasskeyView.swift:86:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
84 |
85 | private func skip() async {
86 | 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
87 | }
88 | }
/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/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/Views/SignInConfirmPasswordView.swift:94:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
92 | }
93 |
94 | try? await state.confirmPassword()
| |- 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 'confirmPassword()' risks causing data races between nonisolated and main actor-isolated uses
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInSelectAuthFactorView.swift:136:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
134 | private func selectAuthFactor(_ factor: AuthFactor) async {
135 | state.selectedAuthFactor = factor
136 | try? await state.selectAuthFactor()
| |- 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 'selectAuthFactor()' risks causing data races between nonisolated and main actor-isolated uses
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:186:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
184 | }
185 |
186 | 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
187 | }
188 |
/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 | }
[2249/2249] Compiling Authenticator resource_bundle_accessor.swift
/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/PromptToCreatePasskeyView.swift:82:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
80 |
81 | private func createPasskey() async {
82 | try? await state.createPasskey()
| |- 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 'createPasskey()' risks causing data races between nonisolated and main actor-isolated uses
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/PromptToCreatePasskeyView.swift:86:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
84 |
85 | private func skip() async {
86 | 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
87 | }
88 | }
/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/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/Views/SignInConfirmPasswordView.swift:94:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
92 | }
93 |
94 | try? await state.confirmPassword()
| |- 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 'confirmPassword()' risks causing data races between nonisolated and main actor-isolated uses
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInSelectAuthFactorView.swift:136:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
134 | private func selectAuthFactor(_ factor: AuthFactor) async {
135 | state.selectedAuthFactor = factor
136 | try? await state.selectAuthFactor()
| |- 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 'selectAuthFactor()' risks causing data races between nonisolated and main actor-isolated uses
137 | }
138 |
/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Views/SignInView.swift:186:26: warning: sending 'self.state' risks causing data races; this is an error in the Swift 6 language mode
184 | }
185 |
186 | 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
187 | }
188 |
/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! (719.39s)
Fetching https://github.com/aws-amplify/amplify-swift
[1/171497] Fetching amplify-swift
Fetched https://github.com/aws-amplify/amplify-swift from cache (11.81s)
Computing version for https://github.com/aws-amplify/amplify-swift
Computed https://github.com/aws-amplify/amplify-swift at 2.58.4 (12.43s)
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/606] Fetching amplify-swift-utils-notifications
[159/11818] Fetching amplify-swift-utils-notifications, sqlite.swift
[11819/931428] Fetching amplify-swift-utils-notifications, sqlite.swift, aws-sdk-swift
Fetched https://github.com/stephencelis/SQLite.swift.git from cache (461.34s)
Fetched https://github.com/aws-amplify/amplify-swift-utils-notifications.git from cache (461.34s)
Fetched https://github.com/awslabs/aws-sdk-swift from cache (461.34s)
Computing version for https://github.com/stephencelis/SQLite.swift.git
Computed https://github.com/stephencelis/SQLite.swift.git at 0.15.4 (462.17s)
Fetching https://github.com/swiftlang/swift-toolchain-sqlite
[1/339] Fetching swift-toolchain-sqlite
Fetched https://github.com/swiftlang/swift-toolchain-sqlite from cache (3.04s)
Computing version for https://github.com/awslabs/aws-sdk-swift
Computed https://github.com/awslabs/aws-sdk-swift at 1.7.27 (10.18s)
Fetching https://github.com/awslabs/aws-crt-swift
Fetching https://github.com/smithy-lang/smithy-swift
[1/33679] Fetching aws-crt-swift
[8421/116617] Fetching aws-crt-swift, smithy-swift
Fetched https://github.com/awslabs/aws-crt-swift from cache (2.33s)
Fetched https://github.com/smithy-lang/smithy-swift from cache (2.33s)
Computing version for https://github.com/swiftlang/swift-toolchain-sqlite
Computed https://github.com/swiftlang/swift-toolchain-sqlite at 1.0.4 (2.86s)
Computing version for https://github.com/smithy-lang/smithy-swift
Computed https://github.com/smithy-lang/smithy-swift at 0.223.0 (0.69s)
Fetching https://github.com/swift-server/async-http-client.git from cache
Fetching https://github.com/apple/swift-argument-parser.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/swift-server/async-http-client.git from cache (1.44s)
Fetched https://github.com/apple/swift-log.git from cache (1.46s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.47s)
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 (2.09s)
Computing version for https://github.com/awslabs/aws-crt-swift
Computed https://github.com/awslabs/aws-crt-swift at 0.63.1 (0.53s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (0.52s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.35.0 (0.50s)
Fetching https://github.com/apple/swift-nio-extras.git from cache
Fetching https://github.com/apple/swift-nio-transport-services.git from cache
Fetching https://github.com/apple/swift-nio-http2.git from cache
Fetching https://github.com/apple/swift-nio-ssl.git from cache
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetching https://github.com/apple/swift-atomics.git from cache
Fetching https://github.com/apple/swift-algorithms.git from cache
[1/5859] Fetching swift-distributed-tracing
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.96s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (0.97s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (0.98s)
Fetching https://github.com/apple/swift-nio.git from cache
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (1.11s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.13s)
Fetched https://github.com/apple/swift-algorithms.git from cache (1.13s)
Fetched https://github.com/apple/swift-nio-extras.git from cache (1.14s)
Fetched https://github.com/apple/swift-nio.git from cache (2.27s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.4.1 (3.79s)
Fetching https://github.com/apple/swift-service-context.git
[1/1301] Fetching swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.80s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (1.41s)
Fetching https://github.com/apple/swift-numerics.git from cache
Fetched https://github.com/apple/swift-numerics.git from cache (0.85s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.101.2 (1.58s)
Fetching https://github.com/apple/swift-system.git from cache
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-system.git from cache (0.99s)
Fetched https://github.com/apple/swift-collections.git from cache (1.67s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (2.19s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.3.0 (0.49s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.50s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.28.0 (0.50s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.44.0 (0.50s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.1 (0.51s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.14.0 (0.50s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.7.2 (0.52s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (0.58s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.34.2 (2.63s)
Fetching https://github.com/apple/swift-asn1.git from cache
Fetching https://github.com/apple/swift-http-types.git from cache
Fetching https://github.com/apple/swift-http-structured-headers.git from cache
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-async-algorithms.git
[1/2770] Fetching swift-service-lifecycle
[29/10145] Fetching swift-service-lifecycle, swift-certificates
[269/16729] Fetching swift-service-lifecycle, swift-certificates, swift-async-algorithms
Fetched https://github.com/apple/swift-http-types.git from cache (0.76s)
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (1.13s)
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.13s)
Fetched https://github.com/apple/swift-certificates.git from cache (1.13s)
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (1.14s)
Fetched https://github.com/apple/swift-asn1.git from cache (1.14s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.11.0 (1.66s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.5 (0.55s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.6.0 (0.49s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.1 (0.63s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.7.0 (0.49s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.19.3 (0.64s)
Fetching https://github.com/apple/swift-crypto.git from cache
Fetched https://github.com/apple/swift-crypto.git from cache (1.59s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.0 (2.74s)
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.1
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.19.3
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.4
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.28.0
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.101.2
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.1
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.5
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.34.2
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.7.2
Creating working copy for https://github.com/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.35.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.8.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/aws-amplify/amplify-swift
Working copy of https://github.com/aws-amplify/amplify-swift resolved at 2.58.4
Creating working copy for https://github.com/awslabs/aws-sdk-swift
Working copy of https://github.com/awslabs/aws-sdk-swift resolved at 1.7.27
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.11.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.0
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
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.3.0
Creating working copy for https://github.com/swiftlang/swift-toolchain-sqlite
Working copy of https://github.com/swiftlang/swift-toolchain-sqlite resolved at 1.0.4
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.14.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.44.0
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.7.0
Creating working copy for https://github.com/smithy-lang/smithy-swift
Working copy of https://github.com/smithy-lang/smithy-swift resolved at 0.223.0
Creating working copy for https://github.com/awslabs/aws-crt-swift
Working copy of https://github.com/awslabs/aws-crt-swift resolved at 0.63.1
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.6.0
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
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/Amplify/AGENTS.md
Build complete.
{
"default_localization" : "en",
"dependencies" : [
{
"identity" : "amplify-swift",
"requirement" : {
"range" : [
{
"lower_bound" : "2.53.2",
"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",
"Models/AuthFactorArrayExtensionTests.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/PasskeyCreatedStateTests.swift",
"States/PromptToCreatePasskeyStateTests.swift",
"States/ResetPasswordStateTests.swift",
"States/SignInConfirmPasswordStateTests.swift",
"States/SignInSelectAuthFactorStateTests.swift",
"States/SignInStateTests.swift",
"States/SignUpStateTests.swift",
"States/SignedInStateTests.swift",
"States/VerifyUserStateTests.swift",
"Views/SignInViewTests.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"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/Authenticator/Resources/media.xcassets",
"rule" : {
"process" : {
}
}
}
],
"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/AuthFactor.swift",
"Models/AuthenticationFlow.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/PasskeyPrompt.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/PasskeyCreatedState.swift",
"States/PromptToCreatePasskeyState.swift",
"States/ResetPasswordState.swift",
"States/SignInConfirmPasswordState.swift",
"States/SignInSelectAuthFactorState.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/PasskeyCreatedView.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/PromptToCreatePasskeyView.swift",
"Views/ResetPasswordView.swift",
"Views/SignInConfirmPasswordView.swift",
"Views/SignInSelectAuthFactorView.swift",
"Views/SignInView.swift",
"Views/SignUpView.swift",
"Views/VerifyUserView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.