Xcode4 XCode 4.3.3在运行10.7.4的启动时崩溃

Xcode4 XCode 4.3.3在运行10.7.4的启动时崩溃,xcode4,Xcode4,在安装了最新的Xcode预览版本之后,我的另一个Xcode 4.3.3安装在发布时开始崩溃。我正在运行OSXLion10.7.4。这是我在打开Xcode几秒钟后遇到的崩溃 Application Specific Information: ProductBuildVersion: 4E3002 ASSERTION FAILURE in /SourceCache/IDEFoundation/IDEFoundation-1193/Framework/Classes/Model/Logging

在安装了最新的Xcode预览版本之后,我的另一个Xcode 4.3.3安装在发布时开始崩溃。我正在运行OSXLion10.7.4。这是我在打开Xcode几秒钟后遇到的崩溃

    Application Specific Information:
ProductBuildVersion: 4E3002
ASSERTION FAILURE in /SourceCache/IDEFoundation/IDEFoundation-1193/Framework/Classes/Model/Logging/ActivityLog/IDEActivityLogSection.m:666
Details:  Assertion failed: _uniqueIdentifier
Object:   <IDEActivityLogSection: 0x40797e340>
Method:   -dvt_initFromDeserializer:
Thread:   <NSThread: 0x40797e700>{name = (null), num = 19}
Hints:   None
Backtrace:
  0  0x0000000106967b9f -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
  1  0x0000000105e225d5 _DVTAssertionFailureHandler (in DVTFoundation)
  2  0x000000010643aac3 -[IDEActivityLogSection dvt_initFromDeserializer:] (in IDEFoundation)
  3  0x0000000105df4085 -[DVTSimplePlainTextDeserializer decodeObject] (in DVTFoundation)
  4  0x0000000105df4888 -[DVTSimplePlainTextDeserializer decodeObjectList] (in DVTFoundation)
  5  0x000000010643a455 -[IDEActivityLogSection dvt_initFromDeserializer:] (in IDEFoundation)
  6  0x0000000105df4085 -[DVTSimplePlainTextDeserializer decodeObject] (in DVTFoundation)
  7  0x0000000106489b2b +[IDEActivityLogSection sectionWithContentsOfFile:error:] (in IDEFoundation)
  8  0x000000010643a27d -[IDEOnDiskActivityLogRecord fullLogWithError:] (in IDEFoundation)
  9  0x0000000106500b31 __45-[IDEBuildIssueProvider _blueprintsDidChange]_block_invoke_0 (in IDEFoundation)
 10  0x00007fff8afb8ae1 -[NSBlockOperation main] (in Foundation)
 11  0x00007fff8af7f6b4 -[__NSOperationInternal start] (in Foundation)
 12  0x00007fff8af92912 ____NSOQSchedule_block_invoke_2 (in Foundation)
 13  0x00007fff87df7a86 _dispatch_call_block_and_release (in libdispatch.dylib)
 14  0x00007fff87df8965 _dispatch_worker_thread2 (in libdispatch.dylib)
 15  0x00007fff866e33da _pthread_wqthread (in libsystem_c.dylib)
 16  0x00007fff866e4b85 start_wqthread (in libsystem_c.dylib)
特定于应用程序的信息:
ProductBuildVersion:4E3002
/SourceCache/IDEFoundation/IDEFoundation-1193/Framework/Classes/Model/Logging/ActivityLog/IDEActivityLogSection中的断言失败。m:666
详细信息:断言失败:\ u uniqueIdentifier
对象:
方法:-dvt_initfrom反序列化器:
线程:{name=(null),num=19}
提示:无
回溯:
0 0x0000000106967b9f-[IDEAssertionHandler handleFailureInMethod:对象:文件名:行号:消息格式:参数:](在IDEKit中)
1 0x0000000105e225d5\U DVTAssertionFailureHandler(在DVTFoundation中)
2 0x000000010643aac3-[IDEActivityLogSection dvt_initfrom反序列化程序:](在IDEFoundation中)
3 0x0000000105df4085-[DVTSimplePlaintextDecodeObject](在DVTFoundation中)
4 0x0000000105df4888-[DVTSimplePlaintextDecodeObjectList](在DVTFoundation中)
5 0x000000010643a455-[IDEActivityLogSection dvt_initfrom反序列化程序:](在IDEFoundation中)
6 0x0000000105df4085-[DVTSimplePlaintextDecodeObject](在DVTFoundation中)
7 0x0000000106489b2b+[IDEActivityLogSection部分及其文件内容:错误:](在IDEFoundation中)
8 0x000000010643a27d-[IDENDiskActivityLogRecord fullLogWithError:(在IDEFoundation中)
9 0x0000000106500b31\uuu45-[IDEBuildIssueProvider\uBlueprintsdIDChange]\uBlock\uInvoke\u0(在IDEFoundation中)
10 0x00007fff8afb8ae1-[NSBlockOperation main](基础中)
11 0x00007fff8af7f6b4-[\uu操作内部启动](基础中)
12 0x00007fff8af92912\uuuuuuuuu NSOQSchedule\u block\u invoke\u 2(基础中)
13 0x00007fff87df7a86调度调用块和释放(在libdispatch.dylib中)
14 0x00007fff87df8965调度工作线程2(在libdispatch.dylib中)
15 0x00007fff866e33da_pthread_wqthread(在libsystem_c.dylib中)
16 0x00007fff866e4b85启动线程(在libsystem\u c.dylib中)

最后,我可以通过执行以下操作来启动它

cd ~/Library/Developer/Xcode/DerivedData
删除上面目录中的所有内容

按住Option并双击XCode图标。您将看到一个弹出窗口,询问您是否要从上一次会话还原窗口。点击不恢复


现在Xcode 4.3.3似乎要发布了

您实际上不需要删除所有内容。只需删除您正在处理的项目的派生数据文件夹。这为我解决了问题。Thx@ribeto!;)在安装4.4.1时,我的Xcode 4.3.3面临着完全相同的问题。我已经删除了~/Library/Developer/Xcode/DerivedData和我的projects-DerivedData文件夹,但似乎都不起作用。现在我删除了我的生成文件夹,并将生成位置设置更改为“legacy”。似乎正在工作:)