Apple Mach-O Linker Warning "Directory Not Found For Option..."

Gavin picture Gavin · Jan 5, 2015 · Viewed 60.7k times · Source

I simply want to rid of the warnings that pop up like these:

ld: warning: directory not found for option '-F/Users/m/Desktop/FacebookSDK'
ld: warning: directory not found for option '-F/Users/m/Desktop/FacebookSDK/FBAudienceNetwork'
ld: warning: directory not found for option '-F/Users/gavin/Downloads/shaffiulla11-bat-b86d81d8adc6'
ld: warning: directory not found for option '-F/Users/gavin/Desktop/shaffiulla11-bat-b86d81d8adc6'
ld: warning: ignoring file /Users/Gavin/Desktop/FacebookSDK/Bolts.framework/Bolts, missing required architecture x86_64 in file /Users/Gavin/Desktop/FacebookSDK/Bolts.framework/Bolts (2 slices)

Obviously I am using different directories now because of multiple reformats of my drive because of Logic Board issues and just would like to know the most convenient way I can get rid of these errors. Thanks for the time and help.

Answer

Michael Dautermann picture Michael Dautermann · Jan 5, 2015

Go into your Projects settings and remove the excess Frameworks paths in there that you don't need.

Here's what it looks like when I open my project's build settings:

Open Build Settings

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