在这种情况下,在 xcode 的控制台打印出得信息当中会单独拎出一条约束。 Will attempt to recover by breaking constraint 下面那一条
1 2 3 4 5 6 7 8 9 10 11 12 13
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. ( "<SnapKit.LayoutConstraint:0x6040002a08a0@ChoiceArticleCell.swift#182 UIImageView:0x7fae99d49240.left == UIView:0x7fae99d55e70.left>", "<SnapKit.LayoutConstraint:0x6040002a0900@ChoiceArticleCell.swift#182 UIImageView:0x7fae99d49240.top == UIView:0x7fae99d55e70.top>", "<SnapKit.LayoutConstraint:0x6040002a0960@ChoiceArticleCell.swift#182 UIImageView:0x7fae99d49240.right == UIView:0x7fae99d55e70.right>", "<SnapKit.LayoutConstraint:0x6040002a09c0@ChoiceArticleCell.swift#182 UIImageView:0x7fae99d49240.bottom == UIView:0x7fae99d55e70.bottom>" )
Will attempt to recover by breaking constraint <SnapKit.LayoutConstraint:0x6040002a0a20@ChoiceArticleCell.swift#183UIImageView:0x7fae99d49240.height ==UIImageView:0x7fae99d49240.width *0.425531923770905>