FileWatcher icon indicating copy to clipboard operation
FileWatcher copied to clipboard

FSEventStreamSetDispatchQueue was deprecated

Open littlepaul476 opened this issue 2 years ago • 3 comments

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

Thanks and with best regards Petr Pavlicek

littlepaul476 avatar Mar 24 '23 16:03 littlepaul476

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

eonist avatar Mar 24 '23 20:03 eonist

whole warning message:

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

and no auto fix provided

littlepaul476 avatar Mar 24 '23 21:03 littlepaul476

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.

eonist avatar Mar 25 '23 01:03 eonist