Xcode4: Linker error: Directory not found for option?

Go to "Get Info" on the target. Click the "Build Setting" tab (i using Xcode4), and scroll down to "Search Paths". You del all value in "Library Search Path".

Up vote 1 down vote favorite share g+ share fb share tw.

I'm getting this error for my profile build (debug build was OK). {Directory not found for option '-L../../../Mac/Profile/lib full path of that directory Library not found for -lMyLib} When I check the path, the directory exists and the lib file libMyLib. A exists as well.

My library search path for the Profile build includes that directory $(SRCROOT)/../../../Mac/Profile/lib. I also made sure that the library was built under profile setting. This only happens with profile build.

I'd really love to have some help although it may well be a no-brainer question. Thank you! EDIT: Found the solution myself Solved the problem: In my linker path, there were two directory entries.

The second one was surrounded by double quotes while the first one wasn't. Xcode4 seems to have concatenated them into a single directory entry and apparently that was garbage. After I removed the quotation marks, the linker error was gone.

Osx xcode4 build linker link|improve this question edited Jan 18 at 16:54 asked Jan 18 at 15:16akbuildmaster63.

Go to "Get Info" on the target. Click the "Build Setting" tab (i using Xcode4), and scroll down to "Search Paths". You del all value in "Library Search Path".

Hope that helps...

Even though its over 2 years old I wanted to say thank you: Finally got rid of my problem :) – Blade Mar 6 at 20:43.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions