iOS OCLint代码分析xcpretty使用(四)2019-12-03

1. xcpretty是干什么的

xcpretty is designed to be piped with xcodebuild and thus keeping 100% compatibility with it. It's even a bit faster than xcodebuild itself, since it saves your terminal some prints.

xcpretty被设计为与xcodebuild进行管道传输,因此与之保持100%的兼容性。 它甚至比xcodebuild本身快一点,因为它可以为您的终端保存一些打印内容。

2. xcpretty使用

1.与xcodebuild一起使用

$ xcodebuild [flags] | xcpretty

2.需要存储日志

$ xcodebuild [flags] | tee xcodebuild.log | xcpretty

You might want to use xcpretty together with tee to store the raw log in a file, and get the pretty output in the terminal. This might be useful if you want to inspect a failure in detail and aren't able to tell from the pretty output.

您可能希望将xcpretty与tee一起使用,以将原始日志存储在文件中,并在终端中获得漂亮的输出。 如果您想详细检查故障并且无法从漂亮的输出中分辨出来,这可能很有用。

3. xcpretty官网

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容