Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swift6 migration issue #187

Open
luchi2300 opened this issue Sep 5, 2024 · 2 comments
Open

swift6 migration issue #187

luchi2300 opened this issue Sep 5, 2024 · 2 comments

Comments

@luchi2300
Copy link

Hello,

I am encountering the following error when trying to modify the log levels and writers:

Screenshot 2024-09-05 at 16 14 35

The log variable is not concurrency-safe.

Since the PubNubLogger initialiser is private, do you have any suggestions for migrating this to Swift 6?

I am using Xcode 16 with Swift 6.

Thanks.

@jguz-pubnub
Copy link
Contributor

Hi @luchi2300, thank you for reaching out to us. We'll begin migrating to Swift 6 and will notify about next updates

@FlickerSoul
Copy link

Also waiting for PubNub SDK being migrated to Swift 6.

Before that happens, you can use @preconcurrency to suppress the warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants