2016-07-29 93 views
0

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

谢谢你的帮助。

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文件中添加另一个项目? enter image description here

+0

什么在您的info.plist?你使用背景模式?错误消息非常清楚。 – Paulw11

+0

那里我贴了我的plist是什么样的。 – MNM

+0

我认为我使用的唯一背景是推动notficiaton – MNM

回答

1

您有所需的背景模式两个值,你也有应用在后台集不运行 - 这是矛盾的。您的应用程序使用背景模式,或者您不希望它在后台运行。

的典型值应用程序不在后台运行。将它设置为给出了iOS 3.2之前的行为,当用户按下home按钮时,应用程序终止并从内存中移除。

即使你不使用背景模式,您通常会设置应用在后台不会运行没有,使您的应用程序并不需要完全重新启动的,当用户切换和退出它。

+0

修复它谢谢你。当我第一次开始构建它时,我没有任何背景运行,现在我这样做只是将它设置为否定一个非常好的观点。再一次感谢你 – MNM