I saw this command in SO How to filter the xcodebuild command line output?
which shows only the errors and warnings when we do xcodebuild otherwise the xcodebuild commands prints everything to the console regarding what it is doing.
Is there a way I can use grep with xcodebuild in an ant task ?
<exec executable="xcodebuild" failonerror="true">
<arg value="| grep error" />
<arg value="clean" />
<arg value="build" />
</exec>
The exec task above throws error while trying to execute the ant task.
-quiet do not print any output except for warnings and errors
xcodebuild clean build -quiet
it works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With