I am writing an NSFileProviderReplicatedExtension for my app. Every once in a while it will get to a point where
NSFileProviderManager.getDomainsWithCompletionHandler { domains, error in
DispatchQueue.main.async {
if let error = error {
completion(.failure(.domainQueryFailed(error)))
} else {
completion(.success(domains))
}
}
}
this always fails, once this happens then regardless of what I do - clean build, restart machine, uninstall plugin nothing works. The only way to get back to a wokring state is a full reinstall of the OS. It seems like when this happens Finder gets to a weird irrecoverable state that only a restart can fix. When it fails the error is always :
The application cannot be used right now.
the only way out is reisntall the OS. When this happened last time, I was advised to the use the debugging profile: https://developer.apple.com/forums/thread/797053 I now have that and have the log which is 300MB file, where do I upload it to? My machine is in that state, is there anything else I can run or diagnose to address this?