I'm trying to set up a simple "document" structure for a pair of macOS/iOS apps. Right now, it's very simple, just a folder of documents, but the important thing is being able to tag each document.
I was looking into trying to treat these folders as file bundles, allowing me to use the NSDocument / UIDocument frameworks, which worked great on the macOS side. But on iOS, once the files were inside a bundle, I could no longer access the xattrs. NSMetadataQuery won't find the files inside a package, which may be as designed, but even the child FileWrappers don't include any of the extended attributes (whereas for the same bundle, they're visible on macOS). Even dropping down to use listxattr doesn't return the expected attributes.
Is there any way around this? Is it an oversight, a bug?
EDIT:
I've had to settle on creating a plist to record the extended attributes, and ensuring it stays in sync between the phone & desktop, which is less than ideal. Especially given that as far as I can tell, the information *is* preserved on iOS, it's just inaccessible.
Is this something that might be opened up in the future, or is there another way around it that I'm missing?