question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Opening the dev menu gives a warning: "Unable to simultaneously satisfy constraints"

See original GitHub issue

React Native version:

v0.60-rc2

Steps To Reproduce

  1. Start an app on iOS
  2. Cmd + D

The following gets logged:

 [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:0x600001b8be80 UIView:0x7f95a3f1e9d0.width == - 16   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x600001b8be80 UIView:0x7f95a3f1e9d0.width == - 16   (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.

Nothing too bad on its own. When you reload often, it creates a lot of noise though.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:6
  • Comments:8

github_iconTop GitHub Comments

3reactions
sukrit-trivedicommented, Oct 31, 2019

issue still exists on RN 0.60.6

2reactions
solonifercommented, Aug 5, 2019

Same issue with 0.59.10

Read more comments on GitHub >

github_iconTop Results From Across the Web

LayoutConstraints error from Navig… | Apple Developer Forums
LayoutConstraints error from NavigationView with navigationTitle ... [LayoutConstraints] Unable to simultaneously satisfy constraints.
Read more >
Unable to simultaneously satisfy constraints, will attempt to ...
Always the problem is how to find following Constraints and Views. There are two solutions how to do this: DEBUG VIEW HIERARCHY (Do...
Read more >
Fixing NavigationTitle Warning Errors In SwiftUI - lopau
Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the...
Read more >
How can I fix iOS Unable to simultaneously satisfy constraints ...
Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the...
Read more >
Script for opening autolayout warnings in wtfautolayout
During the run time, sometimes developer can notice messages in the XCode terminal saying: Unable to simultaneously satisfy constraints. ... from the menu....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found