Xcode 缺少内联测试结果
代码编辑器中随处可见内联显示失败测试的漂亮图片,例如 Peepcodes Objective- C for Rubyist 截屏视频 以及苹果自己的技术文档 :
(来源:apple.com)
当我构建测试目标时,我得到的只是右上角的一个红色小图标,表明出现了问题。单击它时,我会得到“构建结果”,我可以在其中开始寻找测试结果。
有人知道出了什么问题吗?
Everywhere there are pretty pictures of failing tests shown inline in the code editor, like in Peepcodes Objective-C for Rubyist screencast and in apples own technical documentation:
(source: apple.com)
When I build my test-target, all I get is a little red icon down in the right corner, stating something went wrong. When clicking on it, I get the Build Results, where I can start to hunt for test results.
Do anyone have a clue on what´s wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
查看您的 Xcode 首选项。在“构建”选项卡下,您想要更改消息气泡的设置。
这适用于 Xcode 3.1,它看起来像您显示的图像。 Xcode 3.2 有不同风格的气泡并且没有这种首选项。
Have a look at your Xcode preferences. Under the Building tab you want to change your settings for Message Bubbles.
This works for Xcode 3.1 which it looks like the image you've shown. Xcode 3.2 has a different style of bubble and doesn't have this preference.
按“Cmd =”在构建结果之间移动,您应该看到一条警告。
此外,该特定警告似乎来自静态分析器 - 您可以通过转到项目首选项并选中“运行静态分析器”或使用“构建和分析”选项来打开它。
Press "Cmd =" to travel between build results, you should see a warning.
Also, that specific warning seems like it's from the static analyzer - you turn that on by going to project preferences and checkmarking "run static analyzer" or by using the "Build and Analyze" option.
尝试使用 Cmd-Shift-H 显示所有消息气泡。
Try Cmd-Shift-H to show all message bubbles.