peripheryapp / periphery

A tool to identify unused code in Swift projects.
MIT License
5.02k stars 178 forks source link

Everything is a false positive when using skip-build and index-store-path #711

Closed kanduvisla closed 2 months ago

kanduvisla commented 5 months ago

I'm currently running into issue #675 , so I was looking for a workaround for that. I though that maybe the combination of --skip-build and --index-store-path might resolve this, and even though it now does seem to scan "something", it marks every class and method of my project as false positives (and I'm fairly certain they are not ;-)).

I'm using XCode 15.0.1 and periphery 2.18.0

ileitch commented 2 months ago

You need to ensure that the command you are using to build your project is building all of the necessary targets and that you pass the same set to --targets. Mostly likely you either didn't build everything or didn't pass all targets to --targets.