Find Unused code and variables

How can I find unused code and any other unused objects? I want to use Xcode