I am completely at a loss here. I am trying to understand how XCode generates the paths to files I cross link between Projects.
I have a Workspace with 3 Projects, of which Project 3 generates 2 Frameworks and the other two, Project 1 and 2, use one each.
So far, I think I understand that, depending on the selected build target, XCode shows available files throughout the workspace in red or black, depending on their availability in relation to the current build configuration.
For example: Choosing iPhone Simulator for Project 1 in Release Mode as the build target shows a path of both frameworks in Project 3 ending in Release-iphonesimulator. Changing to Debug Mode, their paths also change in replacing Release with Debug.
So far, that's all understandable, the problems start when embedding a framework from Project 3 into Project 1 or 2. In doing so, the embedded framework pops up in the navigator and as an entry under General -> Embedded Binaries. In the navigator, the path links to Release-iphoneos, while in the Embedded Binaries entry it links to Debug-iphoneos. Of course the entry in the navigator is red because the path it's looking at is empty. Furthermore it's not even a simulator path. Another question is which one of the two files will XCode choose, they differ in paths, so how do I know which of them ends up in the build?
So my main question is: How to properly set this up?
Like this it's so error prone, missing a build of a particular framework because I changed something and the reference looks somewhere else....