断点调试

1,运行xcode,终端打印

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.
2017-06-10 19:32:19.843 QeelinGold-iOS[15040:7223903] 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. 
(
    "<MASLayoutConstraint:0x1366a8220 UIImageView:0x136709a10.height == 100>",
    "<MASLayoutConstraint:0x136709ee0 UIImageView:0x136709a10.top == UITableViewCellContentView:0x1366a7820.top + 4>",
    "<MASLayoutConstraint:0x13670cd40 UIView:0x13670c1c0.height == 0.3>",
    "<MASLayoutConstraint:0x13670b1a0 UIView:0x13670c1c0.top == UIImageView:0x136709a10.bottom + 15>",
    "<MASLayoutConstraint:0x13670d280 UIView:0x13670c1c0.bottom == UITableViewCellContentView:0x1366a7820.bottom>",
    "<NSLayoutConstraint:0x13670ed70 UITableViewCellContentView:0x1366a7820.height == 119.333>"
)
Will attempt to recover by breaking constraint 
<MASLayoutConstraint:0x1366a8220 UIImageView:0x136709a10.height == 100>
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. 这句话的意思可以添加一个 UIViewAlertForUnsatisfiableConstraints的断点
链接:http://blog.afantree.com/ios/debug-for-uiviewalertforunsatisfiableconstraints.html

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 平常大家在开发项目中,凡是遇到Bug,都会说你打个断点看看问题出在哪里,那么断点到底是什么?它在Xcode编译器中...
    小唐羽锋阅读 32,881评论 5 56
  • 1.断点调试App a.设置常规断点 添加断点:在xcode中代码编辑器中右边单击你想调试的代码处就可以添加断点,...
    炸鸡叔阅读 4,009评论 0 6
  • 转载自http://supermao.cn/duan-dian-shen-ru-liao-jie/转载自http:...
    西木阅读 1,925评论 0 3
  • 公司开新项目,正好想用Swift练练手,这是一个好机会,开发项目的时候写了一些控件,拿出来说说 Swift版本 日...
    残豆阅读 408评论 0 0
  • 没有比漫无目的地徘徊更令人无法忍受的了。 ——荷马 《奥德赛》 在我们的生活中,总会遇到这样的人,在自己的工作...
    风辰子阅读 1,613评论 0 2