There are several complaints regarding TeamCity build agent can't run tests in iOS Simulator all gathered in issue TW-38954 Agent started automatically on Yosemite could not launch iOS simulator.
Official workaround from JetBrains found on StackOverflow for this issue looks like this:
$ sh buildAgent/bin/agent.sh start
This means we should convert from automatic launch by launchd
to manual via Terminal.app. Side effect of this is no relaunch on agent crash or system reboot.
Further investigation on that issue has led me to the Apple Developer Forums topic where Apple engineer claims following about xcodebuild
: