Workspace - not finding implicit dependencies

Using XCode 7.0.1 and OSX 10.10.5.


I have a workspace with 2 projects, say A and B (projects - not frameworks or libraries). To investigate whether it all works, the main.mm of Project B (a Cocoa application) includes .h files from project A (which is a C++ command-line project)

When I try to build the target of product B, I get an error that the .h files of A cannot be found. But they are in the workspace, and I can see the code.


I thought these implicit dependencies were supposed to be resolved automatically. If I open project B by itself, I cannot add a dependency on project A, as project A is not a library or framework.


What is the magic to make this workspace work as advertised? (Also, if this header problem can be fixed, and if I'm going to have a link problem, perhaps address that issue as well.)


Further info: Project A builds and runs fine both in the workspace and stand-alone. In the workspace schemes of both projects, the text box to find implicit dependencies is checked.

I realize my question has been asked previously, but usually frameworks/libraries are involved. I have seen nothing which addresses the issue of only projects. (Please do not address the mixing of objective-C and C++ (unless relevant to my #include problem) - I can make these work together just fine.) I want to be able to modify the individual projects as I develop large applications, and I understand I should be able to do that in a workspace.


Thanks in advance.

I have added the path to the header , both in Header Search Paths and User Header Search Paths, for the individual B project, but this does not work either for the individual projet or in the workspace. (I also set "always search user paths" to YES).

OK, I got the header files to work finally - they are included in the individual project and for the project in the workspace.


Now I'm getting linker errors, unknown symbols corresponding to the methods in the .cpp files whose headers are included. I only see the -l flag, but that is for libraries. I need to compile and link in .m, .mm and .cpp files from other projects. How would I do that?

Workspace - not finding implicit dependencies
 
 
Q