2012-10-15 179 views
7

編輯:我的問題是因爲plist文件已損壞。所以,如果你有同樣的問題,可能是因爲你的plist文件。應用程序在啓動後立即崩潰

因此,我有這個程序,一切正常,直到我更新我的設備到IOS 6.之後,我無法在設備上安裝應用程序。該應用程序在IOS 5.0模擬器和IOS 6.0模擬器上工作得很好。當我嘗試構建設備時,啓動屏幕會顯示兩秒鐘,然後關閉應用程序。在Xcode我收到此錯誤:

timed out waiting for app to launch 

我在網上搜索,它說,這是一個即席配置問題,但我的配置配置文件是爲了。我甚至改變了應用程序ID並刪除了舊的配置,並且我得到了同樣的錯誤。

在設備控制檯我收到這個奇怪的錯誤:

Oct 15 23:48:23 iPad2-3G backboardd[51] <Warning>: Launch Services: Registered unknown app identifier InvoiceAppDev 
��Oct 15 23:48:23 iPad2-3G backboardd[51] <Warning>: Launch Services: Unable to find app identifier InvoiceAppDev 
Oct 15 23:48:23 iPad2-3G backboardd[51] <Warning>: Can't create application "InvoiceAppDev" without a bundle path 
Oct 15 23:48:44 iPad2-3G mobile_house_arrest[200] <Error>: Max open files: 78 
��Oct 15 23:48:44 iPad2-3G installd[30] <Error>: 0x2ff81000 handle_install: Install of "/var/mobile/Media/PublicStaging/InvoiceApp.app" requested by mobile_installation_proxy 
Oct 15 23:48:44 iPad2-3G installd[30] <Error>: 0x2ff81000 MobileInstallationInstall_Server: Installing app InvoiceAppDev 
��Oct 15 23:48:44 iPad2-3G installd[30] <Error>: Oct 15 23:48:44 SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName] 
Oct 15 23:48:45 iPad2-3G installd[30] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile 
��Oct 15 23:48:45 iPad2-3G installd[30] <Error>: entitlement 'com.apple.developer.ubiquity-container-identifiers' has value not permitted by a provisioning profile 

我沒有任何線索發生了什麼。有誰知道爲什麼會發生這種情況?

+1

應用程序失敗後,它顯示在設備上?你也可以嘗試從設備上刪除應用程序,然後再試一次? – nycynik

+1

重新啓動一切。設備和計算機。爲異常設置斷點。從乾淨的版本刪除並重新安裝。控制檯消息並不熟悉,但它們肯定會成爲配置問題。 – bshirley

+1

,然後有經典的arm6問題,其中你沒有構建手機的體系結構的應用程序,因爲設置已經從你下面更改http://stackoverflow.com/questions/4198676/warning-iphone-apps-should-include- an-armv6-architecture-even-with-build-config – bshirley

回答

0

謝謝@nycynik - 解決了這個問題。 在xcode中打開「管理器」,選擇設備(例如iPhone),選擇「應用程序」並刪除以前版本的 應用程序。再次運行。

+1

或者只是按住應用程序的按鈕,直到它搖晃,然後按出現的X. –

2

只見引起的下列空白字段的app.plist意外地進入了同樣的錯誤:

+ <key>LSApplicationCategoryType</key> 
+ <string></string> 
2

我有相同的症狀。相信與否,我將我的目標代碼從發行版改爲開發者,並且所有內容都按預期工作。