Xcode 4 missing “use core data” checkbox for all project templates

后端 未结 4 1905
被撕碎了的回忆
被撕碎了的回忆 2021-01-18 00:20

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

相关标签:
4条回答
  • 2021-01-18 00:23

    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.

    0 讨论(0)
  • 2021-01-18 00:34

    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.

    Important: Not all templates offer a Core Data option. Core Data is an advanced technology that is not required for creating simple applications.

    https://developer.apple.com/library/ios/documentation/DataManagement/Devpedia-CoreData/coreDataOverview.html

    0 讨论(0)
  • 2021-01-18 00:39

    The "Use Core Data" checkbox appears only when you choose certain kinds of templates, like the Empty Application iOS template...

    enter image description here

    enter image description here

    Try the different templates to see exactly for which one Core Data is available...

    0 讨论(0)
  • 2021-01-18 00:47

    You can change manually template to add coredata checkbox.

    • Right-click on xCode app icon, and show content package.
    • Then follow this : 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/
    0 讨论(0)
提交回复
热议问题