App Store Connect警告 - 文档配置无效 [英] App Store Connect Warns - Invalid Document Configuration

查看:1650
本文介绍了App Store Connect警告 - 文档配置无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已向App Store Connect提交了Single View Swift iOS应用程序。该应用程序不是基于文档的。

I have submitted a Single View Swift iOS application to App Store Connect. The application is not Document Based.

应用程序上传成功,但我在Apple的电子邮件中收到以下警告。我仍然可以通过Test Flight测试应用程序,但我想消除警告。

The application uploads successfully, but I get the following warning in an email from Apple. I can still test the application through Test Flight, but I want to eliminate the warning.

无效的文档配置 - 基于文档的应用程序应该支持文档浏览器(UISupportsDocumentBrowser =是)或实施开放式(LSSupportsOpeningDocumentsInPlace = YES / NO)。

"Invalid Document Configuration - Document Based Apps should support either the Document Browser (UISupportsDocumentBrowser = YES) or implement Open In Place (LSSupportsOpeningDocumentsInPlace = YES/NO)."

推荐答案

我遇到了同样的问题;我不知道为什么,因为自我的应用程序的上一版本以来我几乎没有任何改变。

I just ran into the same problem; I don't know why, since I barely change anything since the previous version of my app.

无论如何,我的应用程序不支持文档浏览器,所以第一个一半的错误消息不适用。这让我下半场。我查了一下 LSSupportsOpeningDocumentsInPlace 的文档并且仍然不清楚它是如何工作的,所以我决定尝试两种选择。我的应用程序支持它自己的文档类型,当用户打开相应的文件时,iOS会显示一个带有Copy to Leio(我的应用程序)选项的操作表。将 LSSupportsOpeningDocumentsInPlace 设置为 YES 后,iOS将不再显示该操作表;它会打开我的应用程序,什么也不做。所以我把它设置为 NO ;现在该应用程序像以前一样工作,我不再收到该错误消息了。如果你不处理任何文件类型,我想你可以设置选项。

Anyway, my app doesn't support the Document Browser, so the first half of the error message doesn't apply. That left me with the second half. I looked up LSSupportsOpeningDocumentsInPlace's documentation and still wasn't clear on how it works, so I decided to try both options. My app supports it's own document type, and when a user opens an appropriate file iOS shows an action sheet with the option "Copy to Leio" (my app). After setting LSSupportsOpeningDocumentsInPlace to YES, iOS wouldn't show that action sheet anymore; it would just open my app and do nothing. So I set it to NO; now the app works as it did before and I'm not getting that error message anymore. If you don't handle any document types I suppose you could set the option either way.

编辑: 有关该选项的更多信息这里

There's some more information about that option here.

所以你去了。如果您的应用程序要编辑文档,它是否会编辑原始文档,还是会复制并处理该文档?相应地设置选项。如果你真的不做那样的话,我猜想把选项设置为 NO 将是最安全的选择,而且我认为这是我的应用程序在我没有时的表现t根本设置该选项。

So there you go. If your app were to edit a document, would it edit the original document, or would it make a copy and deal with that? Set the option accordingly. If you really don't do anything like that I'd guess setting the option to NO would be the safest bet, and I think that's how my app behaved when I hadn't set that option at all.

这篇关于App Store Connect警告 - 文档配置无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆