I've got one Xcode project (let's call it "first") using another ("second"). The second project is built into static library, and the first project is using this library. I'd want to use linker flag -force_load to that library in first project. The problem is that library is built when I start to compile these projects, so in Xcode library is marked red, and that means I don't know the path where it is. How could I see it? In "build settings" of second project I can see "installation directory" with "usr/local/lib", but when I type "-force_load usr/local/lib/mylib.a" it says that linker could not find file.
When I build only the lib, I can add it to the project, set -force_load and everything seems to be ok, but that is not what I want. I don't want to use -all_load, even if it loads all libraries and I may not to know paths t them.
Thanks!