Re: Core Data entity name issue
Re: Core Data entity name issue
- Subject: Re: Core Data entity name issue
- From: Chuck Soper <email@hidden>
- Date: Mon, 02 Jul 2012 15:55:23 -0700
- Thread-topic: Core Data entity name issue
Thanks for your response. I understand the fix and the cause, but I'm not
sure if this is a bug or not. At a minimum, it seems like a better error
message could be displayed.
I didn't actually 'write' any code to reproduce the problem. The
<Cocoa/Cocoa.h> and <Time.h> files are included by main.c which is created
for the Spotlight Importer.
Thanks,
Chuck
On 7/2/12 2:59 PM, "Robert Tillyard" <email@hidden> wrote:
>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_mod
>>el
>> 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:
>>
>>om
>>
>> 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
_______________________________________________
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