“Instruments failed to start the app”

Posted On //
Problem:
When you are running tests using Xamarin UITest against an iOS physical device, there might be an error “Instruments failed to
start the app.”
Solution:
To resolve this problem, you could follow these steps to enable UIAutomation from your computer
  1. Ensure iOS SDK version in OS X is greater or equal to iOS version on real device
  2. Disconnect your iOS real device from your computer
  3. Open XCode > Open Devices 
  4. Connect your iOS device to your computer, and then Select your real device
  5. This step might apply to iOS 8.x, please look at this Device Configuration link on Xamarin site
  6. Open Instruments: Open Xamarin Studio > Tools > Launch Instruments

  7. Choose Automation
  8. Choose the app that you want to run UI automation on you real device
  9. Press Record button
  10. Wait a minute for the app running and then quit without saving
  11. Now you could run your Xamarin UITest using Xamarin Studio