
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
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
pod 'Charts', git: 'https://github.com/danielgindi/Charts.git', branch: 'Chart2.2.5-Swift2.3'
public final override func touchesCancelled(touches: Set<NSUITouch>, withEvent event: NSUIEvent?)
{
self.nsuiTouchesCancelled(touches, withEvent: event)
}
_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 pod 'Charts', '~> 2.3' for swift 2.3
@petester42 thanks. Will do.
Hi,
I have tried the methods above, on Xcode 8, using Swift 2.3, updated pod as 2.3 also but still gets this:
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
Not too sure where I am missing
My own codes has been converted to 2.3 using Xcode, but I did not pick Charts frame work in the prompt (for auto convert)

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:
public func touchesCancelled(touches: Set
And mistakenly (or not) has the "touches" parameter not as optional as required by the function declaration of UIResponder.
Correcting the "touches: Set
Try changing:
public final override func touchesCancelled(touches: Set<NSUITouch>, withEvent event: NSUIEvent?)
to
public final override func touchesCancelled(touches: Set<NSUITouch>?, withEvent event: NSUIEvent?)
Most helpful comment
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:?, withEvent event: UIEvent?)
public func touchesCancelled(touches: Set
And mistakenly (or not) has the "touches" parameter not as optional as required by the function declaration of UIResponder." to "touches: Set?" helps to resolve the issue. Though I'm not sure if it can introduce other incompatibility issues with earlier versions of CocoaTouch. I'm not sure when exactly Apple changed the declaration of touchesCancelled.
Correcting the "touches: Set