Core Data entity name issue
Core Data entity name issue
- Subject: Core Data entity name issue
- From: Chuck Soper <email@hidden>
- Date: Mon, 02 Jul 2012 13:33:31 -0700
- Thread-topic: Core Data entity name issue
I just found an issue with a Core Data entity named "Time"
Here are steps to reproduce:
1. Using Xcode 4.3.3 on Mac OS X 10.7.4, create a new Project. Create a
Cocoa Application with Core Data, ARC, Unit Tests and a Spotlight Importer.
2. Build it to confirm that there are no errors.
3. Add an entity named "Time" to the data model.
4. Create source for the "Time" entity. Here's how I created source:
<http://developer.apple.com/library/mac/#recipes/xcode_help-core_data_model
ing_tool/Articles/creating_mo_class.html>
5. Now, build again and you should get 37 errors! The errors are mainly
parse issues. Here's a small sample of the errors reported for
NSObjCRuntime.h:
Parse Issue: Expected identifier or '('
Parse Issue: Unknown type name 'NSString'
Parse Issue: Unknown type name 'Protocol'
Semantic Issue: Format argument not an NSString
To fix the problem, one can remove Time.m and Time.h from the project. Or,
I assume avoiding Entities name "Time" would also work.
During WWDC week, I created a Core Data project (using the same as the
steps above) and added Time.m and Time.h source to access the entity.
There were no problems until today. The only difference is that my SSD
startup disk crashed and now I'm using a SATA startup disk from a Carbon
Copy Cloner backup.
Any thoughts on this? Can anyone reproduce the steps I've outlined?
Thanks,
Chuck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden