Xcode错误 - 命令/ Developer / usr / bin / momc失败,退出代码为6

时间:2011-05-18 18:06:49

标签: xcode

我正在尝试构建一个应用程序,但似乎在以下错误中运行。不确定是什么问题,因为它适用于其他版本。我看到有人有类似的问题,但他修复了它并且没有解决方案。

2011-05-18 14:00:47.642 momc[296:607] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSKeyedUnarchiver initForReadingWithData:]: incomprehensible archive (0x62, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x30, 0x30)'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x00007fff869057b4 __exceptionPreprocess + 180
    1   libobjc.A.dylib                     0x00007fff803890f3 objc_exception_throw + 45
    2   CoreFoundation                      0x00007fff869055d7 +[NSException raise:format:arguments:] + 103
    3   CoreFoundation                      0x00007fff86905564 +[NSException raise:format:] + 148
    4   Foundation                          0x00007fff83e6ee4f -[NSKeyedUnarchiver initForReadingWithData:] + 2970
    5   Foundation                          0x00007fff83eaa873 +[NSKeyedUnarchiver unarchiveObjectWithFile:] + 132
    6   momc                                0x000000010000122c 0x0 + 4294971948
    7   momc                                0x00000001000017cd 0x0 + 4294973389
    8   momc                                0x0000000100001e8c 0x0 + 4294975116
    9   momc                                0x0000000100000de4 0x0 + 4294970852
    10  ???                                 0x0000000000000004 0x0 + 4
)
terminate called after throwing an instance of 'NSException'
Command /Developer/usr/bin/momc failed with exit code 6

1 个答案:

答案 0 :(得分:0)

我十分钟前就遇到了这个问题,并发现另一篇文章谈论它。 "Data Model Version Compile".. error after upgrading to Lion (Xcode4.1)

删除不必要的.xcdatamodel文件可以修复此问题。