Xcode调试视图层次结构:无法捕获视图层次结构 [英] Xcode Debug View Hierarchy: Unable to capture view hierarchy

查看:915
本文介绍了Xcode调试视图层次结构:无法捕获视图层次结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试调试视图层次结构时,出现以下错误:

While trying to debug my view hierarchy, I get the following error:

错误:无法捕获视图层次结构. 详细信息:没有用于获取视图层次结构的plist数据:错误评估表达式(id)[(Class)objc_getClass("DBGViewDebuggerSupport_iOS")fetchViewHierarchyWithOptions:(id)[(Class)objc_getClass("NSDictionary")dictionaryWithObjects:(id)[(id )[(id)[(Class)objc_getClass("NSArray")arrayWithObject:(id)[(Class)objc_getClass("NSNumber")numberWithBool:1]] arrayByAddingObject:(id)[(id)[(Class)objc_getClass( "NSArray")arrayWithObject:@"_ UIVisualEffectBackdropView"] arrayByAddingObject:@"_ UIBackdropEffectView"]] arrayByAddingObject:(id)[(Class)objc_getClass("NSNumber")numberWithBool:0]] forKeys:(id)[(id)[( id)[(Class)objc_getClass("NSArray")arrayWithObject:@"DBGViewDebuggerUseLayersAsSnapshots"] arrayByAddingObject:@"DBGViewDebuggerEffectViewsToSnapshotAsImage"] arrayByAddingObject:@"DBGViewDebuggerAlwaysEncodeLayers"]]]:错误,已执行,原因:错误,已执行. 该过程已返回到表达式求值之前的状态. 方法:-[DBGAbstractViewDescriber handleFetchedViewInfo:fetchError:resultHandler:] 请在 http://bugreport.apple.com 处提交错误,并附上此警告消息和任何您可以使用的有用信息提供.

Error: Unable to capture view hierarchy. Details: No plist data for fetching view hierarchy: error evaluating expression "(id)[(Class)objc_getClass("DBGViewDebuggerSupport_iOS") fetchViewHierarchyWithOptions:(id)[(Class)objc_getClass("NSDictionary") dictionaryWithObjects:(id)[(id)[(id)[(Class)objc_getClass("NSArray") arrayWithObject:(id)[(Class)objc_getClass("NSNumber") numberWithBool:1]] arrayByAddingObject:(id)[(id)[(Class)objc_getClass("NSArray") arrayWithObject:@"_UIVisualEffectBackdropView"] arrayByAddingObject:@"_UIBackdropEffectView"]] arrayByAddingObject:(id)[(Class)objc_getClass("NSNumber") numberWithBool:0]] forKeys:(id)[(id)[(id)[(Class)objc_getClass("NSArray") arrayWithObject:@"DBGViewDebuggerUseLayersAsSnapshots"] arrayByAddingObject:@"DBGViewDebuggerEffectViewsToSnapshotAsImage"] arrayByAddingObject:@"DBGViewDebuggerAlwaysEncodeLayers"]]]": error: Execution was interrupted, reason: signal SIGSTOP. The process has been returned to the state before expression evaluation. Method: -[DBGAbstractViewDescriber handleFetchedViewInfo:fetchError:resultHandler:] Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

有人知道吗?

Xcode版本8.2.1(8C1002)
模拟器:iPhone 6(10.2)

Xcode Version 8.2.1 (8C1002)
Simulator: iPhone 6 (10.2)

谢谢!

推荐答案

实际上我也遇到了相同类型的错误,但事实是我们的应用必须处于运行状态.因为调试视图捕获层次结构"区域仅在应用程序运行时出现.

Actually me also got the same type of error, but the truth is our app must in Running state. Because the "Debug View capture hierarchy" area appears only while the app is running.

查看我的屏幕截图

在第1步中:首先选择您的应用

In Step 1: Select your app first

在第2步中,现在选择调试层次结构"按钮

In Step 2: Now select Debug hierarchy button

如果这不起作用,请转到Xcode顶部栏菜单中的 Debug (调试)

If this doesn't work then go to Debug in menu on the top bar of Xcode

->调试->视图调试->捕获视图层次结构

->Debug -> view debugging -> Capture View Hierarchy

我这样解决了我的问题.

I solved my problem like this.

这篇关于Xcode调试视图层次结构:无法捕获视图层次结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆