I had what I believe is the same issue and it took me forever to figure out.
I believe the full error I got in the console was Error Domain=NSFileProviderErrorDomain Code=-2003 "An older version of the application is currently in use which maps to olderExtensionVersionRunning.
https://developer.apple.com/documentation/fileprovider/nsfileprovidererror/code/olderextensionversionrunning
It occurs when you run the extension from different file system locations. It is caused by the older version of your extension never being removed from the plugin registry.
I have found what fixes it is described in this stackoverflow post: https://stackoverflow.com/questions/44211893/extensions-pluginkit-and-craziness-on-macos
In summary:
Use pluginkit -v -m -D -i my.bundle.id to get the location of your old extension.
Use pluginkit -r path-to-my-extension to remove it.
Extra tip: you can use pluginkit -vvvvm to list all your registered plugins.
Hope that helps :)
Topic:
App & System Services
SubTopic:
Core OS
Tags: