gpt4 book ai didi

每当我使用 Interface Builder 时,Xcode 6.1 都会崩溃

转载 作者:行者123 更新时间:2023-12-03 15:55:30 28 4
gpt4 key购买 nike

我所做的一切都不起作用。我在多个不同的项目上打开 Interface Builder,都导致崩溃。同样的异常(exception)。我尝试了 Google & SO 上建议的各种解决方案,例如清除 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)

最佳答案

它与自动布局有关。

1-右键单击 Storyboard 文件->打开为->源代码,然后找到并删除useAutolayout =“YES”

2-右键单击 Storyboard文件->打开为->界面生成器

这在我的情况下有效,但是,我无法让自动布局工作:)

请引用这个答案:https://stackoverflow.com/a/26474823/1231121

编辑 1:

经过多次尝试和搜索,我设法通过以下方式解决了这个问题:

1- 完全删除 Xcode.app(从终端 sudo rm -rf/Applications/Xcode.app/)

2-再次安装

3-重新启动我的MBP

然后一切都按预期工作。

编辑 2:

又发生了,mac重启解决了!

关于每当我使用 Interface Builder 时,Xcode 6.1 都会崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27167679/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com