Reputation: 378
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
Reputation: 11
For core-plot version 2.4 I did this to get it to compile:
In "targets->Build settings->Header Search Paths" I added core-plot/CocoaPods
I replaced:
#import "CorePlot-CocoaTouch.h"
with:
#import "CorePlot.h"
Upvotes: 0
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
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
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
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