Repository navigation
Closed
flutter/packages
#13296Closed
Copy link
Labels
p: local_authPlugin for local authentificationPlugin for local authentificationplatform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform team
Description
Testing failed:
Conformance of 'LocalAuthPlugin' to protocol 'FlutterApplicationLifeCycleDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode
Conformance of 'LocalAuthPlugin' to protocol 'FlutterSceneLifeCycleDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode
Testing cancelled because the build failed.
/Volumes/Work/s/w/ir/x/w/packages/packages/local_auth/local_auth_darwin/darwin/local_auth_darwin/Sources/local_auth_darwin/LocalAuthPlugin.swift:36:20: error: conformance of 'LocalAuthPlugin' to protocol 'FlutterApplicationLifeCycleDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode
public final class LocalAuthPlugin: NSObject, FlutterPlugin, LocalAuthApi, @unchecked Sendable {
^
/Volumes/Work/s/w/ir/x/w/packages/packages/local_auth/local_auth_darwin/darwin/local_auth_darwin/Sources/local_auth_darwin/LocalAuthPlugin.swift:36:20: note: isolate this conformance to the main actor with '@MainActor'
public final class LocalAuthPlugin: NSObject, FlutterPlugin, LocalAuthApi, @unchecked Sendable {
^
@MainActor
/Volumes/Work/s/w/ir/x/w/packages/packages/local_auth/local_auth_darwin/darwin/local_auth_darwin/Sources/local_auth_darwin/LocalAuthPlugin.swift:36:20: note: turn data races into runtime errors with '@preconcurrency'
public final class LocalAuthPlugin: NSObject, FlutterPlugin, LocalAuthApi, @unchecked Sendable {
^
@preconcurrency
/Volumes/Work/s/w/ir/x/w/packages/packages/local_auth/local_auth_darwin/darwin/local_auth_darwin/Sources/local_auth_darwin/LocalAuthPlugin.swift:279:17: note: main actor-isolated instance method 'applicationDidBecomeActive' cannot satisfy nonisolated requirement
public func applicationDidBecomeActive(_ application: UIApplication) {
^
/Volumes/Work/s/w/ir/x/w/packages/packages/local_auth/local_auth_darwin/darwin/local_auth_darwin/Sources/local_auth_darwin/LocalAuthPlugin.swift:289:30: error: conformance of 'LocalAuthPlugin' to protocol 'FlutterSceneLifeCycleDelegate' crosses into main actor-isolated code and can cause data races; this is an error in the Swift 6 language mode
extension LocalAuthPlugin: FlutterSceneLifeCycleDelegate {}
^
/Volumes/Work/s/w/ir/x/w/packages/packages/local_auth/local_auth_darwin/darwin/local_auth_darwin/Sources/local_auth_darwin/LocalAuthPlugin.swift:289:30: note: isolate this conformance to the main actor with '@MainActor'
extension LocalAuthPlugin: FlutterSceneLifeCycleDelegate {}
^
@MainActor
/Volumes/Work/s/w/ir/x/w/packages/packages/local_auth/local_auth_darwin/darwin/local_auth_darwin/Sources/local_auth_darwin/LocalAuthPlugin.swift:289:30: note: turn data races into runtime errors with '@preconcurrency'
extension LocalAuthPlugin: FlutterSceneLifeCycleDelegate {}
^
@preconcurrency
/Volumes/Work/s/w/ir/x/w/packages/packages/local_auth/local_auth_darwin/darwin/local_auth_darwin/Sources/local_auth_darwin/LocalAuthPlugin.swift:274:17: note: main actor-isolated instance method 'sceneDidBecomeActive' cannot satisfy nonisolated requirement
public func sceneDidBecomeActive(_ scene: UIScene) {
^
Note this isn't currently being caught in CI due to #194517
Metadata
Metadata
Assignees
Labels
p: local_authPlugin for local authentificationPlugin for local authentificationplatform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform team
Activity
[local_auth_darwin] Fix Swift 6 concurrency analyzer errors from life…
github-actions commentedon Oct 31, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.