开发者

Can I get a compiler/Xcode 'warning' when not releasing a retained object in the class dealloc method?

I have been using AppCode recently to circumvent an issue with Xcode in refactoring, and AppCode has nailed for me quite few "oups'es" whereby it warned me of un-released but retained object refs ... sniffing them out correctly through @property 开发者_JS百科specifications too ! (not exactly what I was looking for mind you :) ), but a great help.

I was wondering if such a feature is available in Xcode (am using 4.1.1), and if yes how/where to enable it.


You can perform that kind of check using static analyzer - choose "Analyze" option from Product menu (or shift-cmd-B shortcut)


You could change the mode of analysis for 'Build' to deep under project build settings. By default its set to shallow.

Its located under the heading 'Static Analyzer - Analysis Policy'

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜