ios - 如何将 iOS 上的 "may not respond to XXX"警告转换为错误?

标签 ios xcode compiler-errors compiler-warnings

当我没有在 header 中定义函数时,我会在 iOS 上收到此警告(与往常一样)。但是,我希望编译器停止编译并给我错误,这样我就可以快速找到它。

是否有将此类警告转换为错误的配置?

最佳答案

您可以要求 Xcode 将所有警告视为错误,如 this blog post 中所述。 .

关于ios - 如何将 iOS 上的 "may not respond to XXX"警告转换为错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16510963/

相关文章:

ios - 使用启用了读写(也预填充)的 sqlite 数据库发布 iOS 应用程序

ios - 如何让 VStack 填满 SwiftUI 中的屏幕宽度

ios - 调用 dequeueReusableCell(withIdentifier :for:) swift 时内存泄漏

ios - 无法使用 TabBar 委托(delegate)方法

java - 将 GWT 升级到 v2.4 时出错

ios - 将 S3 对象上传到数据库的正确过程是什么

ios - 解析崩溃报告不起作用

ios - 在内存结构中捕获 NSLog 输出

android - 库 com.google.android.gms :play-services-measurement-base is being requested by various other libraries at [[15. 0.0,

iphone - Xcode中的各种奇数错误