Skip to content

Warnings in SharkORM.h with Xcode 11 due to missing nullability type specifier #133

@ianhlavats

Description

@ianhlavats

When linking against SharkORM using CocoaPods, Xcode reports warnings in SharkORM.h due to missing nullability type specifier:

Warning: Pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) File: Pods/SharkORM/SharkORM/SharkORM.h:261

The issue is related to these lines of code:

@interface SRKRelationship : NSObject {
    
}
@property Class                                       sourceClass;
@property Class                                       targetClass;

After studying the code, it appears SharkORM expects that these properties could be nil at some point so I think the solution to remove these compilation warnings would be:

@interface SRKRelationship : NSObject {
    
}
@property Class _Nullable                             sourceClass;
@property Class _Nullable                             targetClass;

Will submit a PR.

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

    Issue actions