I'm using Azure-DevOps Server pipeline to compile an IOS application with an IOS agent (macOS Big Sur) while using Xcpretty for tests and code coverage reports. The Xcpretty not working:
/Library/Ruby/Gems/2.6.0/gems/xcpretty-0.3.0/lib/xcpretty/parser.rb:434:in
===': invalid byte sequence in US-ASCII (ArgumentError) from /Library/Ruby/Gems/2.6.0/gems/xcpretty-0.3.0/lib/xcpretty/parser.rb:434:inupdate_test_state' from /Library/Ruby/Gems/2.6.0/gems/xcpretty-0.3.0/lib/xcpretty/parser.rb:307:inparse' from /Library/Ruby/Gems/2.6.0/gems/xcpretty-0.3.0/lib/xcpretty/formatters/formatter.rb:88:inpretty_format' from /Library/Ruby/Gems/2.6.0/gems/xcpretty-0.3.0/lib/xcpretty/printer.rb:19:inpretty_print' from /Library/Ruby/Gems/2.6.0/gems/xcpretty-0.3.0/bin/xcpretty:84:inblock in <top (required)>' from /Library/Ruby/Gems/2.6.0/gems/xcpretty-0.3.0/bin/xcpretty:83:ineach_line' from /Library/Ruby/Gems/2.6.0/gems/xcpretty-0.3.0/bin/xcpretty:83:in<top (required)>' from /usr/local/bin/xcpretty:23:inload' from /usr/local/bin/xcpretty:23:in'
Everybody on google says that all I've got to do is to change my locale with the bash command:
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
and it not working, I think that the problem is that this export is per terminal and not global, if I put this command on bash and print "locale" I got: This
If I use the export commands: This
And after opening a new terminal: Again.
Any idea to change it globally?
What I did to change my locale configuration was the following:
In the root of your user on Mac you edit the file
.bash_rcor.zshrc, depending on the shell you use.nano .bash_rcornano .zshrcand inside the file you write the commands that have been suggested to you:
You save changes and exit the editor.
Then you run the command:
source .bash_rcorsource .zshrcthen you check that the changes have been made with the following command:
dateThat's all, Now You have the date and time in the correct format!