I'm looking to use Slather to export unit test code coverage to TeamCity, however I am running into issues even getting it to run, and I'm a little confused as I'm not finding other people encountering this error. So hopefully someone can help me. I'm a build engineer, not XCode developer, and our devs don't seem to know what could be causing it.
Anyway, to trial Slather, I was given a new Mac, so I installed RVM and Ruby 2.4.1. I then installed the Slather gem, which all was quite easy and fast.
I built the XCode project, ran the unit tests and saw XCode displaying the code coverage data in the IDE.
In my terminal I ran the slather coverage command, and it returns the error:
Slathering...
/Users/me/.rvm/gems/ruby-2.4.1/gems/CFPropertyList-2.3.5/lib/cfpropertylist/rbCFPropertyList.rb:349:in `load`: File /Library/Developer/CommandLineTools/../Info.plist not readable! (IOError).
So my question is what am I missing?
The Mac is new, I only added XCode v8.2.1, RVM, Ruby and Slather. Slather pulled in all the dependencies it needed. The XCode project has test coverage turned on, and there is nothing in the Slather site mentioning that I need to modify plist reference paths in the project settings.
I even went to a blog site and tried their demo project for using Slather https://cocoacasts.com/how-to-generate-code-coverage-reports-in-xcode-with-slather/ and I get the same error with their project also.
It seems Slather just works for most other people, so hoping its just some really simple small thing that I need to setup on this Mac environment.