-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method doesn't override any method from its superclass #1526
Comments
Compiling for macOS? |
@danielgindi Compiling for Iphone IOS |
I'm having the same issue |
I'm having the same issue compiling for Iphone IOS |
What version of Xcode are you using? |
@danielgindi Xcode 7.3.1 and Xcode 8.0 both try |
You should compile Charts 3.0 only on the latest Xcode 8.0 (not beta!) |
@danielgindi What's the version for Xcode 7.3 and Swift 2.2 |
@danielgindi Charts 2.3.0 has same issue |
@ompagi Chart 2.2.5 with release tags. |
@K24LFY what methods are reporting this? From what I worked on the migration, it looks like you are using wrong code base so you see such issues. |
It looks like you are using cocoapods from the screenshot. So I tested it. I tried all combinations of swift/objective-c project and they all work when using the most recent release (2.3.0). Charts 3.0 is not release so if you have integration problems then you will have to wait until 3.0 is released or always use the most recent code from master. |
I am having this same problem. Xcode 8
Build Error: Method does not override any method from its superclass. If I remove the override, then it says Overriding declaration requires an 'override' keyword |
Ya i'm gonna delete stale branches those are not up to date. You should be using |
@petester42 thanks. Will do. |
Hi, Not too sure where I am missing I downloaded a separate copy of XCode 7.3.1, to open up my original project, using pod 'Charts', '~> 2.3' I get the "Method does not override any method from its superclass" problem Quite confused what is missing |
Try using version 1.1.0 of cocoapods for better Xcode 8 support. 1.0.0 has issues with Xcode 8 |
Same issue here. Xcode 7.3.1 Swift 2.2, pod 2.3.0 |
Faced the same issue in one old project written in Swift 2.3 and compiled by XCode 7.3.1. The issue is that "touchesCancelled" overrides method of UIResponder class: And mistakenly (or not) has the "touches" parameter not as optional as required by the function declaration of UIResponder. |
Try changing: to
|
I have some issue with the function i commented. If i uncomment it, it comes up with the doesn't override issue.
Tried to delete the override keyword and it comes up with .../Pods/Charts/Source/Charts/Utils/ChartPlatform.swift:111:21: Method 'touchesCancelled(:withEvent:)' with Objective-C selector 'touchesCancelled:withEvent:' conflicts with method 'touchesCancelled(:withEvent:)' from superclass 'UIResponder' with the same Objective-C selector
The text was updated successfully, but these errors were encountered: