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:
- Quit any running instances of Xcode, Instruments and iOS simulators
- Removing the developer folder: /Library/Developer
- Remove all your Xcode installations: /Applications/Xcode.app,...
- Reboot your Mac
- Download Xcode.dmg from Apple Developer Portal (NOT from the App Store)
- Reinstall Xcode
- 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.
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).