title: Xcode - iOS app - refactored and now have bizarre, cascading directory structure
body: <p>This is an odd one.</p>
  
  <p>I recently did some refactoring and one of my images was failing to load. I did a search on the filesystem only to find Xcode has now generated the following cascading directory structure:</p>
  
  <pre><code>./myIcon.png
  ./MyApp/myIcon.png
  ./MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  ./MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/MyApp/myIcon.png
  </code></pre>
  
  <p>I'm going to have to go back through my git logs to track down exactly when and how this happened. Is there a quicker/better way of fixing this?</p>
  
  <p>And bonus points for any idea why it happened!</p>