AMBIGUOUS LAYOUT错误信息中id字段含义及标识疑问
Let's break down what those IDs mean in your Auto Layout error message:
What does the "id" represent?
In AMBIGUOUS LAYOUT errors, the id is a unique identifier assigned by the Auto Layout system to individual constraints. It acts like a unique tag that lets you pinpoint exactly which constraint is part of the ambiguous layout issue—super handy when you’ve got dozens of constraints in your project and need to track down the problematic ones fast.
What do {id: 61} and {id: 65} refer to specifically?
In your error message:
Feather-1:0x7fa8f7612530- AMBIGUOUS LAYOUT for Feather-1.minX{id: 61}, Feather-1.minY{id: 65}
{id: 61}is the unique ID for the constraint that controls theminX(left edge, essentially) of the view namedFeather-1.{id: 65}is the unique ID for the constraint controlling theminY(top edge) of that sameFeather-1view.
The error is telling you that these two constraints (or their combination with other existing constraints) aren’t providing clear, non-conflicting rules for Auto Layout to lock in exactly where Feather-1 should sit on the screen. There’s more than one valid position that satisfies these constraints, hence the "ambiguous layout" warning.
内容的提问来源于stack exchange,提问作者Andrew Duncan

