NSFileProviderExtension - importDocument - iWork Error 1

Hi,

I have impremented the File Provider extension with iOS 11, the develop is a good point but now I don't understand why from Pages, Numbers o Keynote when I create a new document in my provider retun a : com.apple.DocumentManager Error 1 ... The import it's ok and I return correctly the completionHandler:


override func importDocument(at fileURL: URL, toParentItemIdentifier parentItemIdentifier: NSFileProviderItemIdentifier, completionHandler: @escaping (NSFileProviderItem?, Error?) -> Void) {


...

...

completionHandler(item, nil)

}


But the error persist, what is missing ?


Thanks a lot

m.