我什么都不做。我在多个不同的项目上打开Interface Builder,都会导致崩溃。同样的例外。我尝试了Google和Google提出的各种解决方案。所以,比如清除Derived文件夹(我实际上清除了整个~/Library/Developer/Xcode/*
树,但仍然没有)。我真的输了,而且它阻止了我的所有发展。
我在developer.apple.com上开了一张支持票,但我还没有得到答复(现在大概是4-5天)。
Process: Xcode [10292]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.1 (6604)
Build Info: IDEFrameworks-6604000000000000~2
App Item ID: 497799835
App External ID: 752282650
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [10292]
User ID: 501
Date/Time: 2014-11-27 11:48:15.688 +0200
OS Version: Mac OS X 10.10.1 (14B25)
Report Version: 11
Anonymous UUID: F1E42FB4-8CFC-E112-4F9A-3286A610D4A0
Sleep/Wake UUID: 817AB1FE-F61F-4359-A845-094095FF399A
Time Awake Since Boot: 70000 seconds
Time Since Wake: 4700 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6A1052d
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilder/IDEInterfaceBuilder-6250/InterfaceBuilderKit/Document/IBDocument.m:5597
Details: The pasteboard doesn't have data for this type: IBNSObjectPBType!
Object: <IBXIBDocument: 0x7fcbb65d9200>
Method: -insertObjectsFromPasteboard:ofType:asChildrenOfObject:atIndex:context:finishExtractingObjectsBlock:
Thread: <NSThread: 0x7fcbb3c389e0>{number = 1, name = main}
Hints: None
Backtrace:
0 0x00000001024199ea -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 0x00000001011d7d1f _DVTAssertionHandler (in DVTFoundation)
2 0x00000001011d800e _DVTAssertionFailureHandler (in DVTFoundation)
3 0x000000010b2afcc8 -[IBDocument insertObjectsFromPasteboard:ofType:asChildrenOfObject:atIndex:context:finishExtractingObjectsBlock:] (in IDEInterfaceBuilderKit)
4 0x000000010b2af253 -[IBDocument insertObjectsFromPasteboard:ofType:asChildrenOfObject:atIndex:context:] (in IDEInterfaceBuilderKit)
5 0x000000010b2b0f1d -[IBDocument decodePasteboardContent:ofType:forInsertionInto:usingDocumentClass:andDocumentType:context:] (in IDEInterfaceBuilderKit)
6 0x000000010b2b23f7 __86-[IBDocument documentWithPasteboardCloneOfObjects:documentClass:documentType:context:]_block_invoke (in IDEInterfaceBuilderKit)
7 0x000000010b1b9a34 +[NSPasteboard(IBPasteboardAdditions) invokeWithTemporaryPasteboard:] (in IDEInterfaceBuilderKit)
8 0x000000010b2b22e0 -[IBDocument documentWithPasteboardCloneOfObjects:documentClass:documentType:context:] (in IDEInterfaceBuilderKit)
9 0x000000010ffc5ecc -[NSObject(IBCocoaAutolayoutEngineAdditions) ibCopyObjectHierarchyForLayoutEngine:synchronousDidCopyCallback:] (in IDEInterfaceBuilderCocoaIntegration)
10 0x000000010ffc6f5f -[NSWindowTemplate(IBCocoaAutolayoutEngineAdditions) ibWindowWithCopiedViewHierarchySnapshotForLayoutEngine:returningAddedRepresentedConstraintsForRepresentedViews:] (in IDEInterfaceBuilderCocoaIntegration)
11 0x000000010ffc761b -[IBCocoaAutolayoutEngine prepareViewHierarchyAndReturnAddedRepresentedConstraintsForRepresentedViews] (in IDEInterfaceBuilderCocoaIntegration)
12 0x00000001075fa556 -[IBAutolayoutEngine initWithArbitrationUnit:options:] (in IBAutolayoutFoundation)
13 0x000000010ffc7538 -[IBCocoaAutolayoutEngine initWithArbitrationUnit:options:] (in IDEInterfaceBuilderCocoaIntegration)
14 0x0000000107603422 -[IBAutolayoutFrameDecisionDriver initWithArbitrationUnit:initialStatus:options:] (in IBAutolayoutFoundation)
15 0x000000010b1dda80 -[IBAutolayoutFrameDecider initWithArbitrationUnit:driverOptions:delegate:statusInitializationBlock:] (in IDEInterfaceBuilderKit)
16 0x000000010b1de170 +[IBAutolayoutFrameDecider decideAndSetFramesOfAllViewHierarchiesWithLayoutInfo:delegate:statusInitializationBlock:] (in IDEInterfaceBuilderKit)
17 0x000000010b2d31e9 -[IBDocumentAutolayoutManager runBlockInNewArbitrationStackEntryWithBehavior:block:] (in IDEInterfaceBuilderKit)
18 0x000000010b2ba1f7 -[IBDocument modifyViewsInAutolayoutSafeWayWithoutUpdatingConstraintsDuring:] (in IDEInterfaceBuilderKit)
19 0x000000010b310670 -[IBDocumentVerifier verifyViewsHaveCorrectFrames] (in IDEInterfaceBuilderKit)
20 0x000000010b30d2ed -[IBDocumentVerifier verificationDidFinish] (in IDEInterfaceBuilderKit)
21 0x000000010b30d008 -[IBDocumentVerifier performVerification] (in IDEInterfaceBuilderKit)
22 0x000000010b2ac610 -[IBDocument performVerification] (in IDEInterfaceBuilderKit)
23 0x000000010b280da2 __39-[IBDocument readFromURL:ofType:error:]_block_invoke_2 (in IDEInterfaceBuilderKit)
24 0x000000010b2de6e0 -[IBDocumentAutolayoutManager doNotSynchronouslyComputeAutolayoutStatusWhilePerformingBlock:] (in IDEInterfaceBuilderKit)
25 0x000000010b280bc1 __39-[IBDocument readFromURL:ofType:error:]_block_invoke (in IDEInterfaceBuilderKit)
答案 0 :(得分:2)
这与Autolayout有关。
1-右键单击故事板文件 - &gt;打开为 - &gt;源代码然后查找并删除useAutolayout =&#34; YES&#34;
2-右键单击故事板文件 - &gt;打开为 - &gt; Interface Builder
这适用于我的情况,但是,我无法使autolayout工作:)
请参阅此答案:https://stackoverflow.com/a/26474823/1231121
修改1:
经过多次尝试和搜索后,我设法通过以下方式解决了这个问题:
1-完全删除Xcode.app(来自终端sudo rm -rf /Applications/Xcode.app /)
2-再次安装
3-重新启动我的MBP
然后一切都恢复正常。
编辑2:
再次发生,mac重启解决了它!