-
-
Notifications
You must be signed in to change notification settings - Fork 202
Description
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,