Xcode 4 缺少“使用核心数据”所有项目模板的复选框
我刚刚安装了 Xcode 4,正在尝试创建使用核心数据的项目。但是,使用核心数据的复选框在任何项目模板中都不可用。有其他人遇到过这个问题或者知道如何解决它吗?我尝试过重新安装Xcode,但没有解决问题。
I have just installed Xcode 4 and I am trying to create projects that use core data. However, the checkbox to use core data is not available in any of the project templates. Has anyone else run into this or know how to solve it. I have tried reinstalling Xcode, which does not solve the problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
仅当您选择某些类型的模板(例如空应用程序 iOS 模板)时,才会出现“使用核心数据”复选框...
尝试不同的模板以准确查看哪一个核心数据可用...
The "Use Core Data" checkbox appears only when you choose certain kinds of templates, like the Empty Application iOS template...
Try the different templates to see exactly for which one Core Data is available...
正如 Lindemann 得到最多支持的答案所说,CoreData 并不适用于所有项目模板。如果你想知道这是为什么,那么这就是苹果公司的原因。
https://developer.apple.com/library/ios /documentation/DataManagement/Devpedia-CoreData/coreDataOverview.html
As the most upvoted answer of Lindemann says, CoreData is not available for all the project templates. If you wonder why is that, then here is Apple's reason for that.
https://developer.apple.com/library/ios/documentation/DataManagement/Devpedia-CoreData/coreDataOverview.html
您是否尝试使用“Cocoa 应用程序”等主要模板之一创建一个新项目?如果您习惯了 Xcode 4 的预览版本之一,请注意这些选项不再位于主模板表上,而是在选择模板后显示在第二张表上。
Did you try creating a new project using one of the main templates like "Cocoa Application"? If you're used to one of the preview releases of Xcode 4, note the options are no longer on the main template sheet but rather show up on a second sheet after choosing a template.
您可以手动更改模板以添加 coredata 复选框。
http://rypearts. com/proof/bob/r1/2012/03/04/creating-custom-xcode-4-file-templates/
这是: http://ennio.sperimentando.it/2011/08/22/xcode-setting-the-tab-bar-project-template-to-support-core-data-4/
You can change manually template to add coredata checkbox.
http://rypearts.com/proof/bob/r1/2012/03/04/creating-custom-xcode-4-file-templates/
and this : http://ennio.sperimentando.it/2011/08/22/xcode-setting-the-tab-bar-project-template-to-support-core-data-4/
我是 mac 的新手。但我在这里发现了一些东西。有帮助还是没有帮助?
为您的新项目选择选项 -> 存储:核心数据:
I am a totally new to mac. But I found something here. Is it help or not?
Choose Options for your new project -> Storage: Core Data: