Auto Layout: Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want
Two or more Auto Layout constraints conflict; UIKit breaks one to recover and logs this message.
Seen on:
iOS
Meaning
Common causes: translatesAutoresizingMaskIntoConstraints left true for programmatic views, fixed widths/heights fighting each other, or constraints that don’t fit when a view is collapsed (e.g. height 0 with padding).
Common causes
- translatesAutoresizingMaskIntoConstraints = true on programmatic views
- Conflicting fixed width/height constraints
- Constraints impossible in some states (hidden/zero-size)
- Duplicate constraints added repeatedly
⚡ Quick fix
- Set translatesAutoresizingMaskIntoConstraints = false
- Lower priority (999) on the constraint that can give
- Use wtfautolayout.com to read the log
Detailed fix by platform
Swift
- swift
view.translatesAutoresizingMaskIntoConstraints = false let h = view.heightAnchor.constraint(equalToConstant: 44); h.priority = .defaultHigh; h.isActive = true
How to diagnose
- Log — Constraint list and which one was broken
- Views — Autoresizing constraints (NSAutoresizingMaskLayoutConstraint)?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in iOS
Other ways to find it
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 7 Oct 2026