Alex Rivera | Logout

Running iOS Unit Tests from Command Line with Xcode 4.5

Asked 2012-09-26T14:56:54.813
14

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?

Edit
Report

1 Answer

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.

answered 2013-03-05T21:20:45.557

Your Answer