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…
- Click on your project (targets)
- Click on Build Settings, Search for “Library Search Paths”
- 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…
- Click on your project (targets)
- Click on Build Settings, Search for “Framework Search Paths”
- Under Framework Search Paths, delete the paths and keep the “$(inherited)”.
- This might happen when you move the referenced file around.
Refer the below image for clarification.
Clean and Build the project, Now the error will be gone.