Re: How to resolve bulk warning "Creating selector for nonexistent method ..."?
Re: How to resolve bulk warning "Creating selector for nonexistent method ..."?
- Subject: Re: How to resolve bulk warning "Creating selector for nonexistent method ..."?
- From: arri <email@hidden>
- Date: Mon, 04 Jul 2011 03:16:50 +0200
Hi Motti,
I would be very interested to know how you resolved this issue, if at all.
I'm suddenly facing the same issue, out of no-where. Instead of trying
to find the source of the problem, I just reverted to the last known
working version (svn), but the warnings persist.
This surprises me a bit, because earlier today i had cleaned the
project and made a release-build for distribution to the client, and
this went fine.
I'm sure i'm overlooking something very obvious and stupid. Does
anyone have an idea what that could be?
thanks,
arri
On Mon, Jan 25, 2010 at 12:04 PM, Motti Shneor <email@hidden> wrote:
> Hi everyone.
>
> I'm building static library, whose outward API is plain "C", and whose implementation is Cocoa-based.
>
> It was building and working alright, until (yesterday) something changed, and any attempt to clean/build/rebuild it produces huge amount of compilation warnings, on EVERY Obj-C message.
>
> First, there's a bulk of warnings like this:
>
> /Volumes/Data/.../FileManager_GUI_Mac.mm:224: warning: creating selector for nonexistent method 'openPanel'
> /Volumes/Data/.../FileManager_GUI_Mac.mm:196: warning: creating selector for nonexistent method 'release'
> /Volumes/Data/.../FileManager_GUI_Mac.mm:193: warning: creating selector for nonexistent method 'code'
> /Volumes/Data/.../FileManager_GUI_Mac.mm:190: warning: creating selector for nonexistent method 'savePanel'
> /Volumes/Data/.../FileManager_GUI_Mac.mm:190: warning: creating selector for nonexistent method 'alloc'
> /Volumes/Data/.../FileManager_GUI_Mac.mm:171: warning: creating selector for nonexistent method 'stringWithFormat:'
> /Volumes/Data/.../FileManager_GUI_Mac.mm:160: warning: creating selector for nonexistent method 'getCString:maxLength:encoding:'
>
> Then another bulk of warnings, complaining about DOUBLE definitions for Cocoa methods!!!!
>
> /Volumes/Data/.../FileManager_GUI_Mac.mm:244:0
> /Volumes/Data/.../FileManager_GUI_Mac.mm:244: warning: multiple selectors named '+isVertical' found
> /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitView.h:30:0 /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitView.h:30: warning: found '-(BOOL)isVertical'
> /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSliderCell.h:59:0 /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSliderCell.h:59: warning: also found '-(NSInteger)isVertical'
>
>
>
> Notes:
> The project is building Intel-only Universal (32/64bit, architectures i386 and x86_64
> I only #import <Cocoa/Cocoa.h> once, in a single source file (an interface header file).
> I added (linked) the Cocoa Framework once in the project, referencing the "Current SDK".
> The project DOES compile, and even works.
> If i turn on the "Build Active Architecture Only" build option for the project (ONLY_ACTIVE_ARCH = YES) then I only get the warnings when I compile 32bit. 64bit compilation is free of warnings.
>
>
> These warnings worry me, as I might be using a wrong framework, and the code may break on a user machine.
>
> Any idea will be greatly appreciated.
>
>
> Motti Shneor
> ------------------------------------------
> Senior Software Engineer
> Waves Audio ltd.
>
>
>
> _______________________________________________
>
> 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