BloodMagic icon indicating copy to clipboard operation
BloodMagic copied to clipboard

Warning: "Protocol hasn't been found" on a delegate class that does not rely on BloodMagic

Open stanislaw opened this issue 9 years ago • 0 comments

Hello,

Currently I am having

2015-10-12 14:00:45.979 Prototype[17600:31945410] BloodMagic: Protocol MaintenanceViewControllerDelegate hasn't been found. Please check if you include the header with that protocol description in your .m file
#import <BloodMagic/Injectable.h>

@class MaintenanceViewController;

@protocol AnalyticsProtocol;

@protocol MaintenanceViewControllerDelegate <NSObject>
- (void)maintenanceViewControllerRetryButtonWasCalled;
@end

@interface MaintenanceViewController : UIViewController
    <BMInjectable>

@property (nonatomic, strong) id<AnalyticsProtocol> analytics;
@property (weak, nonatomic) id <MaintenanceViewControllerDelegate> delegate;

@end

@analytics is injected by BM and delegate is just a regular property, however I get warning on that delegate property.

Thanks.

stanislaw avatar Oct 12 '15 12:10 stanislaw