0

I am trying to use CorePlot with cocoapods version 0.38.2. I am pulling CorePlot using pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git', :branch => 'release-2.0'

In my bridging file, I used

#import "CorePlot-CocoaTouch.h"

Here I am getting an error

"CorePlot-CocoaTouch.h" file not found.

Please tell me if there are any changes need to be done.

Thanks in advance.

Tej
  • 52
  • 8

1 Answers1

0

The podfile should include the use_frameworks! line. With Core Plot built as a framework, the import statement should be:

#import "CorePlot.h"

See the answers to this question for more troubleshooting tips for Swift projects that use Objective-C pods.

Community
  • 1
  • 1
Eric Skroch
  • 27,381
  • 3
  • 29
  • 36