Xcode 5/6: View Debugging always grayed out?
Solution 1:
For me (Xcode 6 Beta and Beta two) the View Debugging options are only enabled in 32bit simulators (e.g. works when I use 'iPhone 5' but not when I am using 'iPhone 5s')
Solution 2:
I believe that the Capture View Hierarchy feature is only available when the target is running iOS 8.
In Xcode 6 (beta 2) the schema popup on the toolbar lets you choose the type of simulated device. For me the fixed devices show up three times. This is because I have three environments available: iOS 7, iOS 7.1 and iOS 8. However, this information is missing from the popup, which appears to be an Xcode 6 bug. The bottom group of devices, including "Resizable iPhone" and "Resizable iPad", are running iOS 8. If you use one of these devices the View Debugging -> Capture View Hierarchy menu item becomes available.
However, iOS Simulator -> Hardware -> Device -> Manage Devices… lets you edit the device names to make them more informative.
Note that this crashes for me every time I try to view a hierarchy that is using a UIMapView.
Solution 3:
Also make sure that view debugging isn't disabled in your current scheme's run options:
Xcode 6.1 still has the limitations about view debugging only working on 32 bit devices (iPhone 5 or older) and on iOS 8, though.