23

At WWDC Apple promised to release a new Instruments tool for debugging AutoLayout on iOS. It should be released "later". I couldn't find it in the Xcode 10.0.0 release version. Did I overlook something, or didn't Apple release it yet?

fabb
  • 11,660
  • 13
  • 67
  • 111

3 Answers3

12

The Instruments tool that they are talking about in the video has not been released yet (as of Xcode 11 beta 5).


However, there is already an older Instruments tool which might help you debug Auto Layout on iOS. I tested the tool on an iPhone simulator in Xcode 10.2 and that works. However, I am not sure if it works on an actual device.

Here's how to access it:

  1. Create a new Standard > Blank template.
  2. Click on the + button > search for the Cocoa Layout template.
  3. Once you have the Cocoa Layout template, it is possible to save it as a custom template so that you can access it directly from Custom > Your Template next time.

There is an old but nice tutorial for this tool here.

tbodt
  • 16,609
  • 6
  • 58
  • 83
aksh1t
  • 5,410
  • 1
  • 37
  • 55
4

You did not overlook anything! Apple did not release it Yet (Xcode Version 10.2 (10E125)).

You can find new release note of Xcode 10 here, in release notes you can see there is no news about addition of AutoLayout tool.

aksh1t
  • 5,410
  • 1
  • 37
  • 55
0

Apple released an instrument for SwiftUI in Xcode 11. Seems like they dropped the plan to release one for regular autolayout and instead concentrated on providing a better experience for SwiftUI.

Here is an article about the instrument.

fabb
  • 11,660
  • 13
  • 67
  • 111