iOS编译警告-消除注释中的警告

Build Settings 中将 Documentation Comments 的warning开关关掉,注释中就不会报警告了。

原因:

在Xcode8之后,文本注释会产生警告,可以通过设置Build Settings中的 Documentation Comments来设置是否打开注释中的警告。

注释中的警告:


  • '@method' command should be used in a comment attached to an Objective-C method declaration
    用@method描述非OC的方法。

  • '@result' command used in a comment that is attached to a method returning void
    用@result描述无返回值的方法。

  • Parameter '' not found in the function declaration
    参数描述在方法中未找到。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容