Skip to content

Nullability warning in OIDExternalUserAgentIOS #442

@PGaissert

Description

@PGaissert

In version 1.2.0 of AppAuth I get a nullability warning in Xcode 10.3 (10G8) at the follow line of code:

@interface OIDExternalUserAgentIOS : NSObject
- (nullable instancetype)init API_AVAILABLE(ios(11))
__deprecated_msg("This method will not work on iOS 13, use "
"initWithPresentingViewController:presentingViewController");

the warning reads:
Conflicting nullability specifier on return types, 'nullable' conflicts with existing specifier 'nonnull'

For the time being I amended the issue be surrounding the line of code with:
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnullability"

- (nullable instancetype)init API_AVAILABLE(ios(11))
__deprecated_msg("This method will not work on iOS 13, use "
"initWithPresentingViewController:presentingViewController");

#pragma clang diagnostic pop

Would be great if you could fix this in the next version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions