问题描述
我正在使用Swift 3和Xcode 8 beta构建一个Core Data应用程序,当我生成NSManagedObject子类时,Xcode给了我Objective-C文件而不是Swift.
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.
虽然我非常清楚我可以在Swift中编写自己的NSManagedObject子类,但我想知道如何将生成的代码的语言从Objective-C切换到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.
如何在Swift中而不是Xcode 8中的Objective C中生成NSManagedObject类?
How can I generate NSManagedObject classes in Swift instead of Objective C in Xcode 8?
推荐答案
好吧,显然我看起来不够努力,就在这里:
Alright, apparently I didn't look hard enough, it's right here:
这篇关于如何在Swift中而不是Xcode 8中的Objective C中生成NSManagedObject类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!