Error creating FileProvider domain on external drive

Hi,

I am trying to use the new FileProvider feature available on macOS 15 to create a FileProvder domain on an external drive.

I am creating the domain with the initializer

init(displayName:, userInfo:, volumeURL:)

But when I try to add the domain with NSFileProviderManager.add()

I get error NSCocoaErrorDomain, code 3328 - feature not supported.

My external drive is APFS formatted and encrypted. I am checking its eligibility with

NSFileProviderManager.checkDomainsCanBeStoredOnVolume(at:)

and the result is "eligible".

What should be done to solve this problem - is there a specific entitlement I have to add? I checked the possible entitlements and I don't see anything pointing in this direction.

I will be very grateful for any help!

Error creating FileProvider domain on external drive
 
 
Q