Re: Unrecognized selector in release build, not in debug build

2013-07-23 Thread Maxthon Chan
NSArrayI is one of the private subclasses of NSArray (not NSMutableArray) so there is no - (void)removeObject method. Consider check if your array is really mutable and - (instancetype)mutableCopy if needed. Sent from my iPhone > On 2013年7月10日, at 9:39, Rick Mann wrote: > > I'm having a hard

Re: Unrecognized selector in release build, not in debug build

2013-07-10 Thread Rick Mann
On Jul 10, 2013, at 12:53 , "Gary L. Wade" wrote: > Is it possible you've got an array controller (or other related object) > that got over-released and a pointer for it is now pointing at something > else? Or maybe you were converting from a pre-NSObjectController code base > (using a subclass

Re: Unrecognized selector in release build, not in debug build

2013-07-10 Thread Gary L. Wade
Is it possible you've got an array controller (or other related object) that got over-released and a pointer for it is now pointing at something else? Or maybe you were converting from a pre-NSObjectController code base (using a subclass of NSObject like in the "old" days) to NSObjectController or

Re: Unrecognized selector in release build, not in debug build

2013-07-10 Thread Rick Mann
On Jul 10, 2013, at 09:58 , Uli Kusterer wrote: > Is this backtrace in Xcode's debugger, or in a log file? If the former, have > you tried moving the slider at the bottom of the window? It sometimes gets > changed accidentally and then tries to be smart and remove irrelevant symbols > (which

Re: Unrecognized selector in release build, not in debug build

2013-07-10 Thread Uli Kusterer
On Jul 10, 2013, at 6:04 AM, Rick Mann wrote: > First, Xcode's project-wide search is returning only one instance of "remove" > for a Textual-contain-search-term-case-insensitive search. Grep returns > hundreds. You've probably set the search options wrong. There's textual, regex, symbol defi

Re: Unrecognized selector in release build, not in debug build

2013-07-10 Thread Uli Kusterer
On Jul 10, 2013, at 4:01 AM, Rick Mann wrote: > Yes, I'm aware. That's everything Xcode shows; that's the full stack. I had > hoped breaking on that message would break at the point of the send, not at > the point of handling the unrecognized selector. Is this backtrace in Xcode's debugger, or

Re: Unrecognized selector in release build, not in debug build

2013-07-09 Thread Rick Mann
Light-bulb. First, Xcode's project-wide search is returning only one instance of "remove" for a Textual-contain-search-term-case-insensitive search. Grep returns hundreds. Second, I just remembered some release-only code I wrote that does, in fact, try to remove from an array, and I forgot to

Re: Unrecognized selector in release build, not in debug build

2013-07-09 Thread Rick Mann
On Jul 9, 2013, at 19:14 , Scott Ribe wrote: > Sometimes when the displayed call stack seems to make no sense, it's because > you corrupted the stack. Do you have any stack-allocated arrays? I have a number of @[ ] constructs in my code… -- Rick __

Re: Unrecognized selector in release build, not in debug build

2013-07-09 Thread Jens Alfke
On Jul 9, 2013, at 7:08 PM, Charles Srstka wrote: > Have you tried putting a breakpoint on objc_exception_throw +1. That’s vital in any project. In Xcode 4 you can easily do this by just going into the breakpoints tab and pressing the little “+” button at the bottom. > or -[NSObject doesNotR

Re: Unrecognized selector in release build, not in debug build

2013-07-09 Thread Scott Ribe
On Jul 9, 2013, at 7:39 PM, Rick Mann 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: Sometimes when the displayed call stack seems to make no sense, it's because you corrupted the stack. Do y

Re: Unrecognized selector in release build, not in debug build

2013-07-09 Thread Charles Srstka
On Jul 9, 2013, at 9:00 PM, Rick Mann wrote: > Yes, I'm aware of this fact. The problem is, I can't tell where the call is > happening. > > Sent from my iPhone Have you tried putting a breakpoint on objc_exception_throw or -[NSObject doesNotRecognizeSelector:] ? Charles ___

Re: Unrecognized selector in release build, not in debug build

2013-07-09 Thread Rick Mann
Yes, I'm aware. That's everything Xcode shows; that's the full stack. I had hoped breaking on that message would break at the point of the send, not at the point of handling the unrecognized selector. Sent from my iPhone On Jul 9, 2013, at 18:46, Jens Alfke wrote: > > On Jul 9, 2013, at 6:3

Re: Unrecognized selector in release build, not in debug build

2013-07-09 Thread Rick Mann
Yes, I'm aware of this fact. The problem is, I can't tell where the call is happening. Sent from my iPhone On Jul 9, 2013, at 18:44, Maxthon Chan wrote: > NSArrayI is one of the private subclasses of NSArray (not NSMutableArray) so > there is no - (void)removeObject method. Consider check if

Re: Unrecognized selector in release build, not in debug build

2013-07-09 Thread Jens Alfke
On Jul 9, 2013, at 6:39 PM, Rick Mann 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: > > #00x39f9f960 in objc_exception_throw () > #10x320fee06 in -[NSObject(NSObject) doesNotRecogni

Unrecognized selector in release build, not in debug build

2013-07-09 Thread Rick Mann
I'm having a hard time tracking this down: Jul 9 18:33:10 iPad-4G-64GB MatterScan[189] : -[__NSArrayI removeObject:]: unrecognized selector sent to instance 0x1f097040 It only happens in release builds, and the call stack shown in Xcode while debugging shows no source. I can't figure out whe