Running iOS Unit Tests from Command Line with Xcode 4.5

你离开我真会死。 提交于 2019-12-21 07:10:56

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/12604628/running-ios-unit-tests-from-command-line-with-xcode-4-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!