Constraint warning message

I was getting a constraints warning message in the output window when running my final solution for this chapter. I tried the one from the solution file and get the same message:
[LayoutConstraints] Unable to simultaneously satisfy constraints.

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.


"<NSLayoutConstraint:0x6000001e5040 UIView:0x7fa249911bd0.width == - 16 (active)>"


Will attempt to recover by breaking constraint

<NSLayoutConstraint:0x6000001e5040 UIView:0x7fa249911bd0.width == - 16 (active)>

What needs changed to not have this error?


I downloaded the solutions & tried the chapter 14 program, and got the same error you did. It doesn’t occur until you select the camera icon, so I think it has something to do with the pop-up that appears. Since that pop-up isn’t one of your program elements, I’m not sure there’s anything you can do about its constraints. I tried resizing the toolbar to move the camera icon closer to the middle of the screen but that didn’t change anything. Running on an iPad to get a larger screen didn’t help either.

1 Like

This is old bug. Stackoverflow told that Apple didn’t fix it.