Question

When I compile my iPhone application I get lots of errors, but the one that looks the most obvious to me is this link error:

ld: warning: directory '/Users/username/Documents/iPhone/MyAppName/../../core-plot/framework/build/Debug-iphonesimulator' following -L not found

I know the above path is wrong.

The correct path is:

/Users/username/Documents/iPhone/MyAppName/../core-plot/framework/build/Debug-iphonesimulator

I'd love to point to the right location, but I have no clue where this wrong path info is coming from. I have looked at every field in Project Settings and Target Settings but they're correct because they use "../" instead of "../../" Any suggestions on where I can correct this? Thanks.

Was it helpful?

Solution

This should take care of itself if you've correctly configured your project. Follow the core-plot project instructions on using CorePlot in an iPhone app, which are illustrated with screenshots here.

In short:

  • Drag the Core Plot project file into your project's group browser.
  • Drag the library that will show up as a child of the project file under the "Link Binaries with Libraries" build phase for your application's build target.
  • Update the Header Search Path in your application's build configuration to include the Core Plot headers.
  • Add -ObjC to the Other Linker Flags application build configuration setting.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top