Hi,
So I am bundling a FileProvider Extension with my electron application and have noticed a very strange behavior. When I package my application and install/launch it from any directory everything runs perfect. However the exception is when I install it to/launch it from the /Applications folder.
Specifically I receive Cannot create domain: Error Domain=NSFileProviderErrorDomain Code=-2001 "The application cannot be used right now."
which maps to providerNotFound. Seems that the provider is failing to instantiate altogether, and therefore I lack any extension functionality.
After I have run the app from the /Applications folder once if I try and run the app from any other directory it fails and I get the same error message.
Anybody have any clues as to what may be changing in my environment that driving this behavior?
I discovered that the issue was that the provisioning profile being generated from XCode was using my personal ID instead of my organization ID so I had to turn off automatic signing and manually provide the correct provisioning profile.
You can see more in detail the steps I took in my response to this StackOverflow post.
Hope this helps someone :)