Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not use xcpretty if it is not installed #372

Merged
merged 5 commits into from
Nov 8, 2023

Conversation

priitlatt
Copy link
Contributor

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:

  • xcode-project clean
  • xcode-project build-ipa
  • xcode-project run-tests

@priitlatt priitlatt added the bug Something isn't working label Nov 8, 2023
@priitlatt priitlatt marked this pull request as ready for review November 8, 2023 15:11
@priitlatt priitlatt merged commit 00a2689 into master Nov 8, 2023
7 checks passed
@priitlatt priitlatt deleted the bugfix/disable-xcpretty-if-not-available branch November 8, 2023 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant