title: NSBundle.mainBundle().URLForResource("bach1", withExtension: "jpg") returning null
body: <pre><code>NSBundle.mainBundle().URLForResource("bach1", withExtension: "jpg")
  </code></pre>
  
  <p>The above code is returning null.</p>
  
  <p>In order to check if the file exists or not, I used below code:</p>
  
  <pre><code>let fileManager = NSFileManager.defaultManager()
  
  if fileManager.fileExistsAtPath(savepath) {
    println("exist")
  }
  </code></pre>
  
  <p>The above code returns that file exists in directory.</p>
  
  <p>So I don't understand why the first code is returning null</p>