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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com