使用Xcode 4.5从命令行运行iOS单元测试 [英] Running iOS Unit Tests from Command Line with Xcode 4.5
本文介绍了使用Xcode 4.5从命令行运行iOS单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
While running Unit Tests from command line (necessary for Jenkins) used to work until Xcode 4.4.1 with this hack, it does not seem to work anymore with Xcode 4.5.
现在,我收到以下错误消息:
Now I get the following error message:
....MyTests.build/Script-641C6E0115D3BECD004175F...: line 3: 16669 Segmentation fault: 11 "${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests"
有什么想法可以使其再次正常工作吗?
Any ideas how to make it work again?
推荐答案
更新后,我遇到了同样的问题.您必须将参数 RUN_UNIT_TEST_WITH_IOS_SIM = YES 传递给命令xcodebuild才能使它工作.
I had the same issue after updating. You have to pass the argument RUN_UNIT_TEST_WITH_IOS_SIM=YES to the command xcodebuild to make it work.
这篇关于使用Xcode 4.5从命令行运行iOS单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文