Hi folks,
Could you please take a look on the issue below.
ConformanceIsolation (Xcode): Conformance of 'AppSettingsPlugin' to protocol 'FlutterPlugin' crosses into main actor-isolated code and can cause data races /Users/vi/.pub-cache/hosted/pub.dev/app_settings-6.1.1/ios/app_settings/Sources/app_settings/AppSettingsPlugin.swift:5:42
What I did to fix it is to add @preconcurrency for the FlutterPlugin and it compiles.
like this:
@MainActor public class AppSettingsPlugin: NSObject, @preconcurrency FlutterPlugin, UIWindowSceneDelegate { .... }
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.35.7, on macOS 26.0.1 25A362 darwin-arm64, locale en-UA)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.104.0)
[✓] Connected device (3 available)
! Error: Browsing on the local area network for Victor’s iPad. Ensure the device is unlocked and attached with a cable or associated with the same local area
network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
• No issues found!
Hi folks,
Could you please take a look on the issue below.
ConformanceIsolation (Xcode): Conformance of 'AppSettingsPlugin' to protocol 'FlutterPlugin' crosses into main actor-isolated code and can cause data races /Users/vi/.pub-cache/hosted/pub.dev/app_settings-6.1.1/ios/app_settings/Sources/app_settings/AppSettingsPlugin.swift:5:42What I did to fix it is to add
@preconcurrencyfor theFlutterPluginand it compiles.like this:
@MainActor public class AppSettingsPlugin: NSObject, @preconcurrency FlutterPlugin, UIWindowSceneDelegate { .... }flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.35.7, on macOS 26.0.1 25A362 darwin-arm64, locale en-UA)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.104.0)
[✓] Connected device (3 available)
! Error: Browsing on the local area network for Victor’s iPad. Ensure the device is unlocked and attached with a cable or associated with the same local area
network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
• No issues found!