Question: how to create xcdatamodeld in swift?
Answer: The resulting project includes an . xcdatamodeld file. Add a Core Data Model to an Existing Project. Choose File > New > File and select from the iOS templates. ...  Click Next. Name your model file, and select its group and targets. An .xcdatamodeld file with the name you specified is added to your project: