它给出了这个错误:
ASSERTION FAILURE in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-269/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/PBXContainerItemProxy.m:268
Details: Assertion failed: _containerPortal == [self container] || ([_containerPortal isKindOfClass:[PBXFileReference class]] && [(PBXFileReference *)_containerPortal container] == [self container])
Object: <PBXContainerItemProxy: 0x2017db420>
Method: -_containerPortal
Thread: <NSThread: 0x200020700>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x0000000100949773 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1 0x000000010006d394 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x000000010d4a15c7 -[PBXContainerItemProxy _containerPortal] (in DevToolsCore)
3 0x000000010d3deefb -[PBXArchivingBinding writeValueForObject:toPListArchiver:] (in DevToolsCore)
4 0x000000010d3dde4e -[PBXObject _archiveValuesForArchiveMask:toPListArchiver:] (in DevToolsCore)
5 0x000000010d40b52a -[PBXPListArchiver _archiveObject:asWeakReference:] (in DevToolsCore)
6 0x000000010d40dea8 -[PBXPListArchiver _encodeObject:forKey:asWeakReference:] (in DevToolsCore)
7 0x000000010d3df0b2 -[PBXArchivingBinding writeValueForObject:toPListArchiver:] (in DevToolsCore)
8 0x000000010d3dde4e -[PBXObject _archiveValuesForArchiveMask:toPListArchiver:] (in DevToolsCore)
9 0x000000010d4461c0 -[PBXTargetDependency writeToPListArchiver:] (in DevToolsCore)
10 0x000000010d40b52a -[PBXPListArchiver _archiveObject:asWeakReference:] (in DevToolsCore)
11 0x000000010d40e212 -[PBXPListArchiver _createPListArrayForObjectArray:asWeakReference:] (in DevToolsCore)
12 0x000000010d40ea15 -[PBXPListArchiver _encodeObjectArray:forKey:asWeakReference:] (in DevToolsCore)
13 0x000000010d3df0b2 -[PBXArchivingBinding writeValueForObject:toPListArchiver:] (in DevToolsCore)
14 0x000000010d3dde4e -[PBXObject _archiveValuesForArchiveMask:toPListArchiver:] (in DevToolsCore)
15 0x000000010d40b52a -[PBXPListArchiver _archiveObject:asWeakReference:] (in DevToolsCore)
16 0x000000010d40e212 -[PBXPListArchiver _createPListArrayForObjectArray:asWeakReference:] (in DevToolsCore)
17 0x000000010d40ea15 -[PBXPListArchiver _encodeObjectArray:forKey:asWeakReference:] (in DevToolsCore)
18 0x000000010d3df0b2 -[PBXArchivingBinding writeValueForObject:toPListArchiver:] (in DevToolsCore)
19 0x000000010d3dde4e -[PBXObject _archiveValuesForArchiveMask:toPListArchiver:] (in DevToolsCore)
20 0x000000010d40b52a -[PBXPListArchiver _archiveObject:asWeakReference:] (in DevToolsCore)
21 0x000000010d40c1b7 -[PBXPListArchiver initWithRootObject:delegate:role:] (in DevToolsCore)
22 0x000000010d40c4ac -[PBXPListArchiver initWithRootObject:delegate:] (in DevToolsCore)
23 0x000000010d3e675d -[PBXProject writeToFile:projectFile:userFile:outResultNotification:] (in DevToolsCore)
24 0x000000010d3e6d42 -[PBXProject _writeToFileSystemProjectFile:userFile:checkNeedsRevert:] (in DevToolsCore)
25 0x000000010d3e6df6 -[PBXProject writeToFileSystemProjectFile:userFile:checkNeedsRevert:] (in DevToolsCore)
26 0x000000010d3653ea -[Xcode3Project writeToFilePath:forceWrite:error:] (in Xcode3Core)
27 0x000000010051e47e -[IDEContainer _saveContainerForAction:error:] (in IDEFoundation)
28 0x00007fff8231b7d5 __NSFireTimer (in Foundation)
29 0x00007fff81173be8 __CFRunLoopRun (in CoreFoundation)
30 0x00007fff81171dbf CFRunLoopRunSpecific (in CoreFoundation)
31 0x00007fff823007c4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] (in Foundation)
32 0x00007fff8234bf36 -[NSRunLoop(NSRunLoop) runUntilDate:] (in Foundation)
33 0x00007fff83a73e0b NSCoreDragReceiveProc (in AppKit)
34 0x00007fff81a8a2c3 DoDropMessage (in HIServices)
35 0x00007fff81a8b4f2 CoreDragMessageHandler (in HIServices)
36 0x00007fff811d95e1 __CFMessagePortPerform (in CoreFoundation)
37 0x00007fff811736e1 __CFRunLoopRun (in CoreFoundation)
38 0x00007fff81171dbf CFRunLoopRunSpecific (in CoreFoundation)
39 0x00007fff84ea67ee RunCurrentEventLoopInMode (in HIToolbox)
40 0x00007fff84ea6551 ReceiveNextEventCommon (in HIToolbox)
41 0x00007fff84ea64ac BlockUntilNextEventMatchingListInMode (in HIToolbox)
42 0x00007fff83732e64 _DPSNextEvent (in AppKit)
43 0x00007fff837327a9 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
44 0x00007fff836f848b -[NSApplication run] (in AppKit)
45 0x00007fff836f11a8 NSApplicationMain (in AppKit)
46 0x0000000100000eec
答案 0 :(得分:1)
更糟糕的是,虽然我删除了该项目,但在我的案例中反复发生了崩溃。 我通过手动编辑project.pbxproj(在.xcodeproject文件中)修复了这个问题。
答案 1 :(得分:0)
显然这是由于新版本的XCodeProjects。我通过预编译导致问题的库然后使用链接器链接到.a文件找到了解决方法。我还必须将.a库复制到DerivedData路径中。
真正的解决方案是删除项目并将其替换为新版XCode的更新项目。
答案 2 :(得分:0)
我通过返回project.pbxproj的备份来修复它。之后我删除了导致问题的库(仅供参考)。再次将库添加到项目中并删除了DerivedData。