Due to security reason cannot paste the original code hence tried to be more intent full
- Have a project called Utils.xcodeproj which has an objective c files called Resources.m and its header is exposed as public header.
- Have another project called main.xcodeproj in which this Utils project is referenced.
Now when compiling the main.xcodeproj I get error "Duplicate interface definition for class Resources" iOS/Utils/Utils/Resources.h:23:1: @interface Resources : NSObject
Build/Products/Debug-iphoneos/include/Utils/Resources.h:23:12: note: previous definition is here @interface Resources : NSObject
Is there a way to overcome this error or turn this error into a warning?
Class Resources.h
@protocol ResourcesDelegate;
@interface Resources : NSObject
@property (weak, nonatomic) id<ResourcesDelegate> delegate;
+ (void) setDefault:(UIView *)view;
@end
@protocol ResourcesDelegate <NSObject>
@required
- (void)loadFromSDK:(NSString*)Name;
@end
Class Utils-Bridging-Header.h
#import "Resources.h"
Class XYZ in main.xcodeproj
#import "Utils/Resources.h"
[Resources setDefault:view]