有时在CLI上运行xcode测试会返回"manager not ready"

abb*_*ood 5 xcode continuous-integration unit-testing objective-c ios

我通常使用以下命令在命令行上运行我的xcode单元测试:

清洁:

xcodebuild -workspace appName.xcworkspace -scheme "Shared appName" -destination "platform=iOS Simulator,name=iPhone 5s,OS=8.1" clean
Run Code Online (Sandbox Code Playgroud)

然后建立:

xcodebuild -workspace appName.xcworkspace -scheme "Shared appName" -destination "platform=iOS Simulator,name=iPhone 5s,OS=8.1" build
Run Code Online (Sandbox Code Playgroud)

然后测试(干运行):

xcodebuild -workspace appName.xcworkspace -scheme "Shared appName" -destination "platform=iOS Simulator,name=iPhone 5s,OS=8.1" test -dry-run
Run Code Online (Sandbox Code Playgroud)

而我有时会收到此错误:

2015-02-27 11:01:50.417 Registering for testmanagerd availability notify post.
2015-02-27 11:01:50.417 testmanagerd availability notify_get_state check indicated manager not ready, waiting for notify post.
2015-02-27 11:02:50.371 60s elapsed since launch without testing starting, sending logs to stderr
Run Code Online (Sandbox Code Playgroud)

任何想法如何防止这种情况发生?我假设testmanagerd是一个测试守护进程或什么?我在哪里可以找到相关文档?

小智 -3

此超时通常意味着您的 Mac 速度太慢,并且运行模拟器的时间超出预期。您应该开始考虑购买一台新机器。