断点未在 Xcode 7 中被击中 [英] Breakpoints not being hit in Xcode 7

查看:30
本文介绍了断点未在 Xcode 7 中被击中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含子项目的 Xcode 项目.升级到 Xcode 7 后,子项目中的断点未命中,我也无法进入子项目的函数调用.有些断点确实被击中,但它们只是显示调用的程序集,因此子项目似乎没有正确符号化.我已经检查了所有常见的事情,即生成调试符号,调试时的构建配置未发布,并且此类性质的事情显示在 Xcode 项目设置中.还有什么我可能会遗漏的吗?在 Xcode 6.4 中,这不是问题.

I have an Xcode project which includes a sub project. After upgrading to Xcode 7 breakpoints in the sub project are not hit nor can I step into functions calls of the sub project. Some breakpoints do get hit but they just show assembly for the call so it seems the sub-project is not being symbolicated correctly. I've checked all the usual sort of things i.e. is generating debug symbols, build configuration on debug is not release and things of this nature shown in Xcode project settings. Anything else I might be missing? In Xcode 6.4 this was not an issue.

推荐答案

这是一个问题,因为在宿主项目中没有设置正确的调试信息格式.我通过创建一个虚拟/测试 Xcode 项目并将每个配置的详细调试文件格式与更改调试信息格式以匹配虚拟/测试项目的麻烦制造项目中的格式进行比较来解决.

This was an issue with not having the correct debug information format set in the hosting project. I resolved by creating a dummy/test Xcode project and comparing the debug file format detailed for each configuration to that in the trouble making project changing the debug information format to match the dummy/test project.

这篇关于断点未在 Xcode 7 中被击中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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