When overriding the following seek functions in a custom subclass of AVPlayerItem, a "method does not override method from its superclass" error occurs, causing the build to fail. This issue only happens after updating to Xcode 16. Do you have any suggestions on how to fix it?
https://developer.apple.com/documentation/avfoundation/avplayeritem/seek(to:completionhandler:)-91gnw
https://developer.apple.com/documentation/avfoundation/avplayeritem/seek(to:tolerancebefore:toleranceafter:completionhandler:)
(This error disappears 3 seconds after the build fails or temporarily disappears when the function's position in the file is changed.)
Post
Replies
Boosts
Views
Activity
According to Increasing Performance by Reducing Dynamic Dispatch, addding 'final' keyword increase runtime performance by reducing dynamic dispatch.
I'm wondering if adding 'final' keyword will also improve compile time.
read such opinions in some articels, but not clear to me.
I tested it, and it seems to me 'final' not affect compile time.