Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行可以了,但是会报很多警告 #11

Open
realcarlos opened this issue May 4, 2016 · 1 comment
Open

运行可以了,但是会报很多警告 #11

realcarlos opened this issue May 4, 2016 · 1 comment

Comments

@realcarlos
Copy link

2016-05-04 15:24:31.521 CFCityPickerVC[17697:4651979] 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)
(
"<NSAutoresizingMaskLayoutConstraint:0x1545ad770 h=-&- v=-&- CFCityPickerVC.HeaderItemView:0x1545985a0.height == UIView:0x1545903e0.height - 344>",
"<NSLayoutConstraint:0x1546434a0 V:|-(8)-[UILabel:0x1547078e0'\U5f53\U524d\U57ce\U5e02'] (Names: '|':CFCityPickerVC.HeaderItemView:0x1545985a0 )>",
"<NSLayoutConstraint:0x154642cb0 V:[UILabel:0x1547078e0'\U5f53\U524d\U57ce\U5e02']-(15)-[CFCityPickerVC.CFCPContentView:0x154598c20]>",
"<NSLayoutConstraint:0x154637570 V:[CFCityPickerVC.CFCPContentView:0x154598c20]-(15)-| (Names: '|':CFCityPickerVC.HeaderItemView:0x1545985a0 )>",
"<NSLayoutConstraint:0x154629ee0 V:|-(10)-[CFCityPickerVC.CitySearchBar:0x1545906c0] (Names: '|':UIView:0x1545903e0 )>",
"<NSLayoutConstraint:0x154631d70 V:[CFCityPickerVC.CitySearchBar:0x1545906c0(36)]>",
"<NSLayoutConstraint:0x154631dc0 V:[CFCityPickerVC.CitySearchBar:0x1545906c0]-(0)-| (Names: '|':UIView:0x1545903e0 )>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x154642cb0 V:[UILabel:0x1547078e0'当前城市']-(15)-[CFCityPickerVC.CFCPContentView:0x154598c20]>

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-05-04 15:24:31.523 CFCityPickerVC[17697:4651979] 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)
(
"<NSAutoresizingMaskLayoutConstraint:0x1545ad770 h=-&- v=-&- CFCityPickerVC.HeaderItemView:0x1545985a0.height == UIView:0x1545903e0.height - 344>",
"<NSLayoutConstraint:0x154629ee0 V:|-(10)-[CFCityPickerVC.CitySearchBar:0x1545906c0] (Names: '|':UIView:0x1545903e0 )>",
"<NSLayoutConstraint:0x154631d70 V:[CFCityPickerVC.CitySearchBar:0x1545906c0(36)]>",
"<NSLayoutConstraint:0x154631dc0 V:[CFCityPickerVC.CitySearchBar:0x1545906c0]-(0)-| (Names: '|':UIView:0x1545903e0 )>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x154631dc0 V:[CFCityPickerVC.CitySearchBar:0x1545906c0]-(0)-| (Names: '|':UIView:0x1545903e0 )>

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-05-04 15:24:31.530 CFCityPickerVC[17697:4651979] 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)
(
"<NSAutoresizingMaskLayoutConstraint:0x1545ade40 h=-&- v=-&- CFCityPickerVC.HeaderItemView:0x1545985a0.width == UIView:0x1545903e0.width>",
"<NSLayoutConstraint:0x1546434f0 UILabel:0x1547078e0'\U5f53\U524d\U57ce\U5e02'.leading == CFCityPickerVC.CFCPContentView:0x154598c20.leading>",
"<NSLayoutConstraint:0x154642d40 H:|-(18)-[UILabel:0x1547078e0'\U5f53\U524d\U57ce\U5e02'] (Names: '|':CFCityPickerVC.HeaderItemView:0x1545985a0 )>",
"<NSLayoutConstraint:0x154642c60 H:[CFCityPickerVC.CFCPContentView:0x154598c20]-(30)-| (Names: '|':CFCityPickerVC.HeaderItemView:0x1545985a0 )>",
"<NSLayoutConstraint:0x1545b3890 'UIView-Encapsulated-Layout-Width' H:[UIView:0x1545903e0(0)]>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1546434f0 UILabel:0x1547078e0'当前城市'.leading == CFCityPickerVC.CFCPContentView:0x154598c20.leading>

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-05-04 15:24:31.534 CFCityPickerVC[17697:4651979] 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)
(
"<NSAutoresizingMaskLayoutConstraint:0x15471fa60 h=-&- v=-&- CFCityPickerVC.HeaderItemView:0x154704520.width == UIView:0x1545903e0.width>",
"<NSLayoutConstraint:0x15470a330 UILabel:0x1547080e0'\U70ed\U95e8\U57ce\U5e02'.leading == CFCityPickerVC.CFCPContentView:0x1547082f0.leading>",
"<NSLayoutConstraint:0x15470a380 H:|-(18)-[UILabel:0x1547080e0'\U70ed\U95e8\U57ce\U5e02'] (Names: '|':CFCityPickerVC.HeaderItemView:0x154704520 )>",
"<NSLayoutConstraint:0x15470a420 H:[CFCityPickerVC.CFCPContentView:0x1547082f0]-(30)-| (Names: '|':CFCityPickerVC.HeaderItemView:0x154704520 )>",
"<NSLayoutConstraint:0x1545b3890 'UIView-Encapsulated-Layout-Width' H:[UIView:0x1545903e0(0)]>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x15470a330 UILabel:0x1547080e0'热门城市'.leading == CFCityPickerVC.CFCPContentView:0x1547082f0.leading>

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-05-04 15:24:31.538 CFCityPickerVC[17697:4651979] 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)
(
"<NSAutoresizingMaskLayoutConstraint:0x1545b1900 h=-&- v=-&- CFCityPickerVC.HeaderItemView:0x1547085d0.width == UIView:0x1545903e0.width>",
"<NSLayoutConstraint:0x154709850 UILabel:0x154708770'\U5386\U53f2\U9009\U62e9'.leading == CFCityPickerVC.CFCPContentView:0x154708d60.leading>",
"<NSLayoutConstraint:0x1547098a0 H:|-(18)-[UILabel:0x154708770'\U5386\U53f2\U9009\U62e9'] (Names: '|':CFCityPickerVC.HeaderItemView:0x1547085d0 )>",
"<NSLayoutConstraint:0x154709940 H:[CFCityPickerVC.CFCPContentView:0x154708d60]-(30)-| (Names: '|':CFCityPickerVC.HeaderItemView:0x1547085d0 )>",
"<NSLayoutConstraint:0x1545b3890 'UIView-Encapsulated-Layout-Width' H:[UIView:0x1545903e0(0)]>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x154709850 UILabel:0x154708770'历史选择'.leading == CFCityPickerVC.CFCPContentView:0x154708d60.leading>

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-05-04 15:24:31.540 CFCityPickerVC[17697:4651979] 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:0x15462a040 H:|-(18)-[CFCityPickerVC.CitySearchBar:0x1545906c0] (Names: '|':UIView:0x1545903e0 )>",
"<NSLayoutConstraint:0x154629ac0 H:[CFCityPickerVC.CitySearchBar:0x1545906c0]-(20)-| (Names: '|':UIView:0x1545903e0 )>",
"<NSLayoutConstraint:0x1545b3890 'UIView-Encapsulated-Layout-Width' H:[UIView:0x1545903e0(0)]>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x154629ac0 H:[CFCityPickerVC.CitySearchBar:0x1545906c0]-(20)-| (Names: '|':UIView:0x1545903e0 )>

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-05-04 15:24:31.545 CFCityPickerVC[17697:4651979] 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)
(
"<NSAutoresizingMaskLayoutConstraint:0x15471fa60 h=-&- v=-&- CFCityPickerVC.HeaderItemView:0x154704520.width == UIView:0x1545903e0.width>",
"<NSLayoutConstraint:0x15470a380 H:|-(18)-[UILabel:0x1547080e0'\U70ed\U95e8\U57ce\U5e02'] (Names: '|':CFCityPickerVC.HeaderItemView:0x154704520 )>",
"<NSLayoutConstraint:0x15470a510 H:[UIView:0x154703d40]-(0)-| (Names: '|':CFCityPickerVC.HeaderItemView:0x154704520 )>",
"<NSLayoutConstraint:0x15470a560 H:[UILabel:0x1547080e0'\U70ed\U95e8\U57ce\U5e02']-(6)-[UIView:0x154703d40]>",
"<NSLayoutConstraint:0x1545b3890 'UIView-Encapsulated-Layout-Width' H:[UIView:0x1545903e0(0)]>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x15470a560 H:[UILabel:0x1547080e0'热门城市']-(6)-[UIView:0x154703d40]>

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-05-04 15:24:31.546 CFCityPickerVC[17697:4651979] 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)
(
"<NSAutoresizingMaskLayoutConstraint:0x1545b1900 h=-&- v=-&- CFCityPickerVC.HeaderItemView:0x1547085d0.width == UIView:0x1545903e0.width>",
"<NSLayoutConstraint:0x1547098a0 H:|-(18)-[UILabel:0x154708770'\U5386\U53f2\U9009\U62e9'] (Names: '|':CFCityPickerVC.HeaderItemView:0x1547085d0 )>",
"<NSLayoutConstraint:0x154709a30 H:[UIView:0x154708ab0]-(0)-| (Names: '|':CFCityPickerVC.HeaderItemView:0x1547085d0 )>",
"<NSLayoutConstraint:0x154709a80 H:[UILabel:0x154708770'\U5386\U53f2\U9009\U62e9']-(6)-[UIView:0x154708ab0]>",
"<NSLayoutConstraint:0x1545b3890 'UIView-Encapsulated-Layout-Width' H:[UIView:0x1545903e0(0)]>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x154709a80 H:[UILabel:0x154708770'历史选择']-(6)-[UIView:0x154708ab0]>

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-05-04 15:24:31.548 CFCityPickerVC[17697:4651979] 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)
(
"<NSAutoresizingMaskLayoutConstraint:0x1545ade40 h=-&- v=-&- CFCityPickerVC.HeaderItemView:0x1545985a0.width == UIView:0x1545903e0.width>",
"<NSLayoutConstraint:0x154642d40 H:|-(18)-[UILabel:0x1547078e0'\U5f53\U524d\U57ce\U5e02'] (Names: '|':CFCityPickerVC.HeaderItemView:0x1545985a0 )>",
"<NSLayoutConstraint:0x1546375c0 H:[UIView:0x154598980]-(0)-| (Names: '|':CFCityPickerVC.HeaderItemView:0x1545985a0 )>",
"<NSLayoutConstraint:0x154704e80 H:[UILabel:0x1547078e0'\U5f53\U524d\U57ce\U5e02']-(6)-[UIView:0x154598980]>",
"<NSLayoutConstraint:0x1545b3890 'UIView-Encapsulated-Layout-Width' H:[UIView:0x1545903e0(0)]>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x154704e80 H:[UILabel:0x1547078e0'当前城市']-(6)-[UIView:0x154598980]>

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.

@akring
Copy link

akring commented May 18, 2016

Autolayout约束冲突了吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants