peripheryapp / periphery

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

Periphery version 3.0.0 b2 fails. #800

Closed rsyncOSX closed 2 months ago

rsyncOSX commented 3 months ago

Version 2.21.0 works, but version 3.0.0.beta2 fails.. See error below

GitHub repository is: https://github.com/rsyncOSX/RsyncUI Xcode 16 beta 6, SWIFT_VERSION = 6 and SWIFT_STRICT_CONCURRENCY = complete set in Xcode

Output from version 2.21.0

/opt/homebrew/bin/periphery scan

Output from version 3.0.0.beta2

ileitch commented 3 months ago

Thanks for trying out the beta. I think the issue is the non-conditional use of build-for-testing. I likely need to bring back some 2.x logic.

rsyncOSX commented 3 months ago

And periphery is a great app, thanks for making it... Without I could not clean my sources...

ileitch commented 2 months ago

It appears the issue is that your project contains 2 unused test targets without any sources. Deleting them fixes the issue.

rsyncOSX commented 2 months ago

Thanks, deleted the two test targets.. Version 3.0.0 b4 works as expected :-) no errors (and no unused code)...