Xcode 编译警告:此块声明不是原型

Xcode compile warnings: This block declaration is not a prototype

我正在使用 podfile 加载依赖项,虽然一切都按预期工作,但我担心 Xcode 产生的警告。 有什么需要做的吗?

这些警告来自您通过 Cocoa 包含的依赖项Pods。通常,您不需要因为这些警告而做任何事情。

如果你想解决潜在的问题,你应该 fork Pod,解决这个问题,然后创建一个 Pull Request。

如果您想忽略警告,可以将其添加到您的 Podfile 中。这将导致来自 Pods 的所有警告都被忽略,因此它们不会显示在 Xcode.

# ignore all warnings from all pods
inhibit_all_warnings!