Re: Core Data entity name issue
Re: Core Data entity name issue
- Subject: Re: Core Data entity name issue
- From: Robert Tillyard <email@hidden>
- Date: Mon, 02 Jul 2012 22:59:53 +0100
I had the same issue recently and had to change the name of my files to Time_.m and Time_.h which solved the issue and left it at that.
It seems that one of the files included by <Cocoa/Cocoa.h> is <Time.h> but if you have one in your project it uses that instead.
Regards, Rob.
On 2 Jul 2012, at 21:33, Chuck Soper wrote:
> 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
>
_______________________________________________
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