kean/DFImageManager

Nullability specifier 'nonnull' conflicts with existing specifier 'nullable'

Closed this issue · 7 comments

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.

Sorry for spam, I have found the same issue #56 which closed

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.

I will prepare pull request

@kean Could you please review?

nice