警告的详细信息:
WARN: WARNING ITMS-90737: "Invalid Document Configuration. Document Based Apps should support either the Document Browser (UISupportsDocumentBrowser = YES) or implement Open In Place (LSSupportsOpeningDocumentsInPlace = YES/NO). Visit https://developer.apple.com/document-based-apps/ for more information."
修改方式有两种:
1.info.plist中添加LSSupportsOpeningDocumentsInPlace设置项
LSSupportsOpeningDocumentsInPlace为YES:在ios11及以上的系统,在Files App中会看到当前应用Documents目录
当前应用需要实现UIApplication的下面的方法,在从Files App点击文件后,会调用该方法然后进行后续的处理。
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options
LSSupportsOpeningDocumentsInPlace为NO:在ios11及以上的系统,在Files App中会不看到当前应用Documents目录,和info.plist里没有LSSupportsOpeningD