extrajordanary / PKProject

1 stars 0 forks source link

"Unable to simultaneously satisfy constraints." CreateSpotVC - Landscape Mode #1

Open extrajordanary opened 10 years ago

extrajordanary commented 10 years ago
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:0x170a80eb0 V:[UIToolbar:0x140c8bbc0(44)]>",
    "<NSLayoutConstraint:0x170a81040 UIImageView:0x1701fd500.width == UIImageView:0x1701fd500.height>",
    "<NSLayoutConstraint:0x178a9a360 V:[MKMapView:0x140c76db0]-(0)-[UIImageView:0x1701fd500]>",
    "<NSLayoutConstraint:0x178a9a310 UIView:0x170380f70.trailingMargin == UIImageView:0x1701fd500.trailing - 16>",
    "<NSLayoutConstraint:0x178a9a2c0 UIImageView:0x1701fd500.leading == UIView:0x170380f70.leadingMargin - 16>",
    "<NSLayoutConstraint:0x178a9a220 MKMapView:0x140c76db0.top == UIView:0x170380f70.topMargin>",
    "<NSLayoutConstraint:0x178a9a0e0 V:[UIImageView:0x1701fd500]-(0)-[UIToolbar:0x140c8bbc0]>",
    "<NSLayoutConstraint:0x178a9a090 V:[UIToolbar:0x140c8bbc0]-(0)-[_UILayoutGuide:0x1781b6b20]>",
    "<_UILayoutSupportConstraint:0x178aa63c0 V:[_UILayoutGuide:0x1781b6b20(0)]>",
    "<_UILayoutSupportConstraint:0x178aa6060 _UILayoutGuide:0x1781b6b20.bottom == UIView:0x170380f70.bottom>",
    "<NSLayoutConstraint:0x178a9a590 'UIView-Encapsulated-Layout-Width' H:[UIView:0x170380f70(667)]>",
    "<NSLayoutConstraint:0x178a997d0 'UIView-Encapsulated-Layout-Height' V:[UIView:0x170380f70(667)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x170a80eb0 V:[UIToolbar:0x140c8bbc0(44)]>

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.
2014-10-15 13:53:46.453 PKProject[50825:4018021] 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:0x170a81040 UIImageView:0x1701fd500.width == UIImageView:0x1701fd500.height>",
    "<NSLayoutConstraint:0x178a9a360 V:[MKMapView:0x140c76db0]-(0)-[UIImageView:0x1701fd500]>",
    "<NSLayoutConstraint:0x178a9a310 UIView:0x170380f70.trailingMargin == UIImageView:0x1701fd500.trailing - 16>",
    "<NSLayoutConstraint:0x178a9a2c0 UIImageView:0x1701fd500.leading == UIView:0x170380f70.leadingMargin - 16>",
    "<NSLayoutConstraint:0x178a9a220 MKMapView:0x140c76db0.top == UIView:0x170380f70.topMargin>",
    "<NSLayoutConstraint:0x178a9a0e0 V:[UIImageView:0x1701fd500]-(0)-[UIToolbar:0x140c8bbc0]>",
    "<NSLayoutConstraint:0x178a9a090 V:[UIToolbar:0x140c8bbc0]-(0)-[_UILayoutGuide:0x1781b6b20]>",
    "<_UILayoutSupportConstraint:0x178aa63c0 V:[_UILayoutGuide:0x1781b6b20(0)]>",
    "<_UILayoutSupportConstraint:0x178aa6060 _UILayoutGuide:0x1781b6b20.bottom == UIView:0x170380f70.bottom>",
    "<NSLayoutConstraint:0x178a9a590 'UIView-Encapsulated-Layout-Width' H:[UIView:0x170380f70(667)]>",
    "<NSLayoutConstraint:0x178a997d0 'UIView-Encapsulated-Layout-Height' V:[UIView:0x170380f70(375)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x170a81040 UIImageView:0x1701fd500.width == UIImageView:0x1701fd500.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.