在 iOS 上更新了 Firebase Crashlytics,出现了一堆分析器问题

Updated Firebase Crashlytics on iOS, getting a bunch of analyzer issues

使用 CocoaPods,我刚刚将我的 Firebase Crashlytics 更新为 iOS11 作为部署目标。它说它安装了 Firebase 8.0.0(原为 3.6.0)和 Google Utilities 7.4.1(原为 1.3.2)。

当我运行 Xcode 中的分析器时,我收到了一堆紧急警告:

nanopb/pb_decode.c:541:24: Dereference of null pointer

nanopb/pb_decode.c:547:9: Null pointer passed as 1st argument to memory set function

GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/GDTCORFlatFileStorage.m:300:9: nil passed to a callee that requires a non-null 1st parameter

GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/GDTCORFlatFileStorage.m:570:37: nil passed to a callee that requires a non-null 1st parameter

还有一些编码约定警告:

GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/GDTCORFlatFileStorage.m:484:15: Potential null dereference. According to coding standards in 'Creating and Returning NSError Objects' the parameter may be null

GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/GDTCORFlatFileStorage.m:513:15: Potential null dereference. According to coding standards in 'Creating and Returning NSError Objects' the parameter may be null

GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/GDTCORFlatFileStorage.m:537:15: Potential null dereference. According to coding standards in 'Creating and Returning NSError Objects' the parameter may be null

我有一段时间没有 运行 分析仪了,所以不确定这已经存在了多久,但这是否值得关注?还有其他人经历过吗?他们是否只需要为最新的 Xcode 更新代码?

这些看起来像是 Xcode 12.5 引入的新分析器错误。他们还没有被 Firebase CI 捕获,因为 GitHub 操作仍然是 using 12.4 by default

我创建了 https://github.com/firebase/firebase-ios-sdk/issues/8134 and https://github.com/nanopb/nanopb/issues/667 来跟踪。