StefWG
StefWG

Reputation: 61

Adding SwiftCharts

I am trying to add SwiftCharts to create a bar chart in my project, and after watching a bunch of tutorials and trying multiple things it still isn't working.

As of now, the SwiftCharts.xcodeproj is embedded in my project. The SwiftCharts.framework is selected in the Embedded binaries and Linked Frameworks andLibraries. In my code I use this: import SwiftCharts but I get the error :

No Such Module 'SwiftCharts'

What am missing? Thanks for the help.

Upvotes: 1

Views: 775

Answers (1)

Wayne
Wayne

Reputation: 3519

Please make sure you have done the following:

  1. You made your project pod aware. Run "pod init" in your project dir.
  2. You have added this to your PodFile: use_frameworks! pod 'SwiftCharts', '~> 0.4'
  3. ran "pod install" to install the SwiftCharts

And most importantly open the "workspace file" not the "project file" with Xcode.

Upvotes: 3

Related Questions