title: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"
body: <p>I am facing weird issue while try to download file using <code>URLSession</code> and <code>URLSessionConfiguration.background(withIdentifier: Bundle.main.bundleIdentifier!)</code></p>
  <p>While start downloading file using <code>URLSession.downloadTask</code> with background configuration.</p>
  <p>Downloading not working properly in iOS iOS 12.* versions and working properly on newer versions.</p>
  <p>In iOS 12.* versions I found weird issue that after fresh installation from Xcode or AppStore downloading file gives error below.</p>
  <pre><code>2021-02-16 10:25:44.448330+0530 Brain Wellness App[512:141574] Task &lt;546389FE-6503-4F43-A01C-C174A09C2892&gt;.&lt;45&gt; load failed with error Error Domain=NSPOSIXErrorDomain Code=2 &quot;No such file or directory&quot; UserInfo={NSErrorFailingURLStringKey=***, NSErrorFailingURLKey=***, _NSURLErrorRelatedURLSessionTaskErrorKey=(
  &quot;BackgroundDownloadTask &lt;546389FE-6503-4F43-A01C-C174A09C2892&gt;.&lt;45&gt;&quot;,
  &quot;LocalDownloadTask &lt;546389FE-6503-4F43-A01C-C174A09C2892&gt;.&lt;45&gt;&quot;
  ), _NSURLErrorFailingURLSessionTaskErrorKey=BackgroundDownloadTask &lt;546389FE-6503-4F43-A01C-C174A09C2892&gt;.&lt;45&gt;} [2]
  Error is Error Domain=NSPOSIXErrorDomain Code=2 &quot;No such file or directory&quot; UserInfo={NSErrorFailingURLStringKey=***, NSErrorFailingURLKey=***, _NSURLErrorRelatedURLSessionTaskErrorKey=(
  &quot;BackgroundDownloadTask &lt;546389FE-6503-4F43-A01C-C174A09C2892&gt;.&lt;45&gt;&quot;,
  &quot;LocalDownloadTask &lt;546389FE-6503-4F43-A01C-C174A09C2892&gt;.&lt;45&gt;&quot;
  ), _NSURLErrorFailingURLSessionTaskErrorKey=BackgroundDownloadTask &lt;546389FE-6503-4F43-A01C-C174A09C2892&gt;.&lt;45&gt;}
  </code></pre>
  <p>But after closing and relaunching app from Home screen file downloading works normally as it should be.</p>
  <p>Also background download functionality was working normally around 1 month ago in iOS 12.* versions. I am getting above error in iOS 12.* versions from few days only earlier it was working fine.</p>
  <p>Is anyone face this issue earlier and found solutions for this issue ?</p>
  <p>If yes then please help me solve this issue.</p>