title: Relative Paths Not Working in Xcode C++
body: <p>There are numerous post over the net that detail how relative paths don't work in Xcode. I do have an Xcode template that I downloaded where the relative paths DO work, however I have not been able to figure out why nor replicate it in other projects.</p>
  
  <p>Firstly, I am using C++ in Xcode 3.1. I am not using Objective-C, nor any Cocoa/Carbon frameworks, just pure C++.</p>
  
  <p>Here is the code that works in my other Xcode template:</p>
  
  <pre><code>sound-&gt;LoadMusic( (std::string) "Resources/Audio/Pop.wav" );
  </code></pre>
  
  <p>This relative path works for me also in Windows. Running the following command gives me an absolute path to the application's full path:</p>
  
  <pre><code>std::cout &lt;&lt; "Current directory is: " &lt;&lt; getcwd( buffer, 1000) &lt;&lt; "\n";
  </code></pre>
  
  <p>/Applications/myApp</p>
  
  <p>How can we get relative paths to work in an Xcode .app bundle?</p>