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

Xamarin.ios 升级MonoTouch后无法在模拟器上运行现有项目,xamarin.ios,Xamarin.ios,我刚刚将Monotouch升级到最新的4.0,将MonoFramework升级到2.10.1_3.macos10,现在我的现有项目都没有在模拟器上运行。如果我创建一个新项目,它运行良好。我怎样才能解决这个问题 如果我在Monodevelop中单击Run按钮,构建将成功完成,但在应用程序输出窗口中,我收到以下错误: Error connecting stdout and stderr (127.0.0.1:10001) Couldn't register com.yourcompany.textp

我刚刚将Monotouch升级到最新的4.0,将MonoFramework升级到2.10.1_3.macos10,现在我的现有项目都没有在模拟器上运行。如果我创建一个新项目,它运行良好。我怎样才能解决这个问题

如果我在Monodevelop中单击Run按钮,构建将成功完成,但在应用程序输出窗口中,我收到以下错误:

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.
=================================================================
连接stdout和stderr时出错(127.0.0.1:10001) 无法注册com.yourcompany.text引导服务器出现问题。错误:未知错误代码。 这通常意味着此进程的另一个实例已在运行或挂起在调试器中。Stacktrace: at(包装器管理为本机)MonoTouch.UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr) 在/Users/plasma/Source/iphone/MonoTouch/UIKit/UIApplication.Main(字符串[],字符串,字符串)[0x00038]中 位于/Users/plasma/Source/iphone/MonoTouch/UIKit/UIApplication.Main(字符串[])中的[0x00000] 位于/Users/admin/Projects/TextProblem/TextProblem/Main.cs:14中的TextProblem.Application.Main(string[])[0x00000] 在(包装器运行时调用)。运行时调用无效对象(对象,intptr,intptr,intptr) 本机堆栈跟踪: 0文本问题0x000d0db5单声道句柄本机sigsegv+343 1文本问题0x0013afad sigabrt信号处理器+116 2 libSystem.B.dylib 0x9027246b_sigtramp+43 3.0xFFFFFFFF0x0+4294967295 4 libSystem.B.dylib 0x902ff89d升高+26 5 libSystem.B.dylib 0x903159bc中止+93 6个图形服务0x03edd558 GSRegisterPurpleNamedPort+323 7图形服务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文本问题0x0000f5c7单声道实时运行时调用+1332 15文本问题0x001ed281单声道运行时调用+137 16文本问题0x001ef968单声道运行时执行主+669 17文本问题0x001eed52单声道运行时运行主+843 18文本问题0x000a3153 mono_jit_exec+200 19文本问题0x002a16b8主+4155 20文本问题0x00002949_开始+208 21文本问题0x00002878开始+40 来自gdb的调试信息: /tmp/mono gdb命令。C9e16B:1:源命令文件中出错: 无法自行调试 ================================================================= 执行本机代码时收到SIGABRT。这通常表明 mono运行时或某个本机库中出现致命错误 由您的应用程序使用。 =================================================================
如果模拟器中有一个进程挂起,重新启动应该可以解决此问题。

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