Branch.h: Pointer is missing a nullability type specifier
Closed this issue ยท 16 comments
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
Looks to be a new issue in 0.29.0, I just tried 0.28.1 and it compiles without error.
I have a backlogged ticket for those warnings. The warning setting in Xcode 11 changed, just didn't have time to get it done in time for 0.29.0. It will be in the next release.
I'm still using Xcode 10.3.
I mean when I opened the SDK in Xcode 11, it updated the warning settings and I shipped with those new settings.
i also have this problem.
Please let us know when this is fixed.
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.
Same issue. Waiting for solution! Thanks
A fix for this is in a branch and being reviewed/tested.
@echo-branch Thanks for notice!
Hey Team,
The Branch.getInstance()
property is now optional, is that the desired behavior? As any call will look like Branch.getInstance()?.doSomething()
.
Thanks
Long ago we made the unfortunate choice to return nil in the event that Branch is misconfigured. In a future release, I plan on hiding this and always making sure you get an object back.
I believe this issue should be closed as this issue is fixed in v0.29.1.
This is still an issue in 4.2.1?
@macnibblet Are you using React Native? It hasn't been updated yet.
@echo-branch Makes sense, any chance we can see react native being upgraded since I cannot see build errors in gitlab-ci because the logs generated from these errors are so large gitlab cuts them off.
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.