Here's a shell command to trim all the trailing whitespaces in all the files of the current folder.
Using the terminal might seem slow and cumbersome because every command needs to be typed. Learn how to drastically reduce the amount of typing you have to do by configuring aliases for your most used commands, making them only a few keystrokes long.
How to invoke xcodebuild to run the tests from the command line and how to format its output using xcbeautify or xcpretty