Unit test iOS with Jenkins
Alright so why it wasn't working had to do with the fact that the scheme wasn't actually sent to git.You need to specify this inside of your xcode project otherwise it won't even show up as a file that you can commit.
To do this go to xcode > Product > Scheme > Manage Schemes
You'll see a screen with all the schemes in your project make sure you tick the box under Shared
for all the schemes you want to use in Jenkins like this.
Push this to your git and try it again. It should work now.