Objective-c – Apple Mach-O Linker Warning – Framework Search Paths

objective cxcode

I've stumbled upon an annoying error: Apple Mach-O Linker Warning.

ld: warning: directory not found for option '-F/Users/erik/Documents/Xcode/Hello'

ld: warning: directory not found for option '-FFriend'.

My Project folder is called "Hello Friend".
In my Framework Search Paths it has 4 rows showing:

  • $(inherited)
  • /Users/erik/Documents/Xcode/Hello
  • Friend
  • $(PROJECT_DIR)

It looks like it has divided the word "Hello Friend" into two sections because of the space between the words so I'm thinking that's the explanation?

I've tried to edit it to

  • $(inherited)
  • /Users/erik/Documents/Xcode/Hello Friend
  • $(PROJECT_DIR)

but it jumps back.

Any ideas?

Very much appreciated!

Best Answer

1: Open your Projects

2: Click on Targets

3: Click on Build Settings

4: Click on "Framework Search Paths" or "Library Search Paths" and you should find the bogus paths listed in there, which you can delete.

enter image description here