最近我的应用程序开始崩溃而没有输入我的代码不确定发生了什么我从IOS设备日志获得了以下c信息,但我无法理解这一点。有人请帮我找到应用程序崩溃的根本原因。当我安装ad-hoc构建时会发生这种情况。但如果我从调试安装应用程序它工作正常。请帮帮我
Sep 3 17:14:21 NarayananugrahamFeb-17-2013 com.apple.xpc.launchd[1]
<Error>: assertion failed: 13G36: launchd + 85529 [083E000D-4C31-3B98-A2C4-6FADB4D1940F]: 0x3
Sep 3 17:14:21 NarayananugrahamFeb-17-2013 SthotraaniiOS[631] <Warning>: Found new TLS offset at 176
Sep 3 17:14:22 NarayananugrahamFeb-17-2013 SthotraaniiOS[631] <Warning>: The app delegate must implement the window property if it wants to use a main storyboard file.
Sep 3 17:14:22 NarayananugrahamFeb-17-2013 SthotraaniiOS[631] <Error>: nw_endpoint_create_address Changing endpoint address length from 28 to 16, too long for family AF_INET
Sep 3 17:14:22 NarayananugrahamFeb-17-2013 SthotraaniiOS[631] <Error>: nw_endpoint_create_address Fixing endpoint address with non-zero sin_zero field
Sep 3 17:14:23 NarayananugrahamFeb-17-2013 SpringBoard[169] <Warning>: BSXPCMessage received error for message: Connection invalid
Sep 3 17:14:23 NarayananugrahamFeb-17-2013 SpringBoard[169] <Warning>: Unable to get short BSD proc info for 631: No such process
Sep 3 17:14:23 NarayananugrahamFeb-17-2013 SpringBoard[169] <Warning>: Unable to get short BSD proc info for 631: No such process
Sep 3 17:14:23 NarayananugrahamFeb-17-2013 SpringBoard[169] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Sep 3 17:14:23 NarayananugrahamFeb-17-2013 SpringBoard[169] <Warning>: UNNotificationRegistrarConnectionListener connection invalidated
Sep 3 17:14:23 NarayananugrahamFeb-17-2013 symptomsd[107] <Error>: __51-[FlowAnalyticsEngine _applicationStateMonitorInit]_block_invoke Attempt to add an app with insufficient id, info {
BKSApplicationStateAppIsFrontmost = 1;
BKSApplicationStateExtensionKey = 0;
SBApplicationStateDisplayIDKey = "com.chirravuris.sthotraani";
SBApplicationStateKey = 8;
SBApplicationStateProcessIDKey = 631;
SBMostElevatedStateForProcessID = 8;
}
Sep 3 17:14:23 NarayananugrahamFeb-17-2013 SpringBoard[169] <Warning>: Application 'UIKitApplication:com.chirravuris.sthotraani[0xf3c8]' exited voluntarily.
Sep 3 17:14:23 NarayananugrahamFeb-17-2013 UserEventAgent[23] <Warning>: 572794164572: id=com.chirravuris.sthotraani pid=631, state=0
答案 0 :(得分:6)
:app委托必须实现window属性 想要使用主要的故事板文件。
这表明你的AppDelegate的Windows出了问题。你可以重新检查你的AppDelegate,无论它是否有Windows对象。
见下文
public class AppDelegate : UIApplicationDelegate
{
public override UIWindow Window
{
get;
set;
}
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
// create a new window instance based on the screen size
window = new UIWindow(UIScreen.MainScreen.Bounds);
// make the window visible
window.MakeKeyAndVisible();
return true;
}
}
感谢。
答案 1 :(得分:1)
终于找到了问题。我已经链接了在ad-hoc构建中启用的所有程序集,并且没有在调试模式下链接,导致应用程序崩溃。此外,我仍然看到上面显示的错误,但应用程序没有崩溃