Re: Release build throw "unrecognized selector sent to instance" for a category method
Re: Release build throw "unrecognized selector sent to instance" for a category method
- Subject: Re: Release build throw "unrecognized selector sent to instance" for a category method
- From: Bruno Berisso <email@hidden>
- Date: Mon, 08 Aug 2011 09:46:22 -0300
Recently we have the same problem in a new project that use a open source library. The author of the library suggest the use of tow linker flags: '-ObjC' and '-all_load', and guest what?! This is exactly what I need (http://developer.apple.com/library/mac/#qa/qa1490/_index.html)
Thanks for your answers.
Regards.
On Jul 31, 2011, at 7:26 AM, Fritz Anderson wrote:
> On 30 Jul 2011, at 10:58 PM, Bruno Berisso wrote:
>
>> In the library project I use several categories, one of them add some methods to NSDate to move a date around (ej: 'moveDateToNextMonth'). For some reason when set the build configuration to Release the calls '[date moveDateToNextMonth]' in my library project I get the "unrecognized selector sent to instance" error.
>
> When the log says moveDateToNextMonth is sent to an instance of something, to what class does it report the message is sent? Along the same lines, have you tried enabling zombies?
>
> — F
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden