Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4 missing "use core data" checkbox for all project templates

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.

like image 613
herkDriver Avatar asked May 21 '11 19:05

herkDriver


People also ask

How do I enable core data in Xcode?

Get our help adding Core Data to your project So, with your existing project open, create a new project in Xcode (⇧⌘N) and select a Single View App, you can call it whatever you like as we'll be deleting it when we're done. You'll see the “Use Core Data” checkbox on the project options screen, make sure it is checked.

What is abstract entity in Core Data?

Specify that an entity is abstract if you will not create any instances of that entity. You typically make an entity abstract if you have a number of entities that all represent specializations of (inherit from) a common entity that should not itself be instantiated.

How do I create a core data model?

Add a Core Data Model to an Existing ProjectChoose File > New > File and select the iOS platform tab. Scroll down to the Core Data section, select Data Model, and click Next. Name your model file, select its group and targets, and click Create.

What is an entity in core data?

An entity describes an object, including its name, attributes, and relationships. Create an entity for each of your app's objects.


2 Answers

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...

like image 122
Lindemann Avatar answered Sep 28 '22 05:09

Lindemann


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

like image 33
Selvin Avatar answered Sep 28 '22 05:09

Selvin