Welcome, Guest
Username Password: Remember me

Unrecognized selector - universal project (SOLVED)
(1 viewing) (1) Guest

TOPIC: Unrecognized selector - universal project (SOLVED)

Unrecognized selector - universal project (SOLVED) 1 year, 8 months ago #1

Hi!

I'm getting this error message trying to use definitionWithEntityName... from my universal iPhone/iPad project.

"
+[SCClassDefinition definitionWithEntityName:withManagedObjectContext:withPropertyNames:]: unrecognized selector sent to class
"


I dug a little bit and i'm wondering if the #ifdef NSCoreDataVersionNumber_iPhoneOS_3_0 in SCClassDefinition statement could be the culprit?
Is it a case of base sdk (4.0)/ deployment target (3.2) issue ?
Finally it would be great to have a universal core data project demo if possible to help people set those up?

Thanks!
  • codebonbon
  • OFFLINE
  • Expert Boarder
  • Posts: 147
  • Karma: 7
Last Edit: 1 year, 8 months ago by tarekskr.

Re: Unrecognized selector from universal project 1 year, 8 months ago #2

Hi codebonbon:

I am unable to re-create this error with my universal app. Would you please post some code that might be causing this error? Or better yet, are you able to send us the application to our support email?

Thanks a lot for the demo idea!
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Unrecognized selector from universal project 1 year, 8 months ago #3

Thanks for the swift reply!

Just sent you the code at your support e-mail. Anxiously awaiting your findings.


Regards.
  • codebonbon
  • OFFLINE
  • Expert Boarder
  • Posts: 147
  • Karma: 7

Re: Unrecognized selector from universal project 1 year, 8 months ago #4

Hi again codebonbon:

As a quick fix for now, please add #import <CoreData/CoreData.h> to the start of SCClassDefinition.h file and your project should run without problems.

I'll keep you posted on this issue. Thank you very much for reporting this to us.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Unrecognized selector from universal project 1 year, 8 months ago #5

adding the #import <CoreData/CoreData.h> to SCClassDefinition.h did not do the trick.
  • nilla
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0

Re: Unrecognized selector from universal project 1 year, 8 months ago #6

Will get back to you on this ASAP. How about you codebonbon?
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72
Time to create page: 1.63 seconds