Skip to content

Silence "Class Foo is implemented in both" warnings

License

Notifications You must be signed in to change notification settings

keith/objc_dupclass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

objc_dupclass

Tired of this warning?

objc[65171]: Class CDPCAReporter is implemented in both A.framework and B.framework.
One of the two will be used. Which one is undefined.

Luckily, as I discovered from this tweet, Apple added a special way to silence these warnings for classes you specify. This repo provides a C macro for adding classes to this special list.

Usage

Call the macro in any Objective-C / C / C++ file in your project, passing the class you want to silence the warning for:

#include "objc_dupclass.h"

OBJC_DUPCLASS(AMSupportURLConnectionDelegate);

About

Silence "Class Foo is implemented in both" warnings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published