Я делаю приложение для iPhone с помощью Xcode 5 и iOS 7 на своем телефоне; Приложение работает на прошивке 7. Тем не менее, когда я запустил приложение на iPhone 6.1 симулятора, я получил это сообщение:Приложение iOS не работает на iOS 6 или ниже
2013-09-01 10:46:30.075 Bars[30745:c07] 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:0x81b80a0 h=--- v=--- V:[UIWindow:0x8196f60(480)]>",
"<NSAutoresizingMaskLayoutConstraint:0x81b6910 h=-&- v=-&- UILayoutContainerView:0x8197530.height == UIWindow:0x8196f60.height>",
"<NSAutoresizingMaskLayoutConstraint:0x81b53b0 h=-&- v=-&- UITransitionView:0x75c0830.height == UILayoutContainerView:0x8197530.height - 49>",
"<NSAutoresizingMaskLayoutConstraint:0x81b40f0 h=-&- v=-&- UIViewControllerWrapperView:0x75f38e0.height == UITransitionView:0x75c0830.height>",
"<NSLayoutConstraint:0x75f5d10 V:[UILabel:0x75f6ee0(24)]>",
"<NSAutoresizingMaskLayoutConstraint:0x81b29b0 h=-&- v=-&- UIView:0x75f7500.height == UIViewControllerWrapperView:0x75f38e0.height>",
"<NSLayoutConstraint:0x7578850 V:[UILabel:0x75f7220]-(124)-| (Names: '|':UIView:0x75f7500)>",
"<NSLayoutConstraint:0x75fbfc0 UILabel:0x75f7220.baseline == UILabel:0x75f6ee0.baseline>",
"<NSLayoutConstraint:0x75fbcc0 V:[UIView:0x75f3ab0]-(11)-[UILabel:0x75f6ee0]>",
"<NSLayoutConstraint:0x75fbe40 V:|-(321)-[UIView:0x75f7160] (Names: '|':UIView:0x75f7500)>",
"<NSLayoutConstraint:0x75fbe80 UIView:0x75f7160.top == UIView:0x75f3ab0.top>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x75f5d10 V:[UILabel:0x75f6ee0(24)]>
Break on objc_exception_throw to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
Я попытался удалить все ограничения, но я получил ошибки говоря мне нужно ограничение. Я новичок в Objective-C, поэтому я не знаю, как их читать. Если бы вы могли сделать свой ответ очень простым, это было бы очень полезно!
Общёчателю нужна помощь в решении проблемы с Autolayout. Напомнив ему, что «старая» система кадров, пружин и распорок все еще существует, безусловно, не плохая идея, я не думаю, что это адекватное решение его проблемы. –
Мы должны иметь отрицательные награды за все эти бесполезные ответы «не использовать автозапуск». –
@MatthiasBauch Я считаю, что мы вроде уже делаем: Downvoting. – marko