Getting "No valid file provider found with identifier"

I am currently developing an app based on a file provider extension and intermittently encounter the error: No valid file provider found with identifier.

Usually, I can mount (addDomain) successfully after building the app, but occasionally this error appears and then disappears after 10-15 minutes

I see these errors from log stream:

2024-07-28 01:01:46.644401+0530 0x1abf0    Default     0x0                  6654   0    fileproviderd: (FileProviderDaemon) [com.apple.FileProvider:default] [WARNING] No provider found with identifier (null) for calling bundle <private> on second attempt.
2024-07-28 01:01:47.099043+0530 0x1aac7    Error       0x0                  6926   0    mdbulkimport: (FileProvider) [com.apple.FileProvider:default] [ERROR] Cannot query for providers. Error: NSError: Cocoa 4099 "<private>"
2024-07-28 01:01:47.099203+0530 0x1aac7    Error       0x0                  6926   0    mdbulkimport: (FileProvider) [com.apple.FileProvider:default] [ERROR] received an error when listing providers, attempting again: Error Domain=NSCocoaErrorDomain Code=4099 UserInfo={NSDebugDescription=<private>} (count: 3)
2024-07-28 01:01:47.100009+0530 0x1aac7    Error       0x0                  6926   0    mdbulkimport: (FileProvider) [com.apple.FileProvider:default] [ERROR] Cannot query for providers. Error: NSError: Cocoa 4099 "<private>"
2024-07-28 01:01:47.100141+0530 0x1aac7    Error       0x0                  6926   0    mdbulkimport: (FileProvider) [com.apple.FileProvider:default] [ERROR] received an error when listing providers, attempting again: Error Domain=NSCocoaErrorDomain Code=4099 UserInfo={NSDebugDescription=<private>} (count: 2)
2024-07-28 01:01:47.100898+0530 0x1aac7    Error       0x0                  6926   0    mdbulkimport: (FileProvider) [com.apple.FileProvider:default] [ERROR] Cannot query for providers. Error: NSError: Cocoa 4099 "<private>"
2024-07-28 01:01:47.101112+0530 0x1aac7    Error       0x0                  6926   0    mdbulkimport: (FileProvider) [com.apple.FileProvider:default] [ERROR] received an error when listing providers, attempting again: Error Domain=NSCocoaErrorDomain Code=4099 UserInfo={NSDebugDescription=<private>} (count: 1)
2024-07-28 01:01:47.101951+0530 0x1aac7    Error       0x0                  6926   0    mdbulkimport: (FileProvider) [com.apple.FileProvider:default] [ERROR] Cannot query for providers. Error: NSError: Cocoa 4099 "<private>"
2024-07-28 01:01:47.102510+0530 0x1aac7    Error       0x0                  6926   0    mdbulkimport: (FileProvider) [com.apple.FileProvider:default] [ERROR] can't get the list of providers: NSError: Cocoa 4099 "<private>"

When the issue occurs, the following command does not list my provider:

fileproviderctl dump

Any help would be greatly appreciated. Thanks!

Hi, I always meet this error! Unfortunately the Apple dox skip the point about setting the various .entitlements / .plist files settings so I’m completely lost about. I don’t post here because as usual this forum is deserted by everybody, Apple engineers first!

If you have any clue or you solved the issue pls let me know; I’ll write a post on my blog for future reference if somebody else needs help.

Getting "No valid file provider found with identifier"
 
 
Q