How to find unused code in Xcode 7?

In left side select Project and in Build Settings

Unused functions, parameters, and values

Unused functions, parameters, and values

Other Warning Flags to -Wall -Wextra -Weverything

Other Warning Flags to -Wall -Wextra -Weverything


To check the unused functions and variables you can also use the following scripts-

https://github.com/PaulTaykalo/swift-scripts


Xcode has a number of settings you can enable to warn you about things like unused functions, parameters, and values.

enter image description here

You can also easily enable strict warnings by setting your Other Warning Flags to -Wall -Wextra -Weverything.

Another option for detecting unused code is by using Code Coverage.