提交 App UIApplicationExitsOnSuspend 时出现错误 ITMS-90040

ERROR ITMS-90040 for submitting App UIApplicationExitsOnSuspend

我正在尝试提交我的应用程序,但在我尝试提交时出现此错误。我正在查看构建文件和 plist,但无法弄清楚我需要在哪里更改它来修复它。

感谢您对此的任何帮助。

ERROR ITMS-90040: "If the value of UIApplicationExitsOnSuspend is Yes, your app must not specify any values in the UIBackgroundModes key. If your app uses background services, the value of UIApplicationExitsOnSuspend must be No. For more information, refer to the Information Property List Key Reference."
 ERROR ITMS-90040: "If the value of UIApplicationExitsOnSuspend is Yes, your app must not specify any values in the UIBackgroundModes key. If your app uses background services, the value of UIApplicationExitsOnSuspend must be No. For more information, refer to the Information Property List Key Reference."

我需要在我的 plist 文件中添加另一个项目吗?

您有两个 Required Background Modes 的值,并且您还将 A​​pplication does not 运行 in background 设置为 yes - 这是矛盾的。您的应用程序使用后台模式,或者您不希望它在后台 运行。

A​​pplication does not 运行 in background 的典型值为 no。将其设置为 yes 会给出 pre-iOS 3.2 行为,当用户按下主页按钮时,您的应用程序将终止并从内存中删除。

即使您不使用后台模式,您通常也会将 A​​pplication does not 运行 in background 设置为 no这样您的应用程序就不需要在用户切换时完全重启。