Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I fix the directory not found for option -F error [duplicate]

Tags:

I'm receiving the following error:

ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'

How do I fix this without removing the framework search path? I need the framework search path for my AdMob framework.

like image 978
MGames Avatar asked Sep 20 '15 06:09

MGames


People also ask

What does duplicate symbol mean in C++?

Duplicate symbols occur when you have both added an implementation file (. cpp) to your project and #included it. This way, the implementation file (. cpp) gets compiled twice: once as a module in your project (as it is added to your project) and subsequently as a piece of #included code.

What does 1 duplicate symbol for architecture x86_64 mean?

Well, it means we're trying to link the same symbol name (in our case, a method) from two (or more) different source files. The fix was easy: rename one of the methods by updating the header file, the source file (. c or .

How do I turn off no common blocks in Xcode?

One was to navigate to Diary in project navigator, select Build Settings, scroll down to Apple LLVM 6.1 Code Generation and change the No common blocks option to No .


1 Answers

I fixed it! Since my project is migrated from a previous version of Xcode, I had to clear the value in Framework Search Path, which is in Build Settings under Search Paths.

The old value was something like $(inherited) $(PROJECT_DIR)/MyProject and I simply deleted it.

like image 86
MGames Avatar answered Oct 24 '22 13:10

MGames