Francesco Piraneo G.
Francesco Piraneo G.

Reputation: 870

Unable to find file provider extension with identifier

I’m developing a file provider extension for macOS; I’m working with xcode 16 and macOS Sequoia.

I created an host application via xcode with a simple button “Add domain” that triggers the following code:

let domain = NSFileProviderDomain(identifier: NSFileProviderDomainIdentifier(rawValue: "me.piranef.fileprovider"), displayName: "piranef")
NSFileProviderManager.add(domain) { theError in
                NSLog(">>> ERROR: \(theError?.localizedDescription ?? "No error")")
}

Note: I provide the link to the whole project on GitHub below.

Finally I added via xcode a file provider target:

xcode add new target

At this point everything should be ok to run a simple stub application that once running add a piranef file provider visible under any file manager window in finder.

But the following error appears: No file provider was found with the identifier “me.piranef.MyFileProviderTester”

My suspect is that despite the target has been created by xcode, some setup in some .plist or .entitlement file must be changed manually or some tricky key added to make the file provider extension visible to the hosting application.

I tried to manually change some setup that appeared logical for me like:

To give all possible information I uploaded the whole project into my github profile at: https://github.com/fpiraneo/fileproviderstub/

Any hint is welcome; I already googled or searched in StackOverflow or even asked ChatGPT for help but with no results.

Upvotes: 2

Views: 170

Answers (1)

kuni
kuni

Reputation: 49

I just solved the same problem:

  • You need the same com.apple.security.application-groups in both of the entitlement files (app and appex).
  • Ensure the minimum deploy target in both configurations are the same.
    • I had the problem that the deploy target of the Provider was set to macOS 15 while my MacBook is on macOS 14.7.
  • Ensure both the app and the appex are provisioned using a provisioning profile. Otherwise the app groups are not working.

As the error message is always the same ("No file provider was found with the identifier _") it's hard to tell exactly which problem is causing the error.

Upvotes: 1

Related Questions