6

在项目所在的文件夹中运行以下命令:

$ xcodebuild -target MyCocoaFramework -configuration Debug -scheme MyCocoaFramework clean build | tee xcodebuild.log
$ oclint-xcodebuild
$ oclint-json-compilation-database
$

什么都没有显示。这种方法适用于 Cocoa 应用程序。

$ xcodebuild -target MyCocoaApplication -configuration Debug -scheme MyCocoaApplication clean build | tee xcodebuild.log
$ oclint-xcodebuild
$ oclint-json-compilation-database
/a/b/c/d.m:181:5: redundant local variable P3 
/a/b/c/d/e.m:193:5: redundant local variable P3 
/a/b/c/d.m:104:1: long line P3 Line with 112 characters exceeds limit of 100

应该改变什么以适用于 Cocoa 框架?

4

1 回答 1

0

OCLint 不支持 arm64 架构:https ://github.com/oclint/oclint/issues/190

如果您的代码以 iOS 7 为目标,那么 OCLint 可能会静默失败。

于 2015-10-29T05:38:15.563 回答