Debug view hierarchy does not render UI

i'm trying to use the view hierarchy feature on xcode 6 to see the draggable layout of my app, but all i get is a blank area where it should be.

after trying out lots of suggestions from SO and other places, nothing works.

I have had the sim running with or without break points, different sim devices, different apps, but nothing works.

I know you're just supposed to click on the button while the app is being simulated and it's supposed to pop up, but when i do it the main interface with the button and options load along with all the elements in the debug navigator. just not the 3d UI itself.

thanks for any tips.


You can click in that view and drag by holding down the left mouse button. This gives you the 3D view.


这不是一个解决办法,但是当我遇到这个问题时,我重新启动了Xcode并再次尝试了几次,最终它为我工作。


There seems to be a recent issue as well which I've run into. When I press the button, I get an assertion failure:

Assertion failure in -[UITextView _firstBaselineOffsetFromTop]

There's an OpenRadar here with a workaround which worked for me of attaching a "useless" constraint" in ViewController.m:

if ([NSLayoutConstraint respondsToSelector:@selector(activateConstraints:)]) {
    TEXTVIEWNAME.translatesAutoresizingMaskIntoConstraints = NO;
    [NSLayoutConstraint activateConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-[TEXTVIEWNAME]-|" options:0 metrics:nil views:NSDictionaryOfVariableBindings(TEXTVIEWNAME)]];
}
链接地址: http://www.djcxy.com/p/23060.html

上一篇: 使用Gradle自定义PMD规则

下一篇: 调试视图层次结构不会呈现UI