ld: warning: directory not found for option -F or -L, Xcode Error – Solved.

By | April 15, 2016

There are two errors like this that often happens with the Xcode.

If it is a “directory not found for option ‘-L/…” error, that means it’s a Library Error,
then Follow the below steps…

  1. Click on your project (targets)
  2. Click on Build Settings, Search for “Library Search Paths”
  3. Under Library Search Paths, delete the paths and keep the “$(inherited)”

If it is a “directory not found for option ‘-F/…”, that means it’s a Framework Error,
then Follow the below steps…

  1. Click on your project (targets)
  2. Click on Build Settings, Search for “Framework Search Paths”
  3. Under Framework Search Paths, delete the paths and keep the “$(inherited)”.
  4. This might happen when you move the referenced file around.

Refer the below image for clarification.

XCode Error iOS

Clean and Build the project, Now the error will be gone.

Leave a Reply

Your email address will not be published. Required fields are marked *