nslog停止在xcode中工作 [英] nslog stopped working in xcode
问题描述
我有一个奇怪的问题,可能还有一个错误。我的NSLog语句已完全停止工作,它们甚至在视图中都没有打印加载,应用程序完成了完成等等。所有都变成了棕色(与xcode中的pragma标记颜色相同)并且它们都有一个警告说'表达式结果没用过'。有没有人见过这个或知道该怎么办?我在某种奇怪的模式下运行吗?我正在运行xcode 4.0.2。
I have a strange issue and possibly a bug. My NSLog statements have stopped working completely, they do not print even in view did load, application didfinishlaunching etc. The have all turned a brown colour (the same colour as a pragma mark in xcode) and they all have a warning saying 'expression result unused'. Has anyone ever seen this before or know what to do? Am i running in some kind of weird mode? Im running xcode 4.0.2.
非常感谢
Jules
推荐答案
实际问题是release_build设置为1.所以它没有识别nslog,因为你说它是为发布版本设置的。
The actual problem was the release_build set to 1. So it wasn't recognizing nslog, as you said it was set for a release build.
这篇关于nslog停止在xcode中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!