Skip to content

Method does not override any method from its superclass #33

@maxhis

Description

@maxhis

I subclass the BottomPopupViewController and override the following 3 methods. I can be built on my local, but failed on the build server with Fastlane. The following errors occurred:


�[31m❌  �[0mPositionSelectViewController.swift:58:19: �[31mmethod does not override any method from its superclass�[0m

    override func getPopupHeight() -> CGFloat {
�[36m                                       ^�[0m



�[31m❌  �[0mPositionSelectViewController.swift:62:19: �[31mmethod does not override any method from its superclass�[0m

    override func getPopupPresentDuration() -> Double {
�[36m    ~~~~~~~~      ^�[0m



�[31m❌  �[0mPositionSelectViewController.swift:66:19: �[31mmethod does not override any method from its superclass�[0m

    override func getPopupDismissDuration() -> Double {

The weird thing is it can be built if I delete the override keyword of the methods(of course the functions take no effects), which lead build fail on my local.

Both my local Mac and the build server running Xcode Version 11.3.1 (11C504) with CocoaPods version 1.8.4.

Invested two days for the issue, and can't get it to work on both sides. Any help or advice will be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions