1

我制作了针对 iOS 6 的 iPhone 应用

我的应用程序运行非常顺利,在启动期间和应用程序的任何地方都没有崩溃。但我的应用程序显示了一些与autolayout.

我尝试了很多来解决这个警告,但我没有成功..

NSLog 中的警告:

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:0xac85e50 h=-&- v=-&- UIViewControllerWrapperView:0xac745f0.height == UINavigationTransitionView:0xab9b110.height - 64>",
    "<NSLayoutConstraint:0xac71d60 V:[UITableView:0xb161200(307)]>",
    "<NSLayoutConstraint:0xac73230 UITableView:0xb161200.bottom == UIView:0xac72b20.bottom>",
    "<NSLayoutConstraint:0xac731b0 V:|-(>=153)-[UITableView:0xb161200]   (Names: '|':UIView:0xac72b20 )>",
    "<NSAutoresizingMaskLayoutConstraint:0xac84610 h=-&- v=-&- UIView:0xac72b20.height == UIViewControllerWrapperView:0xac745f0.height>",
    "<NSAutoresizingMaskLayoutConstraint:0xabcac10 h=-&- v=-&- UILayoutContainerView:0xc085ad0.height == UIWindow:0xc06c990.height>",
    "<NSAutoresizingMaskLayoutConstraint:0xabcca20 h=--- v=--- V:[UIWindow:0xc06c990(568)]>",
    "<NSAutoresizingMaskLayoutConstraint:0xabc8dd0 h=-&- v=-&- UITransitionView:0xc086e40.height == UILayoutContainerView:0xc085ad0.height - 49>",
    "<NSAutoresizingMaskLayoutConstraint:0xabc7660 h=-&- v=-&- UIViewControllerWrapperView:0xab9b5d0.height == UITransitionView:0xc086e40.height>",
    "<NSAutoresizingMaskLayoutConstraint:0xabc42e0 h=-&- v=-&- UINavigationTransitionView:0xab9b110.height == UILayoutContainerView:0xab9b190.height>",
    "<NSAutoresizingMaskLayoutConstraint:0xabc5a00 h=-&- v=-&- UILayoutContainerView:0xab9b190.height == UIViewControllerWrapperView:0xab9b5d0.height>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0xac71d60 V:[UITableView:0xb161200(307)]>

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.

由于这个警告,如果我将它提交到 App Store,我的应用会被拒绝吗?

4

1 回答 1

6

Apple 不会在审批过程中考虑警告。动态检查会查找未记录的方法、私有 API 等。然后还会检查内容。由于我的代码中有第三方库,我也有一些警告,并且我的应用程序都没有因警告而被拒绝。

于 2013-01-31T07:42:50.387 回答