Skip to content

Issue with "Main actor-isolated class property" in Supabase Swift Package #571

@arekch444

Description

@arekch444

Hello,

I am encountering an issue with the Supabase Swift SDK in my iOS project, related to the Main actor-isolated class property.

Description of the issue:
While integrating the Supabase SDK into my iOS application, I encountered the following error:

"Main actor-isolated class property 'didBecomeActiveNotification' cannot be referenced from a non-isolated context"

This error appears in the AuthClient file within the NotificationCenter observer for the UIApplication.didBecomeActiveNotification and UIApplication.willResignActiveNotification. I am unable to directly modify this file as it is part of the Swift Package, and despite updating the package to the latest version, the issue persists.

Steps I took:
Installed the Supabase Swift package using Swift Package Manager.
Added the client configuration in my Xcode project.
Encountered the error mentioned above when trying to handle app lifecycle notifications.
I have verified that my project is using the latest version of the package, but the error still occurs.

Environment:
Xcode version: 15.2
Supabase Swift SDK version: 2.20.2
iOS target version: >17
Could you provide any guidance on how to resolve this issue, or if there is a patch planned to fix this?

Thank you for your assistance!

Best regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions