Find and resolve Auto Layout errors and warnings

Use the Interface Builder canvas to find and resolve issues for one or more views. Use the outline view to find and resolve all of the issues for a view controller. Use the Auto Layout tools to resolve issues for the selected views.

Find Auto Layout issues on the canvas

Find Auto Layout issues in the outline view

Resolve frame-based Auto Layout issues using the Update Frames tool

A frame-based Auto Layout issue occurs when the frame of the view on the canvas is different from the frame generated from the constraints. Frame-based issues are shown on the canvas as orange or red constraint lines with a bubble showing the difference between the current value and expected value of the constant for the constraint. Use the Update Frames tool to update the frames of the selected views to match the constraints.

  1. On the Interface Builder canvas, select one or more views with frame-based Auto Layout issues.

  2. At the bottom of the canvas, click the Update Frames tool button in the layout bar.

Resolve issues using the Resolve Auto Layout Issues tool

  1. On the Interface Builder canvas, select one or more views with Auto Layout issues.

  2. At the bottom of the canvas, click the Resolve Auto Layout Issues tool button in the layout bar.

  3. In the resolve auto layout issues popover, select the desired choice.

Resolve issues using the outline view Auto Layout issue details pane

For more help on debugging Auto Layout issues, see Debugging Auto Layout in Auto Layout Guide.