title: controlling mainBundle resource paths iOS development
body: <p>I am trying to set up an ipad app that relies on using javascript for part of its functionality. I need to have the files in a folder named javascript to have some code I am using work properly.</p>
  
  <p>I have created a symlink from my javascript files into the folder I set up and have included the files in the copy bundle resources in the appropriate build phase.</p>
  
  <p>My issue is that under that section xcode says the files are in javascript/...
  So in theory everything should be in the right folder. However, in my code I am using</p>
  
  <pre><code>[NSBundle mainBundle] pathForResource: pathName ofType:nil]]
  </code></pre>
  
  <p>and it returns nil when I set the path to the file in the file path and name listed in xCode.</p>
  
  <p>Is there something I am not doing right to the app to have to proper file path names? </p>
  
  <p>I am using the ipad simulator and xCode 5</p>