在类的头部、接口声明之外,我声明了全局常量:
NSString * const gotFilePathNotification = @"gotFilePath";
NSString * const gotResultNotification = @"gotResultOfType";
gotResultNotification仅在这个类中使用,但我在另一个类的实现中引用了gotFilePathNotificaion。为此,我导入了这个头文件。
当我尝试编译时,我会得到一个关于这个头文件中gotFilePathNotification的重复符号链接器错误。为什么会发生这种情况?