Unused code (Code inspection)

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.

0
4 comments
Avatar
Permanently deleted user

Can we please have some sample code?

0

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.

0
Avatar
Permanently deleted user

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.

0

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.

0

Please sign in to leave a comment.