UIButton has ambiguous layout for its image

I don’t know if this is new in iOS 11 (though I think the error in the log is):


I'm debugging my app in iPhone simulator, and click Debug View Hierarchy. It outputs


[LayoutConstraints] Window has a view with an ambiguous layout. See "Auto Layout Guide: Ambiguous Layouts" for help debugging. Displaying synopsis from invoking -[UIView _autolayoutTrace] to provide additional detail.


*UIImageView:0x6160000a5380- AMBIGUOUS LAYOUT for UIImageView:0x6160000a5380.minX{id: 3735}, UIImageView:0x6160000a5380.minY{id: 3737}


but this particular UIImageView is the image of a UIButton. I don’t control its layout.


And, there are no runtime issues shown (the way there usually are for auto layout issues).


So I think this is harmless, but it’s annoying to have in the console (and could make it harder to spot real auto layout issues). Is this a real issue? A bug I should file?

Replies

ever solved this?