I have upgraded to xcode 5.0 and Instruments 5.0. Problem: Can not make a new recording / new script. It worked before upgrade.
How to recreate problem: - Make a new instance with the template "Automation" - Go to "script" - Choose "Add", then "Create". A code line "var target = UIATarget.localTarget();" is created as expected in the script pane. - click the red record button at the bottom of the script pane Simulator opens as expected (iPhone Regina (4-inch 64-bit)/iOS 7.0.3) Problem: in the script pane it says "Starting capture" and this does not stop and recording does not work. In the "Editor log" it says: "An error occurred while trying to run the script".
I have restarted Instruments, xCode and the computer a few times.
This happened to me. Turns out the option to enable UI Automation was turned off in the Developer Settings on the phone. After turning the option on, the error went away and everything worked as expected.
Try this in terminal:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With