title: Core Data Model doesn't appear to be reflected in app
body: <p>I'm having difficulty with Core Data in Xcode 8 beta 1. Old apps will compile and run fine, but all new apps compile and run fine until trying to insert a new NSManagedObject.</p>
  
  <p>Initially I thought it had something to do with incorrectly deleting an old xcdatamodel and remaking another, but after making a brand new app and making a simple Entity "A", I am not able to create an object of class A at runtime.</p>
  
  <p>I have tried using <code>let a = A(context: myMOC)</code> which returns the error:</p>
  
  <blockquote>
    <p>An NSManagedObject of class 'MyApp.A' must have a valid NSEntityDescription.</p>
  </blockquote>
  
  <p>Trying the old <code>let a = NSEntityDescription.insertNewObject(forEntityName: "A", into: context) as! A</code> returns the error:</p>
  
  <blockquote>
    <p>Could not cast value of type 'NSManagedObject_A_'
    (0x7fd114626f80) to 'MyApp.A' (0x10d2fdf28).</p>
  </blockquote>
  
  <p>I have checked my xcdatamodel a dozen times to ensure I have spelt everything correctly, and have created a new project to test to make sure I haven't made any errors in setting up CD. Thoughts?</p>
  
  <p><strong>UPDATE:</strong> The xcdatamodel package contents are this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="11147.23" systemVersion="16A201w" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier=""&gt;
      &lt;entity name="Coordinate" syncable="YES" codeGenerationType="class"&gt;
          &lt;attribute name="latitude" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES" syncable="YES"/&gt;
          &lt;attribute name="longitude" optional="YES" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES" syncable="YES"/&gt;
          &lt;relationship name="route" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Route" inverseName="coordinates" inverseEntity="Route" syncable="YES"/&gt;
      &lt;/entity&gt;
      &lt;entity name="Route" syncable="YES" codeGenerationType="class"&gt;
          &lt;attribute name="uuid" optional="YES" attributeType="String" syncable="YES"/&gt;
          &lt;relationship name="coordinates" optional="YES" toMany="YES" deletionRule="Nullify" ordered="YES" destinationEntity="Coordinate" inverseName="route" inverseEntity="Coordinate" syncable="YES"/&gt;
      &lt;/entity&gt;
      &lt;elements&gt;
          &lt;element name="Route" positionX="-45" positionY="0" width="128" height="75"/&gt;
          &lt;element name="Coordinate" positionX="-18" positionY="27" width="128" height="90"/&gt;
      &lt;/elements&gt;
  &lt;/model&gt;
  </code></pre>
  
  <p><strong>UPDATE 2:</strong> Printing the managedObjectModel's entities, shows that the correct model is being loaded. Still I can't get an NSManagedObject to initialize in any new project.</p>