Xcode Ui-automation - Test does not work on a physical device

Is there any specific configuration if I want to run a test on a physical device?

-my physical device running ios 9.0

- I have a prepared profile (the application is running on the device)

- I already turned on user interface automation (settings-> developer)

-My active circuit is my goal, and I chose a physical device

But when I run the test (UI test), the message "test successed" appears (nothing happens on the device, the application does not open at all, there are no error messages at all), and when I go to the report navigator, there is no information related to the test, which I just launched.

if I run this test on a simulator, it will work without problems. Xcode doesn't seem to run the test at all, but it shows the message "test successed" Thanks!

+6
source share
2 answers

There seem to be various reasons why this "Test Succeeded" message might occur. In my case, if I open the Mac OS X Console program, I see:

12/25/15 10: 46: 51.940 AM Xcode [42471]: _connect_to_port (stream 0x7000004ac000): USBMuxConnectByPort could not connect to the [snip] device on port 43234: connection refused

Experiments

a) Disconnect the device from the USB cable and turn it on: No effect.

b) Restart Xcode and delete the derived data: no effect.

c) Reboot the device (in this case, iPhone): It worked!

+9
source

The provisioning profile must be correct, I just added the updated profiled profile and worked

0
source

All Articles