codemagic-ci-cd / cli-tools

Various utilities to managing Android and iOS app builds, code signing, and deployment.
https://codemagic.io/start/
GNU General Public License v3.0
245 stars 42 forks source link

Do not use `xcpretty` if it is not installed #372

Closed priitlatt closed 11 months ago

priitlatt commented 11 months ago

Some xcode-project actions use xcpretty to format xcodebuild logs by default. Currently it is not possible to use those actions if xcpretty is missing on the system without specifying --disable-xcpretty option. This is because the actions would automatically apply formatter without checking if it is available, and consequently crash.

Check if xcpretty is available on the machine where the action is executed any only then use it for formatting (unless it is disabled). Otherwise show an appropriate warning with xcpretty installation instructions and move on with the action without formatting xcodebuild logs.

Updated actions: