ios-branch-deep-linking-attribution: Branch.h: Pointer is missing a nullability type specifier

Just upgraded to 0.29.0 from 0.27.1 and now I’m getting hundreds of errors concerning the lack of nullability specifiers in Branch.h.

The very first error is:

Pods/Headers/Public/Branch/Branch.h:72:17: Pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified)

Xcode 10.3 CocoaPods 1.7.5

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 11
  • Comments: 16 (5 by maintainers)

Most upvoted comments

Hey Team,

The Branch.getInstance() property is now optional, is that the desired behavior? As any call will look like Branch.getInstance()?.doSomething().

Thanks

FYI, I’ve added -Xcc -Wno-nullability-completeness to “Other Swift Flags” in my project to suppress these warnings until this gets patched. Hope this helps someone.

We are using react native too, can you update the podspec in it and point it to a latest version. There are thousand of nullability warning which breaks our CI logs, as it is cutting them off, and we can’t scroll to the bottom of the logs.

A fix for this is in a branch and being reviewed/tested.