Kiron
Kiron

Reputation: 378

CorePlot-CocoaTouch.h file not found

I'm developing an app in which a graph is drawn using coreplot. When I run the project on the system in which it is developed there is no problem. When I move it to other system and then take a build it shows the following error

CorePlot-CocoaTouch.h file not found

How can i solve it?

I'm not able to create ipa of this project too. I'm now creating it from build products. Any help is appreciated.

Thanks

Upvotes: 1

Views: 4996

Answers (5)

Mike
Mike

Reputation: 11

For core-plot version 2.4 I did this to get it to compile:

  1. In "targets->Build settings->Header Search Paths" I added core-plot/CocoaPods

  2. I replaced:

    #import "CorePlot-CocoaTouch.h"

with:

#import "CorePlot.h"

Upvotes: 0

Thiru
Thiru

Reputation: 417

I am using Xcode 10 and I was getting this error, what worked for me is that setting "User Header search path" with the same values as the "Header search path", I am using an old version of CorePlot and they imported the CorePlot-CocoaTouch.h using quotest hence I believe XCode is looking @ User Header search path to search the header files.

Upvotes: 0

Baki
Baki

Reputation: 610

Use this import instead if you're using CorePlot 2:

#import <CorePlot/ios/CorePlot.h>

Other solution that I found to work is to add

use_frameworks!

to your Podfile. This way you can use import like this:

#import <CorePlot/CorePlot.h>

Upvotes: 4

DivineDesert
DivineDesert

Reputation: 6954

You need to set header search paths and library search paths.
Please refer this link to know how to do that..

Upvotes: 1

Tekaya Marouene
Tekaya Marouene

Reputation: 620

There is an other solution is to add the header search path /core-plot-master/framework, then when others error appear select recursive in front of the added search path, this worked for me.

Upvotes: 0

Related Questions