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

FSEventStreamSetDispatchQueue was deprecated #21

Open
littlepaul476 opened this issue Mar 24, 2023 · 3 comments
Open

FSEventStreamSetDispatchQueue was deprecated #21

littlepaul476 opened this issue Mar 24, 2023 · 3 comments

Comments

@littlepaul476
Copy link

Hello,
when targeting macOS 13, compiler shows warning "FSEventStreamSetDispatchQueue was deprecated" in FileWatcher.swift line 43.

Thanks and with best regards
Petr Pavlicek

@eonist
Copy link
Owner

eonist commented Mar 24, 2023

@littlepaul476 Does it say what replaced it? Can you copy paste the warning message?

@littlepaul476
Copy link
Author

whole warning message:

'FSEventStreamScheduleWithRunLoop' was deprecated in macOS 13.0: Use FSEventStreamSetDispatchQueue instead.

and no auto fix provided

@eonist
Copy link
Owner

eonist commented Mar 25, 2023

Yepp Seems like we have to deprecate the support then. And lazy load public var queue: DispatchQueue? with DispatchQueue.global()

If you want to do the honours and make a pull request. I can merge it etc.

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

2 participants