升级MonoTouch后无法在模拟器上运行现有项目

时间:2011-04-21 15:45:10

标签: xamarin.ios

我刚刚将Monotouch升级到最新4.0,将MonoFramework升级到2.10.1_3.macos10,现在我的现有项目都没有在模拟器上运行。如果我创建一个新项目,它运行正常。我该如何解决这个问题?

如果我单击Monodevelop中的“运行”按钮,则构建成功完成,但在“应用程序输出”窗口中出现此错误:

Error connecting stdout and stderr (127.0.0.1:10001)
Couldn't register com.yourcompany.textproblem with the bootstrap server. Error: unknown error code.
This generally means that another instance of this process was already running or is hung in the debugger.Stacktrace:

  at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <IL 0x0009f, 0xffffffff>
  at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x00038] in /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:26
  at MonoTouch.UIKit.UIApplication.Main (string[]) [0x00000] in /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:31
  at TextProblem.Application.Main (string[]) [0x00000] in /Users/admin/Projects/TextProblem/TextProblem/Main.cs:14
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>

Native stacktrace:

    0   TextProblem                         0x000d0db5 mono_handle_native_sigsegv + 343
    1   TextProblem                         0x0013afad sigabrt_signal_handler + 116
    2   libSystem.B.dylib                   0x9027246b _sigtramp + 43
    3   ???                                 0xffffffff 0x0 + 4294967295
    4   libSystem.B.dylib                   0x902ff89d raise + 26
    5   libSystem.B.dylib                   0x903159bc abort + 93
    6   GraphicsServices                    0x03edd558 GSRegisterPurpleNamedPort + 323
    7   GraphicsServices                    0x03edd715 GSEventInitialize + 220
    8   UIKit                               0x01c17229 UIApplicationMain + 643
    9   ???                                 0x09e09744 0x0 + 165713732
    10  ???                                 0x09e0967a 0x0 + 165713530
    11  ???                                 0x07ff2b96 0x0 + 134163350
    12  ???                                 0x07ff2ae2 0x0 + 134163170
    13  ???                                 0x07ff2b6d 0x0 + 134163309
    14  TextProblem                         0x0000f5c7 mono_jit_runtime_invoke + 1332
    15  TextProblem                         0x001ed281 mono_runtime_invoke + 137
    16  TextProblem                         0x001ef968 mono_runtime_exec_main + 669
    17  TextProblem                         0x001eed52 mono_runtime_run_main + 843
    18  TextProblem                         0x000a3153 mono_jit_exec + 200
    19  TextProblem                         0x002a16b8 main + 4155
    20  TextProblem                         0x00002949 _start + 208
    21  TextProblem                         0x00002878 start + 40

Debug info from gdb:

/tmp/mono-gdb-commands.C9e16B:1: Error in sourced command file:
unable to debug self

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

2 个答案:

答案 0 :(得分:2)

尝试重置模拟器。 iOS模拟器 - &gt;重置内容和设置。请注意,这会将模拟器重置为默认状态。

答案 1 :(得分:1)

您在模拟器中挂起了一个进程,重启应解决此问题。