title: Bundle.main.path(forResource:) returns nil
body: <p>For reasons unknown to me I cannot locate file:</p>
  
  <pre><code>let bundlePath = Bundle.main.path(forResource: "REGION_DETAILS_41", ofType: ".zip")
  </code></pre>
  
  <p>It's strange, because when I list all files present in resources directory, it is there. I can find other files, but not this one.
  I've also tried different configurations of searching, like:</p>
  
  <pre><code>let bundlePath = Bundle.main.path(forResource: "REGION_DETAILS_41.zip", ofType: nil)
  let bundlePath = Bundle.main.path(forResource: "REGION_DETAILS_41.zip", ofType: "")
  </code></pre>
  
  <p>but with no success.</p>
  
  <p>EDIT:
  The following fails as well:</p>
  
  <pre><code>Bundle.main.path(forResource: "REGION_DETAILS_41", ofType: "zip")
  </code></pre>
  
  <p>EDIT2:
  I verify if it's present there by checking what is my resources folder and checking its contents:</p>
  
  <pre><code>Bundle.main.resourcePath
  FileManager.default.contentsOfDirectory(atPath: myResourcesFolder)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/1Y6uH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1Y6uH.png" alt="enter image description here"></a></p>
  
  <p>Also I've checked in finder it's actually there.</p>
  
  <p>It is included in copy Bundle Resources:</p>
  
  <p><a href="https://i.stack.imgur.com/yfyga.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yfyga.png" alt="enter image description here"></a></p>