在工程所在文件夹中执行以下命令:
$ 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框架发挥作用?
发布于 2015-10-29 13:38:16
OCLint不支持arm64架构:https://github.com/oclint/oclint/issues/190
如果您的代码以iOS 7为目标,那么OCLint可能会静默失败。
https://stackoverflow.com/questions/32892142
复制相似问题