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

Search.storyboard contains broken AutoLayout constraints #1

@DevAndArtist

Description

@DevAndArtist

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions