Fix for XCode unit test error (exited abnormally with code 127)

If you are getting the:

Test host '/path/to/App exited abnormally with code 127 (it may have crashed).'

error in XCode 3.1 (beta) when you try to run your unit tests then you need to:

  1. Get Info for the Unit Tests target.
  2. Choose the Build tab.
  3. Set the Architectures value to Native Architecture of Build Machine.

Tags: , ,

2 Responses to “Fix for XCode unit test error (exited abnormally with code 127)”

  1. nitin Says:

    Still i am getting the error… any suggestions?

  2. Surendra Says:

    I tried all the architectures available in the Xcode ,none of then were working properly each gives same or diff. error.

    plzzz post if anyone have the right choice to resolve it.