Question

I have had this Apple Mach-O linker warning in my project for a few days now. It is more annoying than anything, but I fear that it may somehow be affecting my app's performance (I have had so many weird issues with Xcode, that I wouldn't doubt anything at this point). The warning says:

warning: directory not found for option '-L/Volumes/ZBarSDK/ZBarSDK'

I have no idea what can be causing this or how to fix it. I have a folder in my app called ZBarSDK, but adding another ZBarSDK does not fix the problem! I tried searching my computer for a Volumes folder with no luck, either it's not there, or Apple hid it pretty well. Please let me know what I can do to fix this

Was it helpful?

Solution

What I needed to do:

  1. Click on your project (targets)
  2. Click on Build Settings Under Library Search Paths
  3. delete the path

Worked wonders!

OTHER TIPS

I found the reference which I had to delete at:

  • Target
  • Build Settings
  • Header Search Paths

Mine was under Framework Search Paths.

The easiest way to find where the bad path is, is to type a part of it in the search box on the top right. That will filter the list to only that one bad path. Deleting it, as the other answers suggest, fixes the problem.

See this answer for more info.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top