title: Git Submodule Files showing red in XCode when moving to different Mac
body: <p>Here are the details of my problem:</p>
  
  <p>I have a directory structure that looks like:</p>
  
  <p><img src="https://i.stack.imgur.com/bTWnh.png" alt="enter image description here"></p>
  
  <p>where <code>ios-src</code> is all my project and source files and <code>ios-libs</code> is where all my git submodules live.</p>
  
  <p>When I clone the project to a different machine, all the files in the ios-libs directory show up as red (or missing) in XCode (v4.3.2), however the files are present on disk.</p>
  
  <p>If I delete the files from XCode and re-add them, it DOES NOT fix the problem, they are still red and the project doesn't compile.  </p>
  
  <p>The directories are all marked as <code>Relative to Group</code>.  </p>
  
  <p>If I choose the file in the inspector I get this:</p>
  
  <p><img src="https://i.stack.imgur.com/W681u.png" alt="enter image description here"></p>
  
  <p>Which reveals the wrong relative path.  If I choose the browse button (to the right of the path) and correct it I get the correct relative path:</p>
  
  <p><img src="https://i.stack.imgur.com/aSd8L.png" alt="enter image description here"></p>
  
  <p>That fixes it until I go to back to the original (my home) machine.  Also, if I move the <code>ios-lib</code> directory to be under <code>ios-src</code> it fixes the problem, but that is a workaround and I want to know the solution.</p>
  
  <p>It seems that I have something setup wrong on my home computer as it only seems to happen when I create projects there.  If I create the project on any one of my other computers, the projects work on everyone one of my machines including my home one.  They are all running Lion and the same XCode version.</p>
  
  <p>Any ideas on what I can do to resolve this problem is greatly appreciated.  I have spent a good amount of time trying to figure it out to no avail.</p>