美文网首页iOS工程化
OCLint 打包 oclint:error:cannot op

OCLint 打包 oclint:error:cannot op

作者: 圣艾修 | 来源:发表于2019-12-11 10:16 被阅读0次

目前0.15版本只有源码,作者没有打包,所以只好自己动手了,记录一下过程。

打包

打包步骤说明
1.首先download源码 地址
2.安装CMake
3.cd 到源码oclint-scripts目录
4.执行 ./make
5.打包完成后会在oclint-scripts同级目录生成build/oclint-release,这个就是我们需要的包了

CMake安装

步骤说明
1.首先download 地址
2.安装后执行

sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install

*其它问题说明
CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.

没有Ninja

brew install ninja

这个打包非常的慢,大概花了我1个半小时
打包完成后替换之前的包
修改环境变量

open -e ./.bash_profile
source ~/.bash_profile

查看版本

oclint -version

也可以直接用我打好的,OCLint 0.15下载地址

相关文章

网友评论

    本文标题:OCLint 打包 oclint:error:cannot op

    本文链接:https://www.haomeiwen.com/subject/bmzngctx.html