Apple MACh-O Linker Warning "Directory Not Found for Option..."

Apple Mach-O Linker Warning Directory not found

You have to follow these step:

  • Click on your project (targets)
  • Click on Build Settings
  • Under "Library Search Paths", delete the paths
  • Clean your build and run again.

Good Luck !!

How to fix Apple Mach -O-linker warning Directory is not found error

Add this $(DEVELOPER_FRAMEWORKS_DIR) on Framework Search Paths in Build Settings..

Check the Screenshot Image.. maybe its helpful to you..

then clean,build and run..

Framework Search Paths

Apple Mach-O linker warning won't go away

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!

directory not found Apple Mach-O linker warning but Library Search Path and Framework Search Path are empty

Here is a description how to avoid a problem based on Apple Dev Forum posted before. It works for me so I repost description for those people who don't want to go and register at the forum.

The bug is due to an error in XCode 5 when it deals with the user adding new files or folders to the project.

Xcode is modifying the 'Library Search Paths' build setting, and making a god-awful mess of it.
Instead of adding $(SRCROOT)/ it is adding fully rooted paths to all new items, and adding random amounts of /// into other elements of the string.
It also seems to be duplicating source paths in some instances, probably because it's broken the existing ones, and thinks they need adding again.

The solution:

  1. Copy out your Library Search Paths string into a text editor.
  2. Remove any fully rooted paths that shouldn't be there, and replace them with the usual $(SRCROOT)/MyFiles/ type paths.
  3. Remove all extraneous slashes and make sure each path has a " character at beginning and end to protect against spaces in filenames.
  4. Paste the edited string back into Build Settings.
  5. Clean, then Build. Should be back to normal.

This error may well recur if you add new files to your project, so beware.

XCode giving me following Apple Mach-O Linker Warnings

do like

targets -> build settings -->'Framework search Paths' and 'Library Search Paths' delete the particular path which one you want/which one not available and add again.

for more reference

Can someone help me fix this error in Swift Apple Mach-O Linker Error?

Click on Build Settings and under Library Search Paths, delete the paths.

‘ld: warning: directory not found for option’

You need to do this:

  1. Click on your project (targets)
  2. Click on Build Settings
  • if your error includes the -L flag, then delete the values in Library Search Paths
  • if your error includes the -F flag, then delete the values in Framework Search Paths

And regarding the second error, sorry i can't help you out with that one. Hope someone else can help you out.

Apple Mach-O Linker Warning - Framework Search Paths?

I was able to solve it. Easy fix. For other stumbling upon this problem just edit the Framework Search Paths and add quotation marks to words with space.

I.e:
/Users/erik/Documents/Xcode/"Hello Friend"

How to fix this Mach-O Linker issue?

Should have looked harder. The exact answer, in detail, is right here: Apple Mach-O Linker Warning Directory not found



Related Topics



Leave a reply



Submit