DocumentPicker Extension immediately stopped on clicking on the icon

核能气质少年 提交于 2019-12-25 01:46:53

问题


I have created the document picker extension(Both File provide and document picker , with the default implementations) and when i try to open the extension using the DocumentPickerViewController, its immediately closing the DocumentPickerViewController by showing the below issue plugin com.apple.UIKit.fileprovider.default invalidated. I have setup the basic app groups and iCloud entitlement as well, Which are all fine. Even from the documentViewController the default iCloud is working perfectly fine. Actually i am testing the extension using the same container application. If somebody can provide some insight about this behavior, it would be a great help !!

Thanks, Vishnu


回答1:


I got the issue, actually the value of NSExtensionFileProviderDocumentGroup key was put incorrectly put on the info.plist of the file provider extension by XCode by the time of adding the App group.
Then I compared the files with the NBox sample from Apple and finally figured it out.
So sometimes beware of XCode automatic actions, make a cross check so to save to time.



来源:https://stackoverflow.com/questions/28367376/documentpicker-extension-immediately-stopped-on-clicking-on-the-icon

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!