Running iOS Unit Tests from Command Line with Xcod

2019-04-04 07:33发布

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条回答
姐就是有狂的资本
2楼-- · 2019-04-04 08:31

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.

查看更多
登录 后发表回答