感谢您看到这个问题。
我用GHUnit编写单元测试。现在我正在尝试在终端上构建测试以连接Travis CI,并且面临一个问题。
我基本上遵循
http://gabriel.github.io/gh-unit/docs/appledoc_include/guide_command_line.html
并定制一些命令。
下面是自定义命令GHUNIT_CLI=1 xcodebuild ONLY_ACTIVE_ARCH=NO -target UnitTest -configuration Debug -sdk iphonesimulator build
之后,一些编译开始,但最后我在下面得到错误。The iOS Simulator libSystem was initialized out of order. This is most often caused by running host executables or inserting host dylibs. In the future, this will cause an abort.
有同样的问题,像这样运行
GHUNIT_CLI=1 xcodebuild ONLY_ACTIVE_ARCH=NO -workspace <yourworkspace> -scheme <scheme> -configuration Debug -sdk iphonesimulator build
解决了问题