Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logic Testing on iOS devices is not supported?

I am using the SenTestingKit to Unit Test, but I get the following message

Logic Testing on iOS devices is not supported. You can run logic tests on the Simulator.

How can I do this?

like image 202
mark Avatar asked Dec 10 '11 06:12

mark


2 Answers

You need to have a Host Application

enter image description here

Note that the image is pointing to the General tab of Test target's configurations.

like image 165
Quanlong Avatar answered Sep 28 '22 11:09

Quanlong


Logic tests only work on the simulator, you need to switch to the simulator, i.e.

enter image description here

Logic tests require a special unit test launcher which is not installed on actual devices.

If you want to run your tests on an actual device you can convert to application unit tests. These are essentially the same but you application gets launched first (as a 'host') and your tests get run along side them. This means your tests can run on any device that your application supports. The only disadvantage is that your actual app will be running which can interfere with your test, especially if you use a lot of notifications.

like image 32
Robert Avatar answered Sep 28 '22 11:09

Robert