0

How do I configure so that OCUnit tests are running every time I choose to run my application on the simulator in Xcode? (Xcode 4.5.1)

My app runs the test fine if I go through Cmd+U` but not when I choose to run my application. I then get this warning:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Tools/Tools/RunPlatformUnitTests:81: warning: Skipping tests; the iPhoneSimulator platform does not currently support application-hosted tests (TEST_HOST set).

Kjuly
  • 34,476
  • 22
  • 104
  • 118
Peter Warbo
  • 11,136
  • 14
  • 98
  • 193
  • possible duplicate of [How to run OCUnit logic tests automatically before each build (run) of ios app in xcode 4?](http://stackoverflow.com/questions/6980025/how-to-run-ocunit-logic-tests-automatically-before-each-build-run-of-ios-app-i) – bryanmac Nov 03 '12 at 16:15
  • @bryanmac That unfortunately does not work for me. No tests are run. – Peter Warbo Nov 03 '12 at 18:01

1 Answers1

0

Check out this answer; it describes how to configure Xcode to build you test target during every run of your app in the simulator.

Community
  • 1
  • 1
Andy Sinclair
  • 2,143
  • 16
  • 18