I have been going around in circles with this. Basically I have Jenkins on one machine, and a Mac server as a separate iOS build server. I need to be able to run unit tests and then code coverage from Jenkins on the Mac Mini. I have a script which will run the tests, and it works perfectly when it is run from the command line on the machine itself. The problem is when I try to run it from Jenkins the actual tests don't run. It runs through the build process and then reports "Test Succeeded" without actually running any tests. Basically I need to be able to run the tests when I ssh into the machine.
I am using gcovr to create the xml file for the unit test coverage. I considered using xctool, which seems to run, but only creates gcda files, and not gcno so I can't get that working wither.
Banging my head against the wall at this point so any help is appreciated.
The command I am running: xcodebuild -workspace MyProject.xcworkspace -scheme MyProject -sdk iphonesimulator test
which runs fine when run from the command line while logged into the machine, but does not run any tests when I ssh in.