ld: warning: directory not found for option -L [X]

Tue, 02/21/2012 - 09:59 -- jeff

How to fix Xcode error: ld: warning: directory not found for option -L [X]

This is typically to do an inerrant Library search path. To fix:

  1. Select the Project Target
  2. Select "Build Settings"
  3. Select "Library Search Paths"
  4. Select the offending path and copy it into a text file (in case you need it later)
  5. After copying it, delete it using the "-" minus sign

Clean and build.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.