I have an Objective-C model class MyType. This class is used in Swift code:
NSEntityDescription.insertNewObjectForEntit
just try this:
@objc(MyType) public class MyType: NSManagedObject { // your class }
instead of this:
class MyType: NSManagedObject { // your class }