App Store Connect 警告 - 无效的文档配置 [英] App Store Connect Warns - Invalid Document Configuration
问题描述
我已向 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 = YES) 或实现就地打开 (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 会显示一个带有复制到 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
将是最安全的选择,而且我认为这就是我的应用程序在我根本没有设置该选项时的行为方式.
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屋!