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.