Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Search.storyboard contains broken AutoLayout constraints #1

Open
DevAndArtist opened this issue Aug 3, 2015 · 0 comments
Open

Search.storyboard contains broken AutoLayout constraints #1

DevAndArtist opened this issue Aug 3, 2015 · 0 comments

Comments

@DevAndArtist
Copy link

Hello there, as part of my research I had to look at the code of this repository and I noticed a bug on an iPod Touch with 5" display.

Here is what the Xcode command line tool prints when I enter the search SearchExampleViewController. I was using Xcode 6.4 and the iPod Touch runs iOS 8.4.

2015-08-03 11:40:03.962 Animation[210:9643] DiskImageCache: Could not resolve the absolute path of the old directory.
2015-08-03 11:40:27.208 Animation[210:9643] 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:0x16e0a030 V:[Animation.View:0x16e0a070(80)]>",
    "<NSLayoutConstraint:0x16dcd910 V:[UITextField:0x16f42a70(30)]>",
    "<NSLayoutConstraint:0x16e0a480 V:|-(20)-[UITextField:0x16f42a70]   (Names: '|':UIView:0x16e0b980 )>",
    "<NSLayoutConstraint:0x16e05250 V:[UIButton:0x16e94250(50)]>",
    "<NSLayoutConstraint:0x16e138a0 V:|-(0)-[Animation.View:0x16e0a070]   (Names: '|':UIView:0x16e16f10 )>",
    "<NSLayoutConstraint:0x16e12990 V:[Animation.View:0x16e0a070]-(0)-[UIView:0x16e0b980]>",
    "<NSLayoutConstraint:0x16e129c0 UIButton:0x16e94250.centerY == UITextField:0x16f42a70.centerY>",
    "<NSLayoutConstraint:0x16e889b0 V:[_UILayoutGuide:0x16e889e0]-(70)-[UIButton:0x16e94250]>",
    "<_UILayoutSupportConstraint:0x16f33190 V:[_UILayoutGuide:0x16e889e0(0)]>",
    "<_UILayoutSupportConstraint:0x16dfa620 V:|-(0)-[_UILayoutGuide:0x16e889e0]   (Names: '|':UIView:0x16e16f10 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x16dcd910 V:[UITextField:0x16f42a70(30)]>

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.
2015-08-03 11:40:27.215 Animation[210:9643] 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:0x16e0a030 V:[Animation.View:0x16e0a070(80)]>",
    "<NSLayoutConstraint:0x16e0a480 V:|-(20)-[UITextField:0x16f42a70]   (Names: '|':UIView:0x16e0b980 )>",
    "<NSLayoutConstraint:0x16e05250 V:[UIButton:0x16e94250(50)]>",
    "<NSLayoutConstraint:0x16e138a0 V:|-(0)-[Animation.View:0x16e0a070]   (Names: '|':UIView:0x16e16f10 )>",
    "<NSLayoutConstraint:0x16e12990 V:[Animation.View:0x16e0a070]-(0)-[UIView:0x16e0b980]>",
    "<NSLayoutConstraint:0x16e129c0 UIButton:0x16e94250.centerY == UITextField:0x16f42a70.centerY>",
    "<NSLayoutConstraint:0x16e889b0 V:[_UILayoutGuide:0x16e889e0]-(70)-[UIButton:0x16e94250]>",
    "<_UILayoutSupportConstraint:0x16f33190 V:[_UILayoutGuide:0x16e889e0(0)]>",
    "<_UILayoutSupportConstraint:0x16dfa620 V:|-(0)-[_UILayoutGuide:0x16e889e0]   (Names: '|':UIView:0x16e16f10 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x16e0a480 V:|-(20)-[UITextField:0x16f42a70]   (Names: '|':UIView:0x16e0b980 )>

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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant