Reputation: 197
I'm working on an application in which I need to use CorePlot
. I downloaded the last version of it, and added the CorePlot
headers folder and lib.a
file to my project.
I correctly add
#import "CorePlot-CocoaTouch.h"
in my view controller, and remove the library search path and framework search path from my project.
However, I still have the error:
ld: library not found for -lCorePlot-CocoaTouch
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What would be the problem be?
Thanks for your help
Upvotes: 2
Views: 4896
Reputation: 967
I had the same error and I found out that I didn't open the project properly. Instead of double clicking on the project.xcodeproj file. Go to Xcode.
Go to File > Open and navigate to the root directory of your project. Press open when the xcode.proj is visible and it should work.
Upvotes: 1