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官网

你可能感兴趣的:(iOS OCLint代码分析xcpretty使用(四)2019-12-03)