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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12903817/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 01:49:43  来源:igfitidea点击:

App crashing immediately after start

iosxcodeios6ios-provisioning

提问by flaviusilaghi

EDIT: My problem was because the plist file was corrupted . So if you have the same issue, probably is because of something in you plist file.

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

SO i have this app and everything worked just fine until i updated my device to IOS 6. After that i couldn't install the app on the device . The app worked just fine on IOS 5.0 simulator and IOS 6.0 simulator . When i try to build it for device , the splash screen appears for two second and then the app closes . In Xcode i receive this error :

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

timed out waiting for app to launch

I searched the web and it said that it is a AdHoc provisioning problem but my provisioning profiles are in order . I even changed the app id and deleted the old provisioning and i got the same error .

我在网上搜索,它说这是一个 AdHoc 配置问题,但我的配置文件是有序的。我什至更改了应用程序 ID 并删除了旧的配置,但我遇到了同样的错误。

In the device console i receive this weird error :

在设备控制台中,我收到这个奇怪的错误:

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

I don't have any clue what happened . Does anybody has any idea why this happened ?

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

回答by paiego

I saw the same error caused by the accidental entry of the following blank field in app.plist:

我在 app.plist 中看到了由于意外输入以下空白字段导致的相同错误:

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

回答by user2429972

I had the exact same symptoms. Believe it or not, I changed my target code signing from distribution to developer and everything worked as expected.

我有完全相同的症状。信不信由你,我将目标代码签名从发行版更改为开发人员,一切都按预期进行。

回答by Daniel Behr

Thanks @nycynik - that solved the problem. In xcode open the the "Organizer", choose the device (ex. iPhone), select "Application" and delete the previous Version of the App. Than run again.

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