OBJC_PRINT_REPLACED_METHODS logs a lot of noise?
OBJC_PRINT_REPLACED_METHODS logs a lot of noise?
- Subject: OBJC_PRINT_REPLACED_METHODS logs a lot of noise?
- From: Jerry Krinock <email@hidden>
- Date: Fri, 25 Oct 2013 16:30:51 -0700
On 2013 Oct 24, at 10:35, Sean McBride <email@hidden> wrote:
> You could also set OBJC_PRINT_REPLACED_METHODS=YES in the environment. That's how I originally discovered my firstObject NSArray category method
> wasin conflict.
I tried it. When I launch my app with that I get 100 log entries, but they all seem to indicate that Apple is replacing Cocoa implementations from a dynamic library in /usr/lib with implementations from /System/Library/Frameworks. I’ve pasted in the first 6 below.
I then tried it on a new empty Cocoa app target and there were fewer, only 28.
Is there anything to worry about here? I’ve read a few blog posts and threads, and surprisingly no one mentioned this as an expected result.
objc[45391]: REPLACED: -[NSObject description] by category NSObject (IMP
was 0x7fff8b7da294 (/usr/lib/libobjc.A.dylib),
now 0x7fff9040bb30 (/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation))
objc[45391]: REPLACED: -[NSObject methodSignatureForSelector:] by category NSObject (IMP
was 0x7fff8b7da203 (/usr/lib/libobjc.A.dylib),
now 0x7fff903d8af0 (/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation))
objc[45391]: REPLACED: -[NSObject doesNotRecognizeSelector:] by category NSObject (IMP
was 0x7fff8b7da02a (/usr/lib/libobjc.A.dylib),
now 0x7fff904a6220 (/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation))
objc[45391]: REPLACED: +[NSObject init] by category NSObject(IMP
was 0x7fff8b7da4b8 (/usr/lib/libobjc.A.dylib),
now 0x7fff904a65a0 (/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation))
objc[45391]: REPLACED: +[NSObject dealloc] by category NSObject (IMP
was 0x7fff8b7da4c0 (/usr/lib/libobjc.A.dylib),
now 0x7fff904a6650 (/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation))
objc[45391]: REPLACED: +[NSObject description] by category NSObject (IMP
was 0x7fff8b7da291 (/usr/lib/libobjc.A.dylib),
now 0x7fff903fe330 (/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation))
_______________________________________________
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