Re: debugging unrecognized selector
Re: debugging unrecognized selector
- Subject: Re: debugging unrecognized selector
- From: ChanMaxthon <email@hidden>
- Date: Fri, 16 May 2014 16:05:16 +0800
Strings does not have CGColor methods so it is not caught. Try break on [NSObject doesNotRecognizeSelector:]
Sent from my iPhone
> On May 16, 2014, at 4:01 PM, Torsten Curdt <email@hidden> wrote:
>
> I am seeing a crash in an iOS app and while I can reproduce it I am
> still struggling to find the location in my code because the debugger
> only stops in UIApplicationMain. What I am seeing in the log is
>
> 2014-05-16 09:46:56.796 MyApp[30998:60b] -[__NSCFString CGColor]:
> unrecognized selector sent to instance 0x10debb640
>
> Checking the address with `po` I can see the string. But it still did
> not help to find where this happens. I added the following
> breakpoints:
>
> * All Exceptions
> * -[__NSCFString CGColor]
> * -[NSString CGColor]
>
> but the CGColor breakpoints are not catching this. Why not?
> How would you track this down?
>
>
> I hope this is not too OT. If it is please let me know where to ask instead.
>
> cheers,
> Torsten
> _______________________________________________
>
> 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
_______________________________________________
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