Re: Unrecognized selector in release build, not in debug build
Re: Unrecognized selector in release build, not in debug build
- Subject: Re: Unrecognized selector in release build, not in debug build
- From: Jens Alfke <email@hidden>
- Date: Tue, 09 Jul 2013 18:46:09 -0700
On Jul 9, 2013, at 6:39 PM, Rick Mann <email@hidden> wrote:
> It only happens in release builds, and the call stack shown in Xcode while debugging shows no source. I can't figure out where the call is:
>
> #0 0x39f9f960 in objc_exception_throw ()
> #1 0x320fee06 in -[NSObject(NSObject) doesNotRecognizeSelector:] ()
What’s frame #2? That’s the code that’s sending -removeObject:. The frames you listed are just the ones raising the exception.
> I tried putting a symbolic breakpoint on -[__NSArrayI removeObject:], but it doesn't stop any earlier. I don't actually call remove-anything in my code anywhere.
Well, there’s no such method — that’s exactly what that exception means — so it’s not surprising that you can’t set a breakpoint on it :)
—Jens
_______________________________________________
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