Swapnil Dhanwal
Swapnil Dhanwal

Reputation: 399

Unable to use Charts framework in Xcode

I installed Charts via cocoapods to an Xcode project but I get the following errors on building it: 'No such module Charts' and 'ChartPlatform.swift : Method does not override any method from its superclass'. I made sure to uncomment 'use_frameworks', in the podfile and open the project using the xcworkspace file. Not sure where I went wrong. I've always installed pods the same way and haven't had problems till today. How can I fix this?

Upvotes: 0

Views: 2736

Answers (2)

Mujahid Latif
Mujahid Latif

Reputation: 616

In my case I just removed Charts.framework from Embedded Binaries and then added again rebuild the project (Cmd+B) the error has gone.

Remove and add again

Upvotes: 0

K. Oliva
K. Oliva

Reputation: 36

I ran into the same problem because I was using an older version of Xcode. The Charts framework only works with Xcode 8 and swift versions 2.3 or 3.0. Try updating and see if that fixes the issue.

Upvotes: 2

Related Questions