title: How do fix the "Cannot find 'NSFetchRequest' in scope error
body: <p>I have tried to make an NSFetchRequest in many different ways and each time I get this error:</p>
  <p>&quot;Cannot find type 'NSFetchRequest' in scope&quot;</p>
  <p>Here are the specific ways I have tried:</p>
  <pre><code>let fetchRequest: NSFetchRequest&lt;NSFetchRequestResult&gt; = NSFetchRequest(entityName: &quot;Task&quot;)
  
  let fetchRequest: NSFetchRequest&lt;Task&gt; = Task.NSFetchRequest()
  
  let fetchRequest = Task.fetchRequest() as! NSFetchRequest&lt;Task&gt;
  </code></pre>
  <p>Any idea why this is giving me this error? I know it's unlikely;iklely but I'm on the Xcode 12 beta, could this be a bug with Xcode? I followed a tutorial as I am just learning SwiftUI (and Swift in general) and so it would seem to me this code should work. I have looked in many places to try to find an answer to this so if it's obvious, I'm sorry I missed it.</p>