2016-07-29 45 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

相關問題