Difficulties working with FileProvider extension

Hi, I'm now working with FileProvider on MacOS11.6.

I find out that I need to add icons and export it as UTI in Containing App of FileProvider if I want to show some icon decoration on my items that under the control of FileProvider.

But I just encountered some difficulties:

  1. As title says, once an UTI being exported with arbitrarily identifier, I cannot cancel the exporting and then re-export another image with the same identifier for the need of changing image but remaining identifier unchanged.
  2. My icon decoration somehow stops to show on items but it normally shows corresponding decoration identifier when evaluated by fileproviderctl evaluate {item_path} and changing identifier did not help.

Both difficulties were not solved by follow steps I've tried:

  1. Force restart Finder
  2. Delete domain before restart FileProvider
  3. Use pluginkit -r to remove FileProvider before restart FileProvider

Any advise would be appreciated, thanks!

Difficulties working with FileProvider extension
 
 
Q