如何陷阱UIViewAlertForUnsatisfiableConstraints? [英] How to trap on UIViewAlertForUnsatisfiableConstraints?

查看:1282
本文介绍了如何陷阱UIViewAlertForUnsatisfiableConstraints?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在调试器日志中看到错误:

I'm seeing an error appear in my debugger log:

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x191f0920 H:[MPKnockoutButton:0x17a876b0]-(34)-[MPDetailSlider:0x17a8bc50](LTR)>

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.

如何陷阱该电话?它不会出现在我的代码中的任何位置。

How do I trap on that call? It does not appear anywhere in my code.

推荐答案

您将需要添加符号断点。 Apple提供了有关如何执行此操作的优秀指南

You'll want to add a Symbolic Breakpoint. Apple provides an excellent guide on how to do this.


  1. 打开Breakpoint Navigator cmd + 7

  2. 点击左下角的添加按钮

  3. 选择添加符号断点...

  4. 只要输入 UIViewAlertForUnsatisfiableConstraints

  1. Open the Breakpoint Navigator cmd+7
  2. Click the Add button in the lower left
  3. Select Add Symbolic Breakpoint...
  4. Where it says Symbol just type in UIViewAlertForUnsatisfiableConstraints

您也可以像任何其他断点一样处理它,打开和关闭它,添加操作或记录消息。

You can also treat it like any other breakpoint, turning it on and off, adding actions, or log messages.

这篇关于如何陷阱UIViewAlertForUnsatisfiableConstraints?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆