title: Application runs fine when built from Xcode, won't run directly from the .app
body: <p>Working on a c++ mac application in Xcode. When I hit run everything is fine (debug and release mode). But when I go into finder into the Products/Release folder and double click on the .app directly, the app immediately closes with an error (application quit unexpectedly. click report to see more detailed information). When I click report, the line of code it errors on <em>seems</em> to indicate that it isn't finding my resource files, but it finds them fine when I build/run the same exact app <em>from</em> xcode. heres an example of how i use the resource files in the code:</p>
  
  <pre><code>std::ifstream file;
  file.open("AppName.app/Contents/Resources/Saves/1.svd");
  //do stuff
  file.close();
  </code></pre>
  
  <p>anyone have any ideas why double clicking the .app that xcode just created would have different results than running it from xcode?</p>
  
  <p>also not sure if this is part of the issue, but it seems strange that I have to reference the resource folder from outside the .app file (AppName.app/Contents/Resources/Saves/1.svd). I would expect that path to be relative to the executable in .app/Contents/MacOS like this (../Resources/Saves/1.svd) but that didnt work either.</p>