title: NSFetchedResultsController Crash When Setting the Controller
body: <p>Here is my code I'm running and I used console messages to pinpoint that it crashes right when the let frc command is running.  Interestingly enough I have another project where I'm using more or less the same code and it works but I can't tell what I'm doing any differently.  Was hoping maybe someone here had some possible insight into this?</p>
  
  <pre><code>//Create fetchedResultsController to handle Inventory Core Data Operations
      lazy var fetchedResultsController: NSFetchedResultsController&lt;Workorders&gt; = {
          return self.setFetchedResultsController()
      }()
  func setFetchedResultsController() -&gt; NSFetchedResultsController&lt;Workorders&gt;{
          print("setFetchedResultsController()")
  
          let context = gm_getContext()
          let workordersFetchRequest: NSFetchRequest&lt;Workorders&gt; = Workorders.fetchRequest()
  
          print("set fetch request")
  
          let frc = NSFetchedResultsController &lt;Workorders&gt;(
              fetchRequest: workordersFetchRequest,
              managedObjectContext: context,
              sectionNameKeyPath: nil,
              cacheName: nil)
  
          print("set the frc")
  
          frc.delegate = self
  
          return frc
      }
  </code></pre>
  
  <p>I've looked into the documentation for Apple and it says I can set sectionNameKeyPath to nil and cache to nil, so I'm not sure what I'm doing wrong. </p>
  
  <p><a href="https://i.stack.imgur.com/24s6Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/24s6Y.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/J1TOP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J1TOP.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/quvSI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/quvSI.png" alt="enter image description here"></a></p>