由于resgen错误,MonoTouch构建失败

时间:2011-09-19 16:03:04

标签: xamarin.ios resgen

当MonoTouch在解决方案中的.resx文件上运行resgen时出现以下错误:

strings.resx: Error: 
Native stacktrace:

* Assertion at ../../../../mono/metadata/object.c:1778, condition `class' not met

0   mono                                0x000d533a mono + 869178
1   mono                                0x001385ba mono + 1275322
2   libsystem_c.dylib                   0x9ba2e59b _sigtramp + 43
3   ???                                 0xffffffff 0x0 + 4294967295
4   libsystem_c.dylib                   0x9b9c9c0c abort + 214
5   mono                                0x00282811 mono + 2627601
6   mono                                0x00282873 mono + 2627699
7   mono                                0x001eb432 mono + 2008114
8   mono                                0x001eb3f3 mono + 2008051
9   mono                                0x001df6fa mono + 1959674
10  mono                                0x001df7fd mono + 1959933
11  mono                                0x0022810a mono + 2257162
12  mono                                0x0022857d mono + 2258301
13  mono                                0x00139160 mono + 1278304
14  mono                                0x000117c7 mono + 67527
15  mono                                0x000a7f0c mono + 683788
16  mono                                0x00002742 mono + 5954
17  mono                                0x000027a1 mono + 6049
18  mono                                0x00002521 mono + 5409

Debug info from gdb:

No symbol table is loaded.  Use the "file" command.
Breakpoint 1 (-[NSException raise]) pending.
No symbol table is loaded.  Use the "file" command.
Breakpoint 2 (-[_NSZombie release]) pending.
No symbol table is loaded.  Use the "file" command.
Breakpoint 3 (szone_error) pending.
No symbol table is loaded.  Use the "file" command.
Breakpoint 4 (objc_exception_throw) pending.
/tmp/mono-gdb-commands.vNC9Gq:1: Error in sourced command file:
unable to debug self

如果我在解决方案中的其中一个strings.resx文件上运行来自Terminal的resgen,我会得到同样的错误。任何想法可能是什么问题?

1 个答案:

答案 0 :(得分:2)

我最终按照here的说明卸载了MonoTouch,然后重新安装,这解决了我的问题。

我曾尝试在顶部重新安装MonoTouch,但这并没有解决它。我不得不卸载然后重新安装。