Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 如何将OCLint用于Cocoa框架?_Objective C_Xcode_Static Analysis_Xcodebuild_Oclint - Fatal编程技术网

Objective c 如何将OCLint用于Cocoa框架?

Objective c 如何将OCLint用于Cocoa框架?,objective-c,xcode,static-analysis,xcodebuild,oclint,Objective C,Xcode,Static Analysis,Xcodebuild,Oclint,在项目所在的文件夹中运行以下命令: $ xcodebuild -target MyCocoaFramework -configuration Debug -scheme MyCocoaFramework clean build | tee xcodebuild.log $ oclint-xcodebuild $ oclint-json-compilation-database $ 没有显示任何内容。 这种方法适用于Cocoa应用程序 $ xcodebuild -target MyCocoaAp

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

$ 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框架,应该更改哪些内容?

OCLint无法支持arm64体系结构:


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

您能详细说明您的项目结构吗?目标“MyCoaApplication”和“MyCoaFramework”中包含哪些内容?以及……MyCoaFramework中是否确实存在应该由OCLint标记的问题?