Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why am I seeing "An error occurred while trying to run the script." in the UI Automation instrument?

When I try to run a UI Automation script on iOS 5 devices I am getting the following error:

"An error occurred while trying to run the script."

enter image description here

The same script is running perfectly in the simulator or on an iOS 4.3.3 device.

How can I solve this problem?

like image 859
Abhijeet Avatar asked Jan 18 '12 07:01

Abhijeet


1 Answers

This should fix this issue:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
like image 108
user1751511 Avatar answered Oct 13 '22 00:10

user1751511