应用程序在启动后立即崩溃

fla*_*ghi 7 xcode ios ios6 ios-provisioning

编辑:我的问题是因为plist文件已损坏.所以,如果你有同样的问题,可能是因为你的plist文件中有些东西.

所以我有这个应用程序,一切正常,直到我将我的设备更新到IOS 6.之后,我无法在设备上安装该应用程序.该应用程序在IOS 5.0模拟器和IOS 6.0模拟器上运行良好.当我尝试为设备构建它时,启动屏幕会显示两秒钟,然后应用程序关闭.在Xcode中我收到此错误:

timed out waiting for app to launch
Run Code Online (Sandbox Code Playgroud)

我搜索了网页,它说这是一个AdHoc配置问题,但我的配置文件是有序的.我甚至更改了应用程序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
Run Code Online (Sandbox Code Playgroud)

我不知道发生了什么.有没有人知道为什么会这样?

小智 0

谢谢@nycynik - 这解决了问题。在 xcode 中打开“管理器”,选择设备(例如 iPhone),选择“应用程序”并删除以前版本的应用程序。不如再跑一次。