I have an application for the iPad iOS5 that is using CLLocationManager, which I am testing with UIAutomation.
Before running my test script, I manually click OK in the dialog box that iOS represents when I use CLLocationManager.
Sometimes my test scripts do not run. I click the Play icon in Instrumentsand nothing happens for 12 seconds. Then I get the following exception:
Target app is not frontmost
As soon as this happens, I usually have to restart in order for the tools to work again.
I used the same exception when I left the dialog box CLLocationManagerin front of my application. Does anyone know how to fix this?
source
share