2

I am trying to download coreplot using Cocoapods 1.0.1 and it keeps throwing the error 'CorePlot/CorePlot-CocoaTouch.h' file not found i tried various solutions given on the web and nothing worked for me. Do help me figure this out.

Here is a sample of my podfile code

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '7.0'

xcodeproj 'Sample'

pod 'CorePlot', :git => 'https://github.com/core-plot/core-plot.git', :branch => 'release-2.0'
pod 'Google/Analytics'


target 'SampleKIFTests', :exclusive => true do
  pod 'KIF', '~> 3.3.0'
  pod 'KIF/IdentifierTests', '~> 3.3.0'
end
Manju Basha
  • 665
  • 1
  • 9
  • 29
  • See [CorePlot issue #304](https://github.com/core-plot/core-plot/issues/304) for more discussion of this question. – Eric Skroch Sep 15 '16 at 02:50

1 Answers1

0

Use this line to include the header when building as a static library:

#import "CorePlot-CocoaTouch.h"

or this one when building a framework:

#import <CorePlot/CorePlot.h>
Eric Skroch
  • 27,381
  • 3
  • 29
  • 36
  • I tried adding that in Bridging-Header. It didnot work. Is there anything else i should be doing in addition to changing these lines? Tried with `#import ` `#import "CorePlot-CocoaTouch.h"` `#import ` – Manju Basha Sep 14 '16 at 04:43
  • I tried downloading the latest version of Coreplot and the same import statements. It still didnot work – Manju Basha Sep 14 '16 at 04:51
  • I don't think you are supposed to add anything to the Bridging Header. Try adding it to `YourProject-Swift.h`. – koen Sep 15 '16 at 13:30
  • The bridging header is the right place to include the Core Plot headers with a Swift project (that's what the Core Plot example apps do). Make sure the header search paths include the Pods folder that holds the Core Plot source. – Eric Skroch Sep 16 '16 at 01:54