Parse-SDK-iOS-OSX icon indicating copy to clipboard operation
Parse-SDK-iOS-OSX copied to clipboard

Xcode 11.7 shows 8 Analyzer errors

Open funnel20 opened this issue 5 years ago • 3 comments

When running Xcode 11.7 Analyzer on our project with Parse 1.19, it shows the following 7 logic errors:

  1. /Parse/Parse/Parse/PFPush.m:322:9: Converting a pointer value of type 'NSNumber *' to a primitive boolean value; instead, either compare the pointer to nil or call -boolValue

    Screenshot 2020-09-17 at 14 14 21
  2. /Parse/Parse/Parse/Internal/PFCommandCache.m:250:21: Converting a pointer value of type 'NSNumber *' to a primitive boolean value; instead, either compare the pointer to nil or call -boolValue

    Screenshot 2020-09-17 at 14 15 18

and 5 more.

The last is a memory error: 8. /Parse/Parse/Parse/Internal/PFDateFormatter.m:85:5: nil returned from a method that is expected to return a non-null value

Screenshot 2020-09-17 at 14 17 53

funnel20 avatar Sep 17 '20 12:09 funnel20

Thanks for reporting. Would you be willing to submit a PR?

TomWFox avatar Sep 17 '20 16:09 TomWFox

This issue has been automatically marked as stale because it has not had recent activity. If you believe it should stay open, please let us know! As always, we encourage contributions, check out the Contributing Guide

stale[bot] avatar Nov 08 '20 02:11 stale[bot]

I'll try if I can find the time.

funnel20 avatar Nov 08 '20 10:11 funnel20

Closing as release 2.0.0 supports import via Swift Package Manager.

mtrezza avatar Jan 29 '23 12:01 mtrezza