iOS tests will not run on simulator when using Jenkins through JNLP iOS tests will not run on simulator when using Jenkins through JNLP jenkins jenkins

iOS tests will not run on simulator when using Jenkins through JNLP


You can resolve the "Simulator Verification Failed" error (Code=53) with the steps below.(For me, this problem was caused by conflict of command-line development tools and also due to Mac OS folder permission issues with the tools).

I was able to resolve it following these:

  1. Quit any running instances of Xcode, Instruments and iOS simulators
  2. Removing the developer folder: /Library/Developer
  3. Remove all your Xcode installations: /Applications/Xcode.app,...
  4. Reboot your Mac
  5. Download Xcode.dmg from Apple Developer Portal (NOT from the App Store)
  6. Reinstall Xcode
  7. Launch Xcode

Optionally, though not the best thing to do, if you wanna install multiple versions of Xcode, make sure you activate the right Xcode version from Xcode Preferences/Locations/Command-Line Tools, before building your projects.

Hope this helps.


I still see the error messages, but I was able to get Jenkins to run my unit tests. Here are the steps that worked for me:

  1. Reboot the remote machine
  2. Start the Xcode app from Finder
  3. Quit Xcode
  4. Run Jenkins test script


See my solution here: https://stackoverflow.com/a/40790171/480467

The problem lies in the fact that the timeout counter in xcodebuild starts as soon as the command is executed, so the compile time counts towards the timeout (which is 120 seconds).