Constraints errors when call bar appears - ios

Morning
How to correct errors constraints when the call bar appears. I do not have this problem when it is hidden.
I have this error
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:0x7fc4ba591630 V:|-(20)-[UIInputSetContainerView:0x7fc4ba58f310] (Names: '|':UITextEffectsWindow:0x7fc4bc17b950 )>",
"<NSLayoutConstraint:0x7fc4bc157c10 'UIInputWindowController-top' V:|-(0)-[UIInputSetContainerView:0x7fc4ba58f310] (Names: '|':UITextEffectsWindow:0x7fc4bc17b950 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fc4ba591630 V:|-(20)-[UIInputSetContainerView:0x7fc4ba58f310] (Names: '|':UITextEffectsWindow:0x7fc4bc17b950 )>
Thanks

Related

How to debug AutoLayout Constraints?

I am new to iOS Development. Whenever I run my App, I get this conflicting constraints error. Can you please suggest me something about how to debug this issue?
2016-07-13 12:53:51.186 Calculator[4458:50017] 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.
(
"<_UILayoutSupportConstraint:0x7fcaf3c5e670 V:[_UILayoutGuide:0x7fcaf3c62a80(0)]>",
"<_UILayoutSupportConstraint:0x7fcaf3c5c060 _UILayoutGuide:0x7fcaf3c62a80.bottom == UIView:0x7fcaf3c54390.bottom>",
"<NSLayoutConstraint:0x7fcaf3c54b00 UIImageView:0x7fcaf3c54c70.width == UIImageView:0x7fcaf3c54c70.height>",
"<NSLayoutConstraint:0x7fcaf3c633d0 V:|-(0)-[UIImageView:0x7fcaf3c54c70] (Names: '|':UIView:0x7fcaf3c54390 )>",
"<NSLayoutConstraint:0x7fcaf3c63420 H:[UIImageView:0x7fcaf3c54c70]-(0)-| (Names: '|':UIView:0x7fcaf3c54390 )>",
"<NSLayoutConstraint:0x7fcaf3c63470 H:|-(0)-[UIImageView:0x7fcaf3c54c70] (Names: '|':UIView:0x7fcaf3c54390 )>",
"<NSLayoutConstraint:0x7fcaf3c63560 V:[UIImageView:0x7fcaf3c54c70]-(0)-[_UILayoutGuide:0x7fcaf3c62a80]>",
"<NSLayoutConstraint:0x7fcaf3c67e50 'UIView-Encapsulated-Layout-Height' V:[UIView:0x7fcaf3c54390(736)]>",
"<NSLayoutConstraint:0x7fcaf3c61230 'UIView-Encapsulated-Layout-Width' H:[UIView:0x7fcaf3c54390(414)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fcaf3c54b00 UIImageView:0x7fcaf3c54c70.width == UIImageView:0x7fcaf3c54c70.height>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
It seems as if you have a constraint added which is being counter acted by another constraint.
Normally if you right click you're able to get the 'Suggested Constraints' try using them and see if it works!
edit:

Getting autolayout issues in debugger

Trying to get autolayout to work so that cell resizing can be achieved.
This is how my storyboard looks like:
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2016-06-01 14:05:24.587 BrandSpace[4968:1387945] 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:0x1258c32a0 H:[LikeButton:0x1258c2d80'Like'(46)]>",
"<NSLayoutConstraint:0x1258c3830 H:[UILabel:0x1258c35d0'1'(121)]>",
"<NSLayoutConstraint:0x1258c4290 H:|-(8)-[LikeButton:0x1258c2d80'Like'] (Names: '|':UIView:0x1258bf6f0 )>",
"<NSLayoutConstraint:0x1258c4330 H:[LikeButton:0x1258c2d80'Like']-(387)-[UILabel:0x1258c35d0'1']>",
"<NSLayoutConstraint:0x1258c4380 H:[UILabel:0x1258c35d0'1']-(8)-| (Names: '|':UIView:0x1258bf6f0 )>",
"<NSLayoutConstraint:0x1258c47c0 H:[UIView:0x1258bf6f0]-(15)-| (Names: '|':UITableViewCellContentView:0x1258c1a50 )>",
"<NSLayoutConstraint:0x1258c4810 H:|-(15)-[UIView:0x1258bf6f0] (Names: '|':UITableViewCellContentView:0x1258c1a50 )>",
"<NSLayoutConstraint:0x1247fb850 'fittingSizeHTarget' H:[UITableViewCellContentView:0x1258c1a50(375)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1258c3830 H:[UILabel:0x1258c35d0'1'(121)]>

How can I detect the views whose constraints are being unsatisfied?

I am constantly getting this error:
2014-09-13 23:56:19.904 Parrot[245:60b] 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.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x14641170 H:[UILabel:0x14641060(200)]>",
"<NSLayoutConstraint:0x14643670 H:[UILabel:0x14641060]-(60)-| (Names: '|':UIView:0x14641590 )>",
"<NSLayoutConstraint:0x146436a0 H:|-(60)-[UILabel:0x14641060] (Names: '|':UIView:0x14641590 )>",
"<NSAutoresizingMaskLayoutConstraint:0x1464bc70 h=--& v=--& H:[UIView:0x14641590(480)]>"
)
How can I detect the views whose constraints are being unsatisfied?
[UILabel:0x14641060]
It's in error message.
It seems this UILabel has three constraints. Remove any one of these you can satisfy the constraints

Unable to simultaneously satisfy constraints, where is it coming from?

I have this warning when building my app. I'm using a storyboard, but all constraints are proper over there.. I don't know where else I have to look..
2014-04-29 14:18:54.072 gTicket[1540:60b] 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. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x16593a90 V:[UIView:0x165a1dd0(429)]>",
"<NSLayoutConstraint:0x165b3c50 V:[UILabel:0x165b3d80(20)]>",
"<NSLayoutConstraint:0x165b37c0 V:[UIView:0x165945a0(52)]>",
"<NSLayoutConstraint:0x165ac960 V:[_UILayoutGuide:0x165a8670]-(36)-[UIView:0x165a1dd0]>",
"<NSLayoutConstraint:0x165a9060 V:[UIView:0x165a1dd0]-(14)-[UILabel:0x165b3d80]>",
"<NSLayoutConstraint:0x165b50d0 V:[UILabel:0x165b3d80]-(16)-[UIView:0x165945a0]>",
"<NSLayoutConstraint:0x165a1e80 V:[UIView:0x165945a0]-(1)-[_UILayoutGuide:0x165adfc0]>",
"<_UILayoutSupportConstraint:0x165adf00 V:[_UILayoutGuide:0x165a8670(0)]>",
"<_UILayoutSupportConstraint:0x165ae3b0 V:|-(0)-[_UILayoutGuide:0x165a8670] (Names: '|':UIView:0x165a6940 )>",
"<_UILayoutSupportConstraint:0x1659c120 V:[_UILayoutGuide:0x165adfc0(0)]>",
"<_UILayoutSupportConstraint:0x165a12d0 _UILayoutGuide:0x165adfc0.bottom == UIView:0x165a6940.bottom>",
"<NSAutoresizingMaskLayoutConstraint:0x165baf00 h=--& v=--& V:[UIView:0x165a6940(431)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x16593a90 V:[UIView:0x165a1dd0(429)]>
Is it possible to determine which UILabel and which view it is complaining about?

Autolayout Constraint Error

I have a problem with autolayout contraints on my iPad project, when I rotate my device I have this error :
2013-06-03 13:16:24.969 PDFViewer[7534:907] 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. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x1f5525e0 H:[UIScrollView:0x1f551910]-(970)-| (Names: '|':UIView:0x1f547740 )>",
"<NSLayoutConstraint:0x1f5525a0 H:|-(0)-[UIScrollView:0x1f551910] (Names: '|':UIView:0x1f547740 )>",
"<NSAutoresizingMaskLayoutConstraint:0x1f562520 h=--- v=--- H:[UIWindow:0x1f543890(768)]>",
"<NSAutoresizingMaskLayoutConstraint:0x1f560af0 h=-&- v=-&- UIView:0x1f547740.width == UIWindow:0x1f543890.width>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1f5525e0 H:[UIScrollView:0x1f551910]-(970)-| (Names: '|':UIView:0x1f547740 )>
Ok, some constraints are contentious but I don't set any constraint by myself, they are all set automatically in Interface Builder and I can't remove them. What I want is pretty simple, a scrollview, with fixed width and 100% height, and a collection view, with remaining width and 100% height.
Autolayout makes me crazy, any idea ?
Edit : Here are my constraints defined in IB
Error was caused by an automatic constraint, more precisely this one :
"<NSLayoutConstraint:0x1f5525e0 H:[UIScrollView:0x1f551910]-(970)-| (Names: '|':UIView:0x1f547740 )>",
As it is added by IB you can't delete it, so for ignoring it I have set the priority to 1.

Resources