I can’t seem to make Xcode find the Core Plot header. I’ve done the following:
- Clone the hg repo;
- Drag the CorePlot-CocoaTouch.xcodeproj file into my project;
- Opened the CP project and compiled it successfully;
- Dragged the lib file into the target’s static link list;
- Added CorePlot-CocoaTouch as a direct dependency for the target.
But I’m still getting the “CorePlot-CocoaTouch.h: No such file or directory” error on compile. I’ve been googling around trying to find an answer, but only seem to find a few people having the same problem but no clear solution. What have I missed?
The answers I needed are shown on this blog post, although I found I could use a relative location for the header search path rather than an absolute one. Also don’t forget to add
-ObjCto the linker flags, as well as-all_loaduntil the bug has been fixed (see this comment).