Xcode 5/6: View Debugging always grayed out?

后端 未结 8 2587
攒了一身酷
攒了一身酷 2020-12-13 05:33

The \"Debug / View Debugging\" menu is always grayed out for me in Xcode 5 (and 6), even when the target is stopped at a breakpoint. How do I enable it?

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 06:19

    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.

提交回复
热议问题