Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apple Mach-O Linker Warning - Framework Search Paths?

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!

like image 900
fisher Avatar asked Jan 08 '14 15:01

fisher


2 Answers

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"

like image 129
fisher Avatar answered Oct 02 '22 21:10

fisher


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

like image 34
Rizwan Shah Avatar answered Oct 02 '22 22:10

Rizwan Shah