Logic Testing on iOS devices is not supported?

10,922

Solution 1

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.

Solution 2

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.

Share:
10,922
Admin
Author by

Admin

Updated on June 12, 2022

Comments

  • Admin
    Admin about 2 years

    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?

  • OhadM
    OhadM over 7 years
    FYI, this is not relevant for a project that is a framework
  • Slipp D. Thompson
    Slipp D. Thompson about 5 years
    @OhadM Disagree. You just need to create a new “TestHost” app target in your framework project settings— just a basic Single View App will do, with no customization beyond adding your framework to the Embedded Binaries build setting. Easy.
  • Rajesh Maurya
    Rajesh Maurya almost 5 years
    I don't have option to select app.