Nullability specifier 'nonnull' conflicts with existing specifier 'nullable'
Closed this issue · 7 comments
CAMOBAP commented
DFImageManager/DFImageManager/Source/UI/DFImageView.m:58:12: Nullability specifier 'nonnull' conflicts with existing specifier 'nullable'
kean commented
Hi, I don't see this problem in master. I'm using Xcode 7.2.
CAMOBAP commented
When locally I change:
- (nonnull instancetype)initWithCoder:(NSCoder *)decoder {
if (self = [super initWithCoder:decoder]) {
[self _commonInit];
}
return self;
}
to
- (instancetype)initWithCoder:(NSCoder *)decoder {
if (self = [super initWithCoder:decoder]) {
[self _commonInit];
}
return self;
}
It works without error
kean commented
That's ok. Yeah, I should probably remove nullability annotations from .m files. Xcode used to add them automatically but it no longer does that.
CAMOBAP commented
I will prepare pull request
lei-zxx commented
nice