Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xamarin iOS应用程序启动后立即崩溃_Ios_Xamarin_Xamarin.ios - Fatal编程技术网

Xamarin iOS应用程序启动后立即崩溃

Xamarin iOS应用程序启动后立即崩溃,ios,xamarin,xamarin.ios,Ios,Xamarin,Xamarin.ios,我有一个Xamarin应用程序,它按预期运行了一段时间,几天后,在尝试启动它后立即崩溃。下面是通过应用程序包名过滤的XCode控制台的输出 default 12:54:58.536319 +0200 SpringBoard Bootstrapping foo.bar.MyApp with intent foreground-interactive default 12:54:58.539833 +0200 assertiond Submitting new job for "foo.b

我有一个Xamarin应用程序,它按预期运行了一段时间,几天后,在尝试启动它后立即崩溃。下面是通过应用程序包名过滤的XCode控制台的输出

default 12:54:58.536319 +0200   SpringBoard Bootstrapping foo.bar.MyApp with intent foreground-interactive
default 12:54:58.539833 +0200   assertiond  Submitting new job for "foo.bar.MyApp" on behalf of <BKProcess: 0x102877f50; SpringBoard; com.apple.springboard; pid: 15264; agency: SystemShell; visibility: foreground; task: running>
default 12:54:58.540033 +0200   assertiond  Submitted job with label: UIKitApplication:foo.bar.MyApp[0x44cf][62]
default 12:54:58.580322 +0200   assertiond  Unable to get pid for 'UIKitApplication:foo.bar.MyApp[0x44cf][62]': No such process (3)
error   12:54:58.580490 +0200   assertiond  Failed to start job with error <NSError: 0x10288ff30; domain: NSPOSIXErrorDomain; code: 3; reason: "No such process"> {
    description = "Unable to get pid for label UIKitApplication:foo.bar.MyApp[0x44cf][62]";
    failureReason = "No such process";
    userInfo = {
        BKLaunchdJobLabel = UIKitApplication:foo.bar.MyApp[0x44cf][62];
        BKLaunchdOperation = launch_get_running_pid_4SB;
    }
}
default 12:54:58.580757 +0200   assertiond  Deleted job with label: UIKitApplication:foo.bar.MyApp[0x44cf][62]
error   12:54:58.582916 +0200   SpringBoard [foo.bar.MyApp] Bootstrap failed with error: <NSError: 0x283076850; domain: BKSProcessErrorDomain; code: 1 (bootstrap-failed); reason: "Failed to start job">
error   12:54:58.583057 +0200   SpringBoard Bootstrapping failed for <FBApplicationProcess: 0x10b1768b0; foo.bar.MyApp; pid: -1> with error: Error Domain=BKSProcessErrorDomain Code=1 "Unable to bootstrap process with bundleID foo.bar.MyApp" UserInfo={NSLocalizedDescription=Unable to bootstrap process with bundleID foo.bar.MyApp, BKSProcessExitReason=0, NSLocalizedFailureReason=Failed to start job, NSUnderlyingError=0x2832f7e10 {Error Domain=NSPOSIXErrorDomain Code=3 "No such process" UserInfo={BKLaunchdOperation=launch_get_running_pid_4SB, NSLocalizedDescription=Unable to get pid for label UIKitApplication:foo.bar.MyApp[0x44cf][62], BKLaunchdJobLabel=UIKitApplication:foo.bar.MyApp[0x44cf][62], NSLocalizedFailureReason=No such process}}, BKSProcessJobLabel=UIKitApplication:foo.bar.MyApp[0x44cf][62], BSErrorCodeDescription=bootstrap-failed}
default 12:54:58.583151 +0200   SpringBoard Adding: <FBApplicationProcess: 0x10b1768b0; foo.bar.MyApp; pid: -1>
default 12:54:58.583303 +0200   SpringBoard <FBApplicationProcess: 0x10b1768b0; foo.bar.MyApp; pid: -1> exited.
default 12:54:58.584241 +0200   SpringBoard Removing: <FBApplicationProcess: 0x10b1768b0; foo.bar.MyApp; pid: -1>
default 12:54:58.591967 +0200   SpringBoard Application process state changed for foo.bar.MyApp: <SBApplicationProcessState: 0x283c6a420; pid: -1; taskState: Not Running; visibility: Unknown>
default 12:54:58.592169 +0200   SpringBoard Process exited: <FBApplicationProcess: 0x10b1768b0; foo.bar.MyApp; pid: -1> -> <FBApplicationProcessExitContext: 0x2832cbe10; exitReason: (none); terminationReason: (none)> {
    stateAtExit = <FBProcessState: 0x283c38060; pid: -1; taskState: Unknown; visibility: Unknown>;
}
default 12:54:58.592395 +0200   SpringBoard Application process state changed for foo.bar.MyApp: (null)
default 12:54:58.838065 +0200   SpringBoard Front display did change: <SBApplication: 0x2803522b0; foo.bar.MyApp>
default 12:54:58.536319+0200跳板引导foo.bar.MyApp与intent前台交互
默认12:54:58.539833+0200断言代表提交“foo.bar.MyApp”的新作业
默认12:54:58.540033+0200断言已提交作业,标签为:UIKitApplication:foo.bar.MyApp[0x44cf][62]
默认12:54:58.580322+0200断言无法获取“UIKitApplication:foo.bar.MyApp[0x44cf][62]”的pid:无此类进程(3)
错误12:54:58.580490+0200断言无法启动作业,出现错误{
description=“无法获取标签UIKIT应用程序的pid:foo.bar.MyApp[0x44cf][62]”;
failureReason=“无此类流程”;
用户信息={
BKLaunchdJobLabel=UIKitApplication:foo.bar.MyApp[0x44cf][62];
bklaunchdoOperation=launch\u get\u running\u pid\u 4SB;
}
}
默认12:54:58.580757+0200断言已删除作业,标签为:UIKitApplication:foo.bar.MyApp[0x44cf][62]
错误12:54:58.582916+0200 SpringBoard[foo.bar.MyApp]引导失败,错误为:
错误12:54:58.583057+0200的SpringBoard引导失败,错误为:错误域=BKSProcessErrorDomain代码=1“无法使用bundleID foo.bar.MyApp引导进程”用户信息={NSLocalizedDescription=无法使用bundleID foo.bar.MyApp引导进程,BKSPROCESSEXITREASE=0,NSLocalizedFailureReason=启动作业失败,NSUnderlyingError=0x2832f7e10{Error Domain=NSPOSIXErrorDomain=3“无此类进程”用户信息={bklaunchdoOperation=launch\u get\u running\u pid\u 4SB,NSLocalizedDescription=无法获取标签UIKIT应用程序的pid:foo.bar.MyApp[0x44cf][62],bklaunchdjobbel=UIKitApplication:foo.bar.MyApp[0x44cf][62],NSLocalizedFailureReason=没有此类进程},BKSProcessJobLabel=UIKitApplication:foo.bar.MyApp[0x44cf][62],BSErrorCodeDescription=引导失败}
默认12:54:58.583151+0200跳板添加:
默认12:54:58.583303+0200跳板退出。
默认12:54:58.584241+0200跳板移除:
foo.bar.MyApp的默认12:54:58.591967+0200 SpringBoard应用程序进程状态已更改:
默认12:54:58.592169+0200跳板进程退出:->{
国家退出=;
}
foo.bar.MyApp的默认12:54:58.592395+0200 SpringBoard应用程序进程状态已更改:(null)
默认12:54:58.838065+0200跳板前显示未更改:
我观察到,这种现象总是发生在一段时间后,这让我觉得有一些证书或类似的东西,同时过期了


问:有这样的事情吗?我如何确保它的有效期更长?

您是否在真正的设备上测试您的应用程序并使用免费的资源调配配置文件?如果是,可能是证书问题

使用免费资源调配配置文件时存在一些限制。其中之一是:

使用免费资源调配创建的资源调配配置文件将在 一周后,签名身份将在一年后过期

有关更多详细信息,请参阅此文档:


过期后,您必须使用Visual Studio生成新的ipa,以便在真实设备上部署您的应用。

事实上,我使用的是免费资源调配。一定是这样。感谢您指出这一点!@mefiX不客气。如果您觉得这对您有帮助,请接受它作为答案。