title: Swift 4 ,CoreData: error: Failed to load model named textTabelView
body: <p>When I using Swift4 in Xcode 9 gives me</p>
  
  <blockquote>
    <p>2017-11-13 10:17:15.807151+0800 textTabelView[1146:53409] [discovery]
    errors encountered while discovering extensions: Error Domain=PlugInKit Code=13 "query cancelled" UserInfo={NSLocalizedDescription=query cancelled}
    2017-11-13 10:17:16.369075+0800 textTabelView[1146:52958] [error] error:  Failed
    to load model named textTabelView CoreData: error:  Failed to load model named textTabelView</p>
  </blockquote>
  
  <p>My Codes:</p>
  
  <pre><code>@IBAction func savaArea(_ sender: UIBarButtonItem) {
  
      let appDelegate = UIApplication.shared.delegate as! AppDelegate
  
      area = AreaMO(context: appDelegate.persistentContainer.viewContext)
      area.area = areaText.text
      area.province = provinceText.text
      area.part = partText.text
      area.isVisited = visitedLabel.text
      if let imageData = UIImageJPEGRepresentation(coverImageView.image!, 0.8){
          area.image = NSData(data: imageData) as Data
      }
      print("saving...")
      appDelegate.saveContext()
  
      performSegue(withIdentifier: "unwindToArea", sender: self)
  
  }
  </code></pre>
  
  <p>The AppDelegat.swift about CoreData:</p>
  
  <pre><code>// MARK: - Core Data stack
  
  lazy var persistentContainer: NSPersistentContainer = {
  
      let container = NSPersistentContainer(name: "textTabelView")
  
      ...
  }
  </code></pre>
  
  <p>i'm sure I did import the CoreData correctly.</p>
  
  <p>The project can build normally, but when I touch the button (which @IBaction is), the warning was printed in the console and the app crashed</p>
  
  <p>How can I fixed it?</p>