简体   繁体   English

我如何让Xcode 8.0告诉我究竟哪个约束正在破坏(或如何调试xcode <private> ?)

[英]How do i get Xcode 8.0 to tell me exactly which constraint is breaking (or how to debug xcode <private>?)

I am trying to figure out how to reveal exactly which constraints are breaking in my code. 我试图弄清楚如何在我的代码中确切地揭示哪些约束正在破坏。
However, xcode 8 only returns <private> . 但是,xcode 8仅返回<private>

Any idea how to show these <private> objects? 知道如何显示这些<private>对象吗?

Xcode 8控制台

TLDR; TLDR; The solution is to make sure you app has a signing identity/certificate . 解决方案是确保您的应用程序具有签名身份/证书 ie a mac or ios development identity 即mac或ios开发标识


Got an update from apple saying the issue was officially closed and was not a bug. 得到苹果的更新说这个问题已经正式关闭,并不是一个错误。 Suggesting to use breakpoint debugging to fully understand these objects. 建议使用断点调试来完全理解这些对象。 However going through my app details I noticed for some reason when I updated xCode the signing identities were not transferred. 但是,通过我的应用程序详细信息,我注意到由于某种原因,当我更新xCode时,签名身份未被转移。 I 一世 在此输入图像描述

And now <private> shows exactly what <NSView> or other object I am dealing with 现在<private>显示了我正在处理的<NSView>或其他对象

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM