Skip to content

[iOS] Swift Compiler Error (Xcode): Static property 'nilArgument' is not concurrency-safe because non-'Sendable' type 'FlutterError' may have shared mutable state #130

@a1573595

Description

@a1573595

What did you do?

Update flutter_line_sdk from 2.5.2 to 2.6.0.

What did you expect?

Compile Success.

What happened actually?

Swift Compiler Error (Xcode): Static property 'nilArgument' is not concurrency-safe because non-'Sendable' type 'FlutterError' may have shared mutable state
/Users/user/.pub-cache/hosted/pub.dev/flutter_line_sdk-2.6.0/ios/flutter_line_sdk/Sources/flutter_line_sdk/FlutterLineSdkPlugin.swift:48:13

Could not build the application for the simulator.
Error launching application on iPhone 16 Pro.

Your environment?

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.5, on macOS 15.5 24F74 darwin-arm64, locale zh-Hant-TW)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.3)
[✓] VS Code (version 1.100.3)
[✓] Connected device (5 available)
    ! Error: Browsing on the local area network for iPhone. 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)
    ! Error: Browsing on the local area network for iPhone oo. 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!

Sample project

Use Flutter 3.24.5 to create a new Flutter project, import flutter_line_sdk, and run iOS on the simulator. In 2.5.2 version worked well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions