Ios OSX小牛上的sloccount问题

Ios OSX小牛上的sloccount问题,ios,jenkins,osx-mavericks,Ios,Jenkins,Osx Mavericks,我在OSX上的Objective-C项目中经常使用sloccount,直到最近我才升级到OSX 10.9 Mavericks。当我尝试运行此简单脚本时: #!/bin/sh sloccount --duplicates --wide --details WeatherApp > Build/sloccount.sc 我明白了: /Applications/sloccount/compute_sloc_lang: line 52: c_count: command not found Wa

我在OSX上的Objective-C项目中经常使用sloccount,直到最近我才升级到OSX 10.9 Mavericks。当我尝试运行此简单脚本时:

#!/bin/sh
sloccount --duplicates --wide --details WeatherApp > Build/sloccount.sc
我明白了:

/Applications/sloccount/compute_sloc_lang: line 52: c_count: command not found
Warning! No 'Total' line in Models/ansic_outfile.dat.
输出文件包含以下内容:

Creating filelist for Application
Creating filelist for Controllers
Creating filelist for Helpers
Creating filelist for Managers
Creating filelist for Models
Creating filelist for Support
Creating filelist for Views
Categorizing files.
Computing results.


44  objc    Application /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Application/AppDelegate.m
11  objc    Application /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Application/AppDelegate.h
24  objc    Controllers /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Controllers/CitiesViewController.m
10  objc    Controllers /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Controllers/CitiesViewController.h
74  objc    Helpers /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Helpers/TranslatorHelper.m
47  objc    Helpers /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Helpers/ValidatorHelper.m
18  objc    Helpers /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Helpers/ErrorNotificationHelper.h
21  objc    Helpers /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Helpers/TranslatorHelper.h
14  objc    Helpers /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Helpers/ValidatorHelper.h
85  objc    Managers    /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Managers/WeatherAPIManager.m
20  objc    Managers    /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Managers/WeatherAPIManager.h
15  objc    Support /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Support/main.m
13  objc    Support /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Support/Includes.h
Jenkins的Sloccount插件无法解析它

对此有什么想法吗?

我终于停止使用CLOC()而不是SLOCCount()

我找不到用于CLOC的Jenkins插件,所以我使用xsltproc将CLOC输出转换为SLOCCount输出格式

我正在使用以下脚本(),请随意使用。您还需要这个文件()


希望这对其他人有所帮助。

下载存档文件后可能缺少一个步骤


您需要运行make install这会生成缺少的exe或二进制文件,并将sloccount实用程序和手册页部署到/usr/local/bin

我今天收到David Wheeler关于sloccount问题的答复,我也会向您通报。我从brew安装了sloccount,我自己没有下载或编译它。虽然这个问题已经很老了,但我很确定这个问题现在已经解决了,但我自己还没有尝试过。