Unused code (Code inspection) Follow Profetas Created May 04, 2011 22:09 I got many false positives with code inspection. I used the code inspection to do some cleanning but when I compiled with Xcode I had to roll back many of my changes.
Can we please have some sample code?
Please provide the example, or at least the idea what is shown as unused incorrectly in Appcode (methods, properties, parameters, etc) and the compiler error log. Thanks.
A bit late, but I found you must be aware of code controlled by #defines and build settings. If the code is not in scope for the current target, such as release builds, it'll flag code as unused, when it is only unused for that particular target.
These warnings will be suppressed in the next release of AppCode, which is coming soon. We expect to start the EAP in the end of the month.