Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/310.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
不在运行脚本中运行xcodebuild的OCLint_Xcode_Xcodebuild_Oclint_Oclint Json Compilation - Fatal编程技术网

不在运行脚本中运行xcodebuild的OCLint

不在运行脚本中运行xcodebuild的OCLint,xcode,xcodebuild,oclint,oclint-json-compilation,Xcode,Xcodebuild,Oclint,Oclint Json Compilation,我一直在尝试将OCLint添加到我的项目中,它主要与 cd ${SRCROOT} xcodebuild clean xcodebuild -target {TARGET} -configuration Debug -scheme {SCHEME} | tee ${TARGET_TEMP_DIR}/xcodebuild.log cd ${TARGET_TEMP_DIR} oclint-xcodebuild cp ${TARGET_TEMP_DIR}/compile_commands.json

我一直在尝试将OCLint添加到我的项目中,它主要与

cd ${SRCROOT}

xcodebuild clean
xcodebuild -target {TARGET} -configuration Debug -scheme {SCHEME} | tee ${TARGET_TEMP_DIR}/xcodebuild.log

cd ${TARGET_TEMP_DIR}
oclint-xcodebuild

cp ${TARGET_TEMP_DIR}/compile_commands.json ${SRCROOT}/compile_commands.json

cd ${TARGET_TEMP_DIR}
oclint-json-compilation-database -e -v -- -report-type xcode
问题是,我不想在运行脚本中调用xcodebuild,并且每次在xcode中构建项目时都要运行两次xcodebuild。有人找到了从xcode的build命令创建xcodebuild.log文件的方法吗


我找到了有关转到DerivedData/{Project}/Logs/Build并解压缩驻留在那里的.xactivitylog文件的信息,但它包含大量垃圾,使oclint xcodebuild命令生成一个空的compile_commands.json文件。

对此感到奇怪