wm.p1us wm.p1us - 7 months ago 22
Swift Question

Why I can't just use class from Pod of CocoaPods

I have installed Pod to use iOS Charts but stuck at the first line of code!
enter image description here

tried build and clean project - nothing
Tried to link binary with libraries with Charts-framework and then import Charts but there is warning that my project is inside of Charts module so import is ignored.

Can't understand why this class (or other classes from this pod) is not visible for main project?

Answer

According to the lib, the pod has been written in swift so make sure your pod file has use_frameworks! command in it.

Also currently the project name and the pod name are same that is Charts. This can lead to path issues. please solve that by changing name of the project. It will work