Closed AllDmeat closed 1 month ago
I'm also seeing this with other functions that override library types.
For example UITableViewController/UICollectionViewController functions:
warning: Function 'tableView(_:heightForRowAt:)' is unused
warning: Function 'tableView(_:estimatedHeightForRowAt:)' is unused
warning: Function 'numberOfSections(in:)' is unused
warning: Function 'tableView(_:numberOfRowsInSection:)' is unused
warning: Function 'tableView(_:willDisplay:forRowAt:)' is unused
warning: Function 'tableView(_:cellForRowAt:)' is unused
warning: Function 'tableView(_:didSelectRowAt:)' is unused
NSObject:
warning: Function 'isEqual(_:)' is unused
warning: Property 'hash' is unused
And other random overridden functions:
warning: Function 'layoutSublayers(of:)' is unused
warning: Property 'insertDictationResultPlaceholder' is unused
warning: Function 'removeDictationResultPlaceholder(_:willInsertResult:)' is unused
warning: Function 'attachmentBounds(for:proposedLineFragment:glyphPosition:characterIndex:)'
warning: Function 'caretRect(for:)' is unused
warning: Function 'paste(_:)' is unused
Me too, on a real project a got 750+ errors after switching to Xcode 16 (zero errors on Xcode 15)
The issue is closed, but no new release is available. When are you planning to make it?
After upgrading to Xcode 16.0 I've started receiving warnings about
traitCollectionDidChange(_:)
being unused, despite it's being actually used. It became deprecated, but iOS still executes it both on iOS 17 and iOS 18. You can set a breakpoint and get a proof.macOS: 15.0 Xcode: 16.0 Xcode project: created using Xcode 15.0 Periphery version: 2.21.0
periphery scan
result:PeripheryExample.zip