peripheryapp / periphery

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

False positive: NSPrincipalClass key is ignored #712

Closed Cykelero closed 2 months ago

Cykelero commented 5 months ago

Summary

Setting a custom principal class (as declared in the Info.plist file under the NSPrincipalClass key) is not recognized by Periphery. This means it can report the class as being unused, even though the class is instantiated by the system on app launch.

Reproducing

ileitch commented 2 months ago

This was fixed in 2.18.0. What version are you using?

Cykelero commented 2 months ago

You're right, I can't reproduce this issue with 2.18.0. I must have been using an older version at the time—sorry!