应用程序崩溃甚至没有输入我的代码

应用程序崩溃甚至没有输入我的代码

本文介绍了IOS 应用程序崩溃甚至没有输入我的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我的应用程序开始崩溃而没有输入我的代码不知道发生了什么我从 IOS 设备日志中获得了以下 c 信息,但我无法理解这一点.有人请帮我找到应用程序崩溃的根本原因.当我安装临时构建时会发生这种情况.但如果我从调试安装应用程序它工作正常.请帮帮我

recently my app started crashing without entering my code not sure whats going on I got the below c information from IOS device log, but I am unable to understand this. Someone please help me finding the root cause for the app crash. This happens when i installed the ad-hoc build. but if I install the app from debug it works fine. please help me

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

推荐答案

这表明您的 AppDelegate 的 Windows 有问题.你能重新检查你的 AppDelegate,它是否有 Windows 对象.

This shows that something wrong with your AppDelegate's Windows. Can you recheck your AppDelegate, whether it has Windows object or not.

见下文

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;
    }
}

谢谢.

这篇关于IOS 应用程序崩溃甚至没有输入我的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 09:09