xcode UIApplicationExitsOnSuspend 键问题。我如何解决它?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/56494807/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
UIApplicationExitsOnSuspend key issue. How do I fix it?
提问by Максим Сикайло
When I archive and publish my app to the App Store, I have the following error:
当我归档应用程序并将其发布到 App Store 时,出现以下错误:
WARNING ITMS-90339: "Deprecated Info.plist Key. The Info.plist contains a key 'UIApplicationExitsOnSuspend' in bundle ar [ar.app] that will soon be unsupported. Remove the key, rebuild your app and resubmit."
警告 ITMS-90339:“已弃用 Info.plist 密钥。Info.plist 在捆绑包 ar [ar.app] 中包含一个密钥“UIApplicationExitsOnSuspend”,该密钥很快将不受支持。删除密钥,重建您的应用程序并重新提交。”
But I don't have that key.
但是我没有那把钥匙。
回答by rmaddy
You do have that key. It's labeled as "Application does not run in background". Remove that key from Info.plist.
你有那把钥匙。它被标记为“应用程序不在后台运行”。从 Info.plist 中删除该键。
Here's a little trick. Select the Info.plist. Then right-click on any key or value and select "Show Raw Keys/Values". Now you will see UIApplicationExitsOnSuspend
.
这里有一个小技巧。选择 Info.plist。然后右键单击任何键或值并选择“显示原始键/值”。现在你会看到UIApplicationExitsOnSuspend
。
回答by n devaraj
As @maddy suggested You need to remove "Application does not run in background" key in info.plist.
正如@maddy 建议的那样,您需要删除 info.plist 中的“应用程序不在后台运行”键。
If you want to make sure that your app runs in background, you can use UIBackgroundModes key in Info.plist, you can refer to below link for examples: https://stackoverflow.com/a/3413828/4525717, if this key is included, Apple would need valid justification for App store Approval process.
如果你想确保你的应用在后台运行,你可以使用 Info.plist 中的 UIBackgroundModes 键,你可以参考下面的链接示例:https://stackoverflow.com/a/3413828/4525717 ,如果这个键是包括在内,Apple 需要为 App Store 审批流程提供有效的理由。