Skip to content
This repository was archived by the owner on May 3, 2021. It is now read-only.
This repository was archived by the owner on May 3, 2021. It is now read-only.

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

@CAMOBAP

Description

@CAMOBAP
Contributor

DFImageManager/DFImageManager/Source/UI/DFImageView.m:58:12: Nullability specifier 'nonnull' conflicts with existing specifier 'nullable'

Activity

kean

kean commented on Jan 29, 2016

@kean
Owner

Hi, I don't see this problem in master. I'm using Xcode 7.2.

CAMOBAP

CAMOBAP commented on Jan 29, 2016

@CAMOBAP
ContributorAuthor

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

CAMOBAP

CAMOBAP commented on Jan 29, 2016

@CAMOBAP
ContributorAuthor

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

kean commented on Jan 29, 2016

@kean
Owner

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

CAMOBAP commented on Jan 29, 2016

@CAMOBAP
ContributorAuthor

I will prepare pull request

added a commit that references this issue on Jan 29, 2016
CAMOBAP

CAMOBAP commented on Jan 29, 2016

@CAMOBAP
ContributorAuthor

@kean Could you please review?

added a commit that references this issue on Jan 29, 2016
lei-zxx

lei-zxx commented on Sep 20, 2016

@lei-zxx

nice

Repository owner deleted a comment from BboyKai1992 on Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kean@CAMOBAP@lei-zxx

        Issue actions

          Nullability specifier 'nonnull' conflicts with existing specifier 'nullable' · Issue #94 · kean/DFImageManager