iOS Xcode - 编辑情节提要对象导致视图控制器场景复制另一个场景然后 Xcode 崩溃

Posted

技术标签:

【中文标题】iOS Xcode - 编辑情节提要对象导致视图控制器场景复制另一个场景然后 Xcode 崩溃【英文标题】:iOS Xcode -Editing Storyboard Objects Results In View Controllers Scenes Duplicating Another Scene Then Xcode Crashing 【发布时间】:2018-01-08 11:16:18 【问题描述】:

我正在开发 Sierra 版本 10.12.6 和 Xcode 8.3,我在 Storyboard 中有 3 个场景,它们都通过 push segues 相互连接。

第一个场景有一个 tableView 和一个带有 imageView 和 2 个标签的单元格。

第二个场景有一个 tableView 和一个带有 imageView 和 4 个标签的单元格。

第 3 个场景有一个 tableView,其中一个包含 3 个标签的单元格和一个 collectionView,其中一个包含 imageView 的单元格。

当我尝试对第三个场景进行调整时,第一和第二个场景会自动更新以匹配第三个场景中的完全相同的元素,然后 Xcode 崩溃。

仅当我尝试对第三个场景进行调整时才会出现此问题。

在第三个场景中,我尝试断开所有对象与其视图控制器的连接,然后进行调整,但第一个和第二个场景仍然复制所有内容,Xcode 崩溃并且当它重新打开时所有连接仍然存在(好像我从未断开它们)。

然后我断开了场景之间的转场,但同样的问题发生了——一旦我对第三个场景进行了调整,其他两个场景就会更新以匹配,然后出现崩溃。

在我打开项目后崩溃后一切恢复正常。

第三个​​场景一直在右边,里面是粉红色的:

在我对第 3 个场景进行调整之前:

在我对第 3 个场景进行调整后:

我尝试使用深度清理、常规清理、删除派生数据、完全卸载 Xcode 然后重新安装它来清理项目,但问题仍然存在。

为什么其他 2 个场景会自动更新以匹配第 3 个场景?

以下是崩溃日志:

进程:Xcode [84727] 路径: /Applications/Xcode.app/Contents/MacOS/Xcode 标识符: com.apple.dt.Xcode 版本:8.3 (12169) 构建信息: IDEFrameworks-12169000000000000~2 代码类型:X86-64 (本机)父进程:??? 1责任人:Xcode [84727] 用户 ID:501

日期/时间:2017-08-01 10:01:54.643 -0400 操作系统版本: Mac OS X 10.12.6 (16G29) 报告版本:12 匿名 UUID: 20134940-2FA2-50E1-5E8E-640EC65140FA

睡眠/唤醒 UUID:3E6A13DD-A904-4D70-8D26-BA158BDA1C5E

自启动以来的唤醒时间:190000 秒自唤醒以来的时间:6500 秒

系统完整性保护:启用

崩溃的线程:0 调度队列:com.apple.main-thread

异常类型:EXC_CRASH (SIGABRT) 异常代码: 0x0000000000000000, 0x0000000000000000 异常说明: EXC_CORPSE_NOTIFY

应用程序特定信息:ProductBuildVersion:8E162 ASSERTION 失败 /Library/Caches/com.apple.xbs/Sources/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-12086/InterfaceBuilder/Autolayout/IBCocoaTouchAutolayoutArbitrationUnit.m:259

详情:一个声称失败但没有提供错误的方法!

对象: 方法:-engineEvaluatedConstantValuesOfConstraints:错误:线程: number = 1, name = main 提示: 回溯:0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (在 IDEKit 中)1 _DVTAssertionHandler(在 DVTFoundation 中)2 _DVTAssertionFailureHandler(在 DVTFoundation 中)3 -[IBCocoaTouchAutolayoutArbitrationUnit engineEvaluatedConstantValuesOfConstraints:error:](在 IDEInterfaceBuilderCocoaTouchIntegration) 4 __IBEnumerateEngineEvaluatedConstantsForConstraintsWithBlockAndFallbackBlock_block_invoke (在 IDEInterfaceBuilderKit 中)5 __NSDictionaryEnumerate(在 核心基金会)6 IBEnumerateEngineEvaluatedConstantsForConstraintsWithBlockAndFallbackBlock (在 IDEInterfaceBuilderKit 中) 7 -[IBViewEditor _populateEngineEvaluatedConstantsByConstraint:andPopulateConstraintsByAbstraction:forDrawingConstraintAbstractions:] (在 IDEInterfaceBuilderKit 中) 8 -[IBViewEditor updateConstraintDrawablesAndGuideLinesForOrderedConstraintAbstractions:] (在 IDEInterfaceBuilderKit 中)9 -[IBViewEditor pushOrderedConstraintAbstractionsToDraw:](在 IDEInterfaceBuilderKit 中) 10 -[IBViewEditor updateConstraintsForViews](在 IDEInterfaceBuilderKit) 11 -[IBViewEditor updateConstraintVisibilityBasedUponSelection](在 IDEInterfaceBuilderKit) 12 -[IBViewEditor selectionOwner:didSelect:andDeselect:](在 IDEInterfaceBuilderKit 中)13 -[IBSelectionOwner didSelect:andDeselect:](在 IDEInterfaceBuilderKit 中) 14 -[IBSelectionOwner primitiveUpdateSelection:](在 IDEInterfaceBuilderKit) 15 -[IBSelectionOwner selectObjects:byExtending:andToggling:](在 IDEInterfaceBuilderKit 中) 16 - [IBCanvasViewController selectObjectsInEditor:scrollSettings:] (在 IDEInterfaceBuilderKit 中)17 -[IBEditorCanvasFrameController dragTarget:didAcceptDraggedObjects:fromDragInfo:context:] (在 IDEInterfaceBuilderKit) 18 -[IBEditorCanvasFrameController performDragOperation:](在 IDEInterfaceBuilderKit 中)19 -[IBEditorCanvasFrame performDragOperation:](在 IDEInterfaceBuilderKit 中)20 DVTTrackDragging(在 DVTKit 中)21 -[DVTDragManager dragImage:at:mouseDownEvent:pasteboard:allowedOperations:source:slideBack:draggingSourceContext:] (在 DVTKit 中)22 -[DVTDragManager dragImage:at:offset:mouseDownEvent:mouseDraggedEvent:pasteboard:allowedOperations:source:slideBack:draggingSourceContext:] (在 DVTKit 中)23 __151-[IBEditorCanvasFrameController dragObjects:withImage:inMouseDownEvent:mouseDraggedEvent:imageLocation:allowedOperations:editor:draggingSourceContext:]_block_invoke (在 IDEInterfaceBuilderKit 中)24 -[IBDocument disableSavingWithError:whileRunningBlock:](在 IDEInterfaceBuilderKit 中) 25 -[IBEditorCanvasFrameController dragObjects:withImage:inMouseDownEvent:mouseDraggedEvent:imageLocation:allowedOperations:editor:draggingSourceContext:] (在 IDEInterfaceBuilderKit 中)26 -[IBViewEditorCanvasFrameController dragObjects:withImage:inMouseDownEvent:mouseDraggedEvent:imageLocation:allowedOperations:editor:draggingSourceContext:] (在 IDEInterfaceBuilderKit 中)27 __113-[IBEditor dragObjects:withImage:inMouseDownEvent:mouseDraggedEvent:imageLocation:allowedOperations:dragContext:]_block_invoke (在 IDEInterfaceBuilderKit 中)28 -[IBDocumentAutolayoutManager delayAutolayoutStatusUpdatingDuring:] (在 IDEInterfaceBuilderKit 中) 29 -[IBDocument delayAutolayoutStatusUpdatingDuring:](在 IDEInterfaceBuilderKit 中)30 -[IBEditor dragObjects:withImage:inMouseDownEvent:mouseDraggedEvent:imageLocation:allowedOperations:dragContext:] (在 IDEInterfaceBuilderKit 中)31 -[IBUITableViewCellContentViewEditor dragObjects:withImage:inMouseDownEvent:mouseDraggedEvent:imageLocation:allowedOperations:dragContext:] (在 IDEInterfaceBuilderCocoaTouchIntegration 中)32 __61-[IBViewEditor dragChildViews:withMouseDown:andMouseDragged:]_block_invoke (在 IDEInterfaceBuilderKit) 33 -[IBViewEditor drawBordersOnDraggedViewsWhilePerformingBlock:] (在 IDEInterfaceBuilderKit) 34 -[IBViewEditor dragChildViews:withMouseDown:andMouseDragged:] (在 IDEInterfaceBuilderKit) 35 -[IBViewEditor dragSelectedViewsWithMouseDown:andMouseDragged:](在 IDEInterfaceBuilderKit) 36 -[IBViewEditor interceptMouseDragged:] (在 IDEInterfaceBuilderKit 中)37 -[IBViewEditor interceptEvent:](在 IDEInterfaceBuilderKit) 38 -[IBEditorCanvasFrameController sendEvent:](在 IDEInterfaceBuilderKit 中)39 -[IBViewEditorCanvasFrameController sendEvent:](在 IDEInterfaceBuilderKit 中)40 -[IBEditorCanvasFrame mouseDragged:](在 IDEInterfaceBuilderKit) 41 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] (在 AppKit 中) 42 -[NSWindow(NSEventRouting) sendEvent:] (在 AppKit 中) 43 -[IDEWorkspaceWindow sendEvent:] (在 IDEKit 中) 44 -[NSApplication(NSEvent) sendEvent:] (在 AppKit 中) 45 - [IDEApplication sendEvent:](在 IDEKit 中)46 -[NSApplication run](在 AppKit 中)47 NSApplicationMain(在 AppKit 中)48 start(在 libdyld.dylib) abort() 调用

应用特定的签名: __localError

线程 0 崩溃::调度队列:com.apple.main-thread 0 libsystem_kernel.dylib 0x0000000111cf2d42 __pthread_kill + 10 1 libsystem_pthread.dylib 0x0000000111dc8457 pthread_kill + 90 2 libsystem_c.dylib 0x00007fffc8149420 中止 + 129 3 com.apple.dt.IDEKit 0x000000010fd1c1de +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1378 4 com.apple.dt.IDEKit 0x000000010fd1c864 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] + 1175 5 com.apple.dt.DVTFoundation 0x000000010e619a8c _DVTAssertionHandler + 375 6 com.apple.dt.DVTFoundation 0x000000010e619d1d _DVTAssertionFailureHandler + 369 7 com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration 0x0000000125297bdb -[IBCocoaTouchAutolayoutArbitrationUnit engineEvaluatedConstantValuesOfConstraints:error:] + 1175 8 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x00000001238e4f50 __IBEnumerateEngineEvaluatedConstantsForConstraintsWithBlockAndFallbackBlock_block_invoke + 557 9 com.apple.CoreFoundation 0x00007fffb237f7ec __NSDictionaryEnumerate + 844 10 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x00000001238e4a1c IBEnumerateEngineEvaluatedConstantsForConstraintsWithBlockAndFallbackBlock + 688 11 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123ab8017 -[IBViewEditor _populateEngineEvaluatedConstantsByConstraint:和PopulateConstraintsByAbstraction:forDrawingConstraintAbstractions:] + 393 12 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123ab8530 -[IBViewEditor updateConstraintDrawablesAndGuideLinesForOrderedConstraintAbstractions:] + 339 13 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123ab9d4d -[IBViewEditor pushOrderedConstraintAbstractionsToDraw:] + 371 14 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123aba891 -[IBViewEditor updateConstraintsForViews] + 2475 15 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123abb77d -[IBViewEditor updateConstraintVisibilityBasedUponSelection] + 2620 16 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123aa7657 -[IBViewEditor selectionOwner:didSelect:andDeselect:] + 227 17 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x00000001239ea5a7 -[IBSelectionOwner didSelect:andDeselect:] + 172 18 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x00000001239ea7b9 -[IBSelectionOwner 原始更新选择:] + 487 19 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x00000001239ea8c9 -[IBSelectionOwner selectObjects:byExtending:andToggling:] + 67 20 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000012371718c -[IBCanvasViewController selectObjectsInEditor:scrollSettings:] + 3419 21 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123854715 -[IBEditorCanvasFrameController dragTarget:didAcceptDraggedObjects:fromDragInfo:context:] + 542 22 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123854a74 -[IBEditorCanvasFrameController performDragOperation:] + 282 23 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x00000001238481ed -[IBEditorCanvasFrame performDragOperation:] + 79 24 com.apple.dt.DVTKit 0x000000010ec83772 DVTTrackDragging + 12343 25 com.apple.dt.DVTKit 0x000000010ec806ce -[DVTDragManager dragImage:at:mouseDownEvent:pasteboard:allowedOperations:source:slideBack:draggingSourceContext:] + 150 26 com.apple.dt.DVTKit 0x000000010ec84798 -[DVTDragManager dragImage:at:offset:mouseDownEvent:mouseDraggedEvent:pasteboard:allowedOperations:source:slideBack:draggingSourceContext:] + 138 27 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000012384c7a7 __151-[IBEditorCanvasFrameController dragObjects:withImage:inMouseDownEvent:mouseDraggedEvent:imageLocation:allowedOperations:editor:draggingSourceContext:]_block_invoke + 114 28 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123797604 -[IBDocument disableSavingWithError:whileRunningBlock:] + 107 29 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000012384c5d6 -[IBEditorCanvasFrameController dragObjects:withImage:inMouseDownEvent:mouseDraggedEvent:imageLocation:allowedOperations:editor:draggingSourceContext:] + 693 30 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123ac5825 -[IBViewEditorCanvasFrameController dragObjects:withImage:inMouseDownEvent:mouseDraggedEvent:imageLocation:allowedOperations:editor:draggingSourceContext:] + 219 31 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000012383f622 __113-[IBEditor dragObjects:withImage:inMouseDownEvent:mouseDraggedEvent:imageLocation:allowedOperations:dragContext:]_block_invoke + 844 32 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x00000001237f80ee -[IBDocumentAutolayoutManager delayAutolayoutStatusUpdatingDuring:] + 31 33 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x00000001237e151e -[IBDocument delayAutolayoutStatusUpdatingDuring:] + 79 34 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000012383f183 -[IBEditor dragObjects:withImage:inMouseDownEvent:mouseDraggedEvent:imageLocation:allowedOperations:dragContext:] + 432 35 com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration 0x00000001253d71d9 -[IBUITableViewCellContentViewEditor dragObjects:withImage:inMouseDownEvent:mouseDraggedEvent:imageLocation:allowedOperations:dragContext:] + 341 36 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123aa9988 __61-[IBViewEditor dragChildViews:withMouseDown:andMouseDragged:]_block_invoke + 109 37 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123aa8f84 -[IBViewEditor drawBordersOnDraggedViewsWhilePerformingBlock:] + 28 38 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123aa94a7 -[IBViewEditor dragChildViews:withMouseDown:andMouseDragged:] + 1168 39 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123aa8fee -[IBViewEditor dragSelectedViewsWithMouseDown:andMouseDragged:] + 96 40 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123ab2fcf -[IBViewEditor interceptMouseDragged:] + 842 41 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123ab386e -[IBViewEditor 拦截事件:] + 634 42 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x000000012385b86e -[IBEditorCanvasFrameController sendEvent:] + 1826 43 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123ac5734 -[IBViewEditorCanvasFrameController sendEvent:] + 349 44 com.apple.dt.IDE.IDEInterfaceBuilderKit 0x0000000123846723 -[IBEditorCanvasFrame mouseDragged:] + 79 45 com.apple.AppKit 0x00007fffb07713ca -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 4340 46 com.apple.AppKit 0x00007fffb076ff0a -[NSWindow(NSEventRouting) sendEvent:] + 541 47 com.apple.dt.IDEKit 0x000000010fd61e58 -[IDEWorkspaceWindow sendEvent:] + 154 48 com.apple.AppKit 0x00007fffb05f4681 -[NSApplication(NSEvent) sendEvent:] + 1145 49 com.apple.dt.IDEKit 0x000000010fdab177 -[IDEApplication sendEvent:] + 926 50 com.apple.AppKit 0x00007fffafe6f427 -[NSApplication 运行] + 1002 51 com.apple.AppKit 0x00007fffafe39e0e NSApplicationMain + 1237 52 libdyld.dylib 0x0000000111c9a235 开始 + 1

线程 1:0 libsystem_kernel.dylib 0x0000000111ceb34a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x0000000111cea797 mach_msg + 55 2 com.apple.CoreFoundation 0x00007fffb2382874 CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fffb2381cf1 __CFRunLoopRun + 1361 4 com.apple.CoreFoundation 0x00007fffb2381544 CFRunLoopRunSpecific + 420 5 com.apple.Foundation 0x00007fffb3db2252 -[NSRunLoop(NSRunLoop) 运行模式:beforeDate:] + 277 6 com.apple.DTDeviceKitBase 0x000000011bc6b143 +[DTDKRemoteDeviceConnection startServiceBrowsers] + 217 7 com.apple.Foundation 0x00007fffb3dc28ad __NSThread__start + 1243 8 libsystem_pthread.dylib 0x0000000111dc593b _pthread_body + 180 9 libsystem_pthread.dylib 0x0000000111dc5887 _pthread_start + 286 10 libsystem_pthread.dylib 0x0000000111dc508d thread_start + 13

线程 2:0 libsystem_kernel.dylib 0x0000000111ceb34a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x0000000111cea797 mach_msg + 55 2 com.apple.CoreFoundation 0x00007fffb2382874 CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fffb2381cf1 __CFRunLoopRun + 1361 4 com.apple.CoreFoundation 0x00007fffb2381544 CFRunLoopRunSpecific + 420 5 com.apple.Foundation 0x00007fffb3db2252 -[NSRunLoop(NSRunLoop) 运行模式:beforeDate:] + 277 6 com.apple.DTDeviceKitBase 0x000000011bc79df1 -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 1454 7 com.apple.Foundation 0x00007fffb3dc28ad __NSThread__start + 1243 8 libsystem_pthread.dylib 0x0000000111dc593b _pthread_body + 180 9 libsystem_pthread.dylib 0x0000000111dc5887 _pthread_start + 286 10 libsystem_pthread.dylib 0x0000000111dc508d thread_start + 13

线程 3:: com.apple.CFSocket.private 0 libsystem_kernel.dylib 0x0000000111cf2eb6 __select + 10 1 com.apple.CoreFoundation 0x00007fffb23bd939 __CFSocketManager + 729 2 libsystem_pthread.dylib 0x0000000111dc593b _pthread_body + 180 3 libsystem_pthread.dylib 0x0000000111dc5887 _pthread_start + 286 4 libsystem_pthread.dylib 0x0000000111dc508d thread_start + 13

线程 4:0 libsystem_kernel.dylib 0x0000000111cf2bf2 __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x0000000111dc67fa _pthread_cond_wait + 712 2 libc++.1.dylib 0x00007fffc6c514cd std::__1::condition_variable::wait(std::__1::unique_lock&) + 47 3 com.apple.javascriptCore 0x00007fffb53b043c void std::__1::condition_variable_any::wait >(std::__1::unique_lock&) + 108 4 com.apple.JavaScriptCore 0x00007fffb53b03bb bmalloc::AsyncTask::threadRunLoop() + 155 5 com.apple.JavaScriptCore 0x00007fffb53b028d bmalloc::AsyncTask::threadEntryPoint(bmalloc::AsyncTask) + 29 6 com.apple.JavaScriptCore 0x00007fffb53b053d 无效 std::__1::__thread_proxy*), bmalloc::AsyncTask*>

(void*) + 93 7 libsystem_pthread.dylib 0x0000000111dc593b _pthread_body + 180 8 libsystem_pthread.dylib 0x0000000111dc5887 _pthread_start + 286 9 libsystem_pthread.dylib 0x0000000111dc508d thread_start + 13

线程 5:: com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib 0x0000000111ceb34a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x0000000111cea797 mach_msg + 55 2 com.apple.CoreFoundation 0x00007fffb2382874 CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fffb2381cf1 __CFRunLoopRun + 1361 4 com.apple.CoreFoundation 0x00007fffb2381544 CFRunLoopRunSpecific + 420 5 com.apple.CFNetwork 0x000000011152a734 +[NSURLConnection(Loader)_resourceLoadLoop:] + 313 6 com.apple.Foundation 0x00007fffb3dc28ad __NSThread__start + 1243 7 libsystem_pthread.dylib 0x0000000111dc593b _pthread_body + 180 8 libsystem_pthread.dylib 0x0000000111dc5887 _pthread_start + 286 9 libsystem_pthread.dylib 0x0000000111dc508d thread_start + 13

线程 6:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x0000000111ceb34a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x0000000111cea797 mach_msg + 55 2 com.apple.CoreFoundation 0x00007fffb2382874 __CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fffb2381cf1 __CFRunLoopRun + 1361 4 com.apple.CoreFoundation 0x00007fffb2381544 CFRunLoopRunSpecific + 420 5 com.apple.AppKit 0x00007fffaffc7f02 _NSEventThread + 205 6 libsystem_pthread.dylib 0x0000000111dc593b _pthread_body + 180 7 libsystem_pthread.dylib 0x0000000111dc5887 _pthread_start + 286 8 libsystem_pthread.dylib 0x0000000111dc508d thread_start + 13

线程 7::DYMobileDeviceManager 0 libsystem_kernel.dylib 0x0000000111ceb34a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x0000000111cea797 mach_msg + 55 2 com.apple.CoreFoundation 0x00007fffb2382874 CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fffb2381cf1 __CFRunLoopRun + 1361 4 com.apple.CoreFoundation 0x00007fffb2381544 CFRunLoopRunSpecific + 420 5 com.apple.Foundation 0x00007fffb3db2252 -[NSRunLoop(NSRunLoop) 运行模式:beforeDate:] + 277 6 com.apple.Foundation 0x00007fffb3db212a -[NSRunLoop(NSRunLoop) 运行] + 76 7 com.apple.GPUToolsMobileFoundation 0x00000001272f525d -[DYMobileDeviceManager _deviceNotificationThread:] + 134 8 com.apple.Foundation 0x00007fffb3dc28ad __NSThread__start + 1243 9 libsystem_pthread.dylib 0x0000000111dc593b _pthread_body + 180 10 libsystem_pthread.dylib 0x0000000111dc5887 _pthread_start + 286 11 libsystem_pthread.dylib 0x0000000111dc508d thread_start + 13

线程 8:0 libsystem_pthread.dylib 0x0000000111dc5070 start_wqthread + 0 1 ??? 0x000070000c38db80 0 + 123145507363712

线程 9:0 libsystem_kernel.dylib 0x0000000111cf2bf2 psynch_cvwait + 10 1 libsystem_pthread.dylib 0x0000000111dc67fa _pthread_cond_wait + 712 2 com.apple.Xcode.DevToolsCore 0x0000000120ef3822 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 594 3 com.apple.Foundation 0x00007fffb3dc28ad __NSThread__start + 1243 4 libsystem_pthread.dylib 0x0000000111dc593b _pthread_body + 180 5 libsystem_pthread.dylib 0x0000000111dc5887 _pthread_start + 286 6 libsystem_pthread.dylib 0x0000000111dc508d thread_start + 13

线程 10:0 libsystem_kernel.dylib 0x0000000111cf2bf2 psynch_cvwait + 10 1 libsystem_pthread.dylib 0x0000000111dc67fa _pthread_cond_wait + 712 2 com.apple.Xcode.DevToolsCore 0x0000000120ef3822 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 594 3 com.apple.Foundation 0x00007fffb3dc28ad __NSThread__start + 1243 4 libsystem_pthread.dylib 0x0000000111dc593b _pthread_body + 180 5 libsystem_pthread.dylib 0x0000000111dc5887 _pthread_start + 286 6 libsystem_pthread.dylib 0x0000000111dc508d thread_start + 13

线程 11:0 libsystem_kernel.dylib 0x0000000111cf2bf2 psynch_cvwait + 10 1 libsystem_pthread.dylib 0x0000000111dc67fa _pthread_cond_wait + 712 2 com.apple.Xcode.DevToolsCore 0x0000000120ef3822 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 594 3 com.apple.Foundation 0x00007fffb3dc28ad __NSThread__start + 1243 4 libsystem_pthread.dylib 0x0000000111dc593b _pthread_body + 180 5 libsystem_pthread.dylib 0x0000000111dc5887 _pthread_start + 286 6 libsystem_pthread.dylib 0x0000000111dc508d thread_start + 13

线程 12:0 libsystem_pthread.dylib 0x0000000111dc5070 start_wqthread + 0 1 ??? 0x0000000000000010 0 + 16

线程 13:0 libsystem_kernel.dylib 0x0000000111cf344e __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x0000000111dc548e _pthread_wqthread + 1023 2 libsystem_pthread.dylib 0x0000000111dc507d start_wqthread + 13

线程 14:0 libsystem_pthread.dylib 0x0000000111dc5070 start_wqthread + 0 1 ??? 0x00007fc08b23c020 0 + 140464944824352

线程 15:0 libsystem_kernel.dylib 0x0000000111cf344e __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x0000000111dc548e _pthread_wqthread + 1023 2 libsystem_pthread.dylib 0x0000000111dc507d start_wqthread + 13

线程 16:0 libsystem_kernel.dylib 0x0000000111cf2f46 __semwait_signal + 10 1 libsystem_c.dylib 0x00007fffc816ab72 nanosleep + 199 2 com.apple.CoreSymbolication 0x00007fffbe4f62ed clean_thread_main(void*) + 42 3 libsystem_pthread.dylib 0x0000000111dc593b _pthread_body + 180 4 libsystem_pthread.dylib 0x0000000111dc5887 _pthread_start + 286 5 libsystem_pthread.dylib 0x0000000111dc508d thread_start + 13

线程 0 因 X86 线程状态(64 位)而崩溃:rax: 0x0000000000000000 rbx:0x0000000000000006 rcx:0x00007fff51855448 rdx: 0x0000000000000000 rdi: 0x0000000000000307 rsi: 0x0000000000000006 rbp:0x00007fff51855470 rsp:0x00007fff51855448 r8:0x00007fc09a5058e0 r9:0x0000000110411897 r10: 0x0000000008000000 r11:0x0000000000000206 r12:0x00007fffc77c8410 r13:0x0000000000000000 r14:0x0000000111dcd3c0 r15: 0x00007fc0a096d640 撕裂:0x0000000111cf2d42 rfl:0x0000000000000206 cr2: 0x00007fffd1019128 逻辑 CPU: 0 错误代码: 0x02000148 陷阱号:133

【问题讨论】:

【参考方案1】:

Xcode 因库/缓存文件夹中的 IBCocoaTouchAutolayoutArbitrationUnit.m 文件而崩溃。根据这个link,你可以删除你的库/缓存文件夹中的文件(不要删除文件夹本身),你应该没问题。那应该可以解决问题。但为了安全起见,您可能应该将此文件移动到另一个位置而不是删除。还可以尝试在 Xcode 9 beta 中打开您的工作区,看看它是否以相同的方式崩溃并显示相同的错误消息。

【讨论】:

以上是关于iOS Xcode - 编辑情节提要对象导致视图控制器场景复制另一个场景然后 Xcode 崩溃的主要内容,如果未能解决你的问题,请参考以下文章

从 xib 或带有情节提要的其他场景添加子视图

带有情节提要的 presentViewController 显示黑色视图 iOS 7.1 xcode 5.1

如何在情节提要 Xcode 11 中的视图之间将边距设置为零

Xcode 11:无法从带有标识符的情节提要中实例化视图控制器

iOS:如何以编程方式将视图添加到情节提要视图

IOS/Xcode:故事板屏幕变黑