You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the introduction of proper nullability in Objective-C machine consumption headers (thank you!), there are multiple errors raised with the -Wnullable-to-nonnull-conversion flag (which my team has adopted for ease of adding Swift to our legacy Objective-C codebase). For example (and this is almost certainly not exhaustive):
All implementations of +entityInManagedObjectContext: are invalid, as the internal NSEntityDescription#entityForName:inManagedObjectContext: call has a nullable return
Implementations of CoreDataGeneratedAccessors are invalid for nullable collection properties
I guess for 1), it would be best to mark +entityInManagedObjectContext: as nullable.
Conditional code will be necessary for 2).
The text was updated successfully, but these errors were encountered:
With the introduction of proper nullability in Objective-C machine consumption headers (thank you!), there are multiple errors raised with the -Wnullable-to-nonnull-conversion flag (which my team has adopted for ease of adding Swift to our legacy Objective-C codebase). For example (and this is almost certainly not exhaustive):
I guess for 1), it would be best to mark +entityInManagedObjectContext: as nullable.
Conditional code will be necessary for 2).
The text was updated successfully, but these errors were encountered: