I have a constant named "ID_KEY" which is declared at the top of three separate .m files, none of which contain other files.
The ad is as follows:
#import "PublicGamesResponse.h" NSString *const ID_KEY = @"id"; ... @implementation PublicGamesResponse
And similarly for the other two classes. However, I get a linker error complaining about multiple definitions with the same name (if I were to comment on two definitions, this will disappear).
My question is, why is the agent really complaining about this? Each definition of ID_KEY goes beyond everyone else, so I donβt understand why the linker complains.
As a disclaimer, I cleaned up the project and restarted xCode and looked at similar issues on the site, but no luck.
source share