Xcode's Debug View Hiearchy fails with UITextViews that are not using Auto Layout

Originator:chris
Number:rdar://25505644 Date Originated:01-Apr-2016 08:26 PM
Status: Resolved:
Product:Developer Tools Product Version:Xcode 7.3
Classification:Serious Bug Reproducible:Always
 
Summary:
The Debug View Hierarchy feature in Xcode fails if the view to be inspected contains a UITextView that is not using Auto Layout.

Steps to Reproduce:
Run the attached sample code from Xcode 7.3 and choose ‘Debug View Hierarchy’ from the Debug Area controls

Expected Results:
Xcode pauses the running application and provides a visual representation of the current views on screen.

Actual Results:
Application pauses, but the User Interface Inspector is empty. The debug console contains the following log: *** Assertion failure in -[UITextView _firstBaselineOffsetFromTop], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3512.60.7/UITextView.m:1683

Regression:
Appears to be new with Xcode 7.3.

Comments

Sample code: http://cl.ly/2P380I2H0I1u


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!