XCode 5负载崩溃

时间:2014-03-30 20:25:43

标签: ios xcode

突然间,我的XCode 5项目每次打开时都会导致XCode崩溃。 这不是由源控件引起的,因为已禁用。这是堆栈strace。

Process:         Xcode [1406]
Path:            /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:      com.apple.dt.Xcode
Version:         5.1 (5084)
Build Info:      IDEFrameworks-5084000000000000~21
App Item ID:     497799835
App External ID: 444172641
Code Type:       X86-64 (Native)
Parent Process:  launchd [167]
User ID:         501

Date/Time:       2014-03-30 16:19:33.295 -0400
OS Version:      Mac OS X 10.8.5 (12F45)
Report Version:  10

Interval Since Last Report:          262248 sec
Crashes Since Last Report:           178
Per-App Interval Since Last Report:  240945 sec
Per-App Crashes Since Last Report:   16
Anonymous UUID:                      FA7A25A2-D82D-0FAA-5A89-E06D0D5A2661

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
ProductBuildVersion: 5B130a
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilder/IDEInterfaceBuilder-5053/InterfaceBuilderKit/WidgetIntegration/View/IBViewIntegration.m:1410
Details:  Assertion failed: [positionWarningMessageKeySubstring length] || [sizeWarningMessageKeySubstring length] || [contentSizeWarningMessageKeySubstring length]
Object:   <IBUIView: 0x7fada1709f00>
Method:   -ibPopulateAmbiguityWarnings:forOrientationsWithMask:withAutolayoutStatus:context:
Thread:   <NSThread: 0x7fad9ac14ed0>{name = (null), num = 1}
Hints:   None
Backtrace:
  0  0x0000000109aaa825 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
  1  0x00000001088c57a9 _DVTAssertionHandler (in DVTFoundation)
  2  0x00000001088c5a8f _DVTAssertionFailureHandler (in DVTFoundation)
  3  0x00000001088c59f1 _DVTAssertionFailureHandler (in DVTFoundation)
  4  0x000000010c0b9ede __110-[NSView(IBViewIntegration) ibPopulateAmbiguityWarnings:forOrientationsWithMask:withAutolayoutStatus:context:]_block_invoke901 (in IDEInterfaceBuilderKit)
  5  0x00007fff8d2df8a9 __NSDictionaryEnumerate (in CoreFoundation)
  6  0x000000010c0b9490 -[NSView(IBViewIntegration) ibPopulateAmbiguityWarnings:forOrientationsWithMask:withAutolayoutStatus:context:] (in IDEInterfaceBuilderKit)
  7  0x000000010c0b85a8 -[NSView(IBViewIntegration) ibPopulateWarnings:forAutolayoutIssuesInDocument:withComputationContext:] (in IDEInterfaceBuilderKit)
  8  0x000000010c0b7af2 -[NSView(IBViewIntegration) ibWarnings:forDocument:withComputationContext:] (in IDEInterfaceBuilderKit)
  9  0x000000011230705b -[NSView(IBAppKitViewIntegration) ibSwizzledNSViewWarnings:forDocument:withComputationContext:] (in IDEInterfaceBuilderCocoaIntegration)
 10  0x0000000112d3e858 (in IDEInterfaceBuilderCocoaTouchIntegration)
 11  0x0000000112d50491 (in IDEInterfaceBuilderCocoaTouchIntegration)
 12  0x000000010c0362ec -[IBDocument updateWarningsForMembers:] (in IDEInterfaceBuilderKit)
 13  0x000000010c0372a6 -[IBDocument validateWarnings:] (in IDEInterfaceBuilderKit)
 14  0x0000000108e54fe8 -[DVTDelayedInvocation runBlock:] (in DVTKit)
 15  0x00007fff8d6ae8a1 __NSFirePerformWithOrder (in Foundation)
 16  0x00007fff8d2ba417 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ (in CoreFoundation)
 17  0x00007fff8d2ba381 __CFRunLoopDoObservers (in CoreFoundation)
 18  0x00007fff8d2957b8 __CFRunLoopRun (in CoreFoundation)
 19  0x00007fff8d2950e2 CFRunLoopRunSpecific (in CoreFoundation)
 20  0x00007fff89c39eb4 RunCurrentEventLoopInMode (in HIToolbox)
 21  0x00007fff89c39b94 ReceiveNextEventCommon (in HIToolbox)
 22  0x00007fff89c39ae3 BlockUntilNextEventMatchingListInMode (in HIToolbox)
 23  0x00007fff8fabb533 _DPSNextEvent (in AppKit)
 24  0x00007fff8fabadf2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
 25  0x0000000108e29e31 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
 26  0x00007fff8fab21a3 -[NSApplication run] (in AppKit)
 27  0x00007fff8fa56bd6 NSApplicationMain (in AppKit)
 28  0x00007fff8d45a7e1 start (in libdyld.dylib)
 29  0x0000000000000002

abort() called

3 个答案:

答案 0 :(得分:2)

这似乎是由我在我的一个观点中指定的IB约束引起的。以下是我为解决这个问题所做的工作。

  1. 打开导致问题的* .storyboard文件
  2. 如果您碰巧知道“场景”导致崩溃的原因(例如,如果您正在处理一个项目而且它突然崩溃了您),那么在XML中找到该场景。
  3. 查找该场景中的所有<constraints>个部分,并在继续尝试打开XCode的同时逐个删除它们。
  4. 一旦找到导致问题的约束,你应该是好的。希望这有助于节省其他人一些时间。

答案 1 :(得分:0)

您是否尝试过删除插件?它们位于以下目录中:

~/Library/Application Support/Developer/Shared/Xcode/Plug-ins

如果没有尝试以下内容:

  1. 删除衍生数据rm -rf ~/library/Developer/Xcode/DerivedData
  2. 删除Xcode并重新安装吗?

答案 2 :(得分:0)

我认为您可以通过在添加AutoLayout之前将更改还原到上一个故事板来解决此问题。 Xcode for Autolayout的新警告和提示功能是罪魁祸首。这个问题也应该报告给Apple。