2

当 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 文件上运行 resgen,我会得到同样的错误。任何想法可能是什么问题?

4

1 回答 1

2

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

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

于 2011-09-20T15:34:50.983 回答