My first question here so please bear with me. It may be off topic, if so - close the question.

I have setup Jenkins with git and Xcode plugins so that I would be able to build an iOS project on CI machine (Mac Mini). All it does is launch xcodebuild binary with provided parameters for target and configuration. However - I don't seem to get any unit test output. I see the compilation messages (for implementation files as well as xibs), I see the build of test bundle, but no "test passed" or "test failed" messages from test suites. Running unit tests from Xcode produces all the needed output.

What am I missing?

  • Welcome to SQA, Eimantas. Do you know for a fact that the tests actually ran?
    – user246
    May 25, 2012 at 14:04
  • No I do not. That's the problem too. It seems that Unit tests can only be run on the device. Yet the xcodebuild command line utility does not detect that device is connected too! I.e. running the command equivalent in terminal - gives same result: No tests run (or no output from them).
    – Eimantas
    May 25, 2012 at 14:09
  • Would it be fair to say, then, that this is not so much a Jenkins problem as an xcodebuild problem? If so, revising the title may help attract more people with answers to xcodebuild questions.
    – user246
    May 25, 2012 at 16:59
  • @user246 thanks, I've revised the question title and the question itself.
    – Eimantas
    May 28, 2012 at 9:45

1 Answer 1


According to this blog post it is not possible to run tests from xcodebuild but there is a work around. This problem exists for xcode 4.0 - 4.3, I'm not sure about 4.4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.