Skip to content

JSON is not Sendable. Does it plan to migrate to Swift 6? Is this project still in maintenance?  #1163

@HoustonDuane

Description

@HoustonDuane

What did you do?

I set the Strict Concurrency Checking in my target to Complete.

What did you expect to happen?

No warning when I pass a JSON from an non-main actor to a UIViewController.

What actually happened instead?

Xcode generates an error:
Non-sendable type 'JSON' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode

Environment

  • SwiftyJSON: 5.0.2

  • Xcode Version: 16.0 beta 2

  • Swift Version: 5 but treating errors in Swift 6 as warnings

  • Cocoapods: 1.15.2

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