Hea*_*ers 5 instruments cllocationmanager ios ios-simulator ios-ui-automation
我有一个iOS5 iPad应用程序使用CLLocationManager我正在测试UIAutomation.
在运行我的测试脚本之前,我在使用CLLocationManager时在iOS上显示的对话框上手动按"确定".
有时,我的测试脚本将无法启动.我按下"播放"图标Instruments,12秒内没有任何反应.然后,我得到以下异常:
Target app is not frontmost
Run Code Online (Sandbox Code Playgroud)
一旦发生这种情况,我通常必须重新启动以使仪器再次工作.
当我CLLocationManager在应用程序前面离开对话框时,我曾经遇到同样的异常.有没有人知道如何解决这个问题?