How can I generate NSManagedObject classes in Swift instead of Objective C in Xcode 8?

为君一笑 提交于 2019-12-19 12:28:34

问题


I'm building a Core Data application using Swift 3 and Xcode 8 beta and when I generate the NSManagedObject subclasses Xcode gives me Objective-C files instead of Swift.

While I am very aware that I can simply write my own NSManagedObject subclasses in Swift I'd like to know how to switch the language of the generated code from Objective-C to Swift.

Question

How can I generate NSManagedObject classes in Swift instead of Objective C in Xcode 8?


回答1:


Alright, apparently I didn't look hard enough, it's right here:



来源:https://stackoverflow.com/questions/38287910/how-can-i-generate-nsmanagedobject-classes-in-swift-instead-of-objective-c-in-xc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!